diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AnthropicMessagesClient.CreateMessages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AnthropicMessagesClient.CreateMessages.g.cs index 93d04e21..2150a027 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.AnthropicMessagesClient.CreateMessages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.AnthropicMessagesClient.CreateMessages.g.cs @@ -719,7 +719,7 @@ partial void ProcessCreateMessagesResponseContent( /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs index e464ae24..42fe1665 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs @@ -652,7 +652,7 @@ partial void ProcessCreateKeysResponseContent( global::System.DateTime? expiresAt = default, bool? includeByokInLimit = default, double? limit = default, - global::OpenRouter.OneOf? limitReset = default, + global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs index 99c7bf42..0cf4e07b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs @@ -655,7 +655,7 @@ partial void ProcessUpdateKeysResponseContent( bool? disabled = default, bool? includeByokInLimit = default, double? limit = default, - global::OpenRouter.OneOf? limitReset = default, + global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default, string? name = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs index 8ea39e87..daf640ec 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs @@ -622,6 +622,12 @@ partial void ProcessQueryAnalyticsResponseContent( /// Query analytics data
/// Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// + /// + /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. + /// + /// + /// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions. + /// /// /// /// @@ -641,6 +647,8 @@ partial void ProcessQueryAnalyticsResponseContent( /// public async global::System.Threading.Tasks.Task QueryAnalyticsAsync( global::System.Collections.Generic.IList metrics, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions = default, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters = default, global::System.Collections.Generic.IList? dimensions = default, global::System.Collections.Generic.IList? filters = default, string? granularity = default, @@ -653,6 +661,8 @@ partial void ProcessQueryAnalyticsResponseContent( { var __request = new global::OpenRouter.QueryAnalyticsRequest { + ClassifierDimensions = classifierDimensions, + ClassifierFilters = classifierFilters, Dimensions = dimensions, Filters = filters, Granularity = granularity, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.BetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.BetaResponsesClient.CreateResponses.g.cs index 98629015..63fd7cc8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.BetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.BetaResponsesClient.CreateResponses.g.cs @@ -905,7 +905,7 @@ partial void ProcessCreateResponsesResponseContent( /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -932,9 +932,14 @@ partial void ProcessCreateResponsesResponseContent( /// Plugins you want to enable for this request, including their settings. /// /// - /// + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -945,7 +950,9 @@ partial void ProcessCreateResponsesResponseContent( /// Any type /// /// - /// + /// + /// Default Value: auto + /// /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. /// @@ -994,14 +1001,15 @@ partial void ProcessCreateResponsesResponseContent( bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, double? presencePenalty = default, - string? previousResponseId = default, + object? previousResponseId = default, global::OpenRouter.StoredPromptTemplate? prompt = default, string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ReasoningConfig? reasoning = default, object? route = default, string? safetyIdentifier = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ResponsesRequestServiceTier? serviceTier = default, string? sessionId = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? store = default, @@ -1041,6 +1049,7 @@ partial void ProcessCreateResponsesResponseContent( PreviousResponseId = previousResponseId, Prompt = prompt, PromptCacheKey = promptCacheKey, + PromptCacheOptions = promptCacheOptions, Provider = provider, Reasoning = reasoning, Route = route, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs index 024b2e00..399f0a1a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs @@ -51,8 +51,12 @@ partial void ProcessListByokKeysResponseContent( /// List BYOK provider credentials
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). @@ -83,8 +87,12 @@ partial void ProcessListByokKeysResponseContent( /// List BYOK provider credentials
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ChatClient.SendChatCompletionRequest.g.cs index 3e804f6a..61855a83 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ChatClient.SendChatCompletionRequest.g.cs @@ -904,7 +904,7 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -949,9 +949,16 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// /// Plugins you want to enable for this request, including their settings. /// + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// /// /// Presence penalty (-2.0 to 2.0) /// + /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -1040,17 +1047,20 @@ partial void ProcessSendChatCompletionRequestResponseContent( global::System.Collections.Generic.IList? models = default, bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, + global::OpenRouter.Prediction? prediction = default, double? presencePenalty = default, + string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, - global::OpenRouter.OneOf? reasoningEffort = default, + global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort = default, double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ChatRequestServiceTier? serviceTier = default, string? sessionId = default, - global::OpenRouter.ChatRequestStop? stop = default, + global::OpenRouter.OneOf? stop = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? stream = default, global::OpenRouter.ChatStreamOptions? streamOptions = default, @@ -1084,7 +1094,10 @@ partial void ProcessSendChatCompletionRequestResponseContent( Models = models, ParallelToolCalls = parallelToolCalls, Plugins = plugins, + Prediction = prediction, PresencePenalty = presencePenalty, + PromptCacheKey = promptCacheKey, + PromptCacheOptions = promptCacheOptions, Provider = provider, Reasoning = reasoning, ReasoningEffort = reasoningEffort, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.DatasetsClient.GetRankingsDaily.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.DatasetsClient.GetRankingsDaily.g.cs index afe89ad5..cda40fa2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.DatasetsClient.GetRankingsDaily.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.DatasetsClient.GetRankingsDaily.g.cs @@ -28,12 +28,22 @@ public partial class DatasetsClient partial void PrepareGetRankingsDailyArguments( global::System.Net.Http.HttpClient httpClient, ref string? startDate, - ref string? endDate); + ref string? endDate, + ref global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period, + ref global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality, + ref global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket, + ref global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category, + ref global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType); partial void PrepareGetRankingsDailyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? startDate, - string? endDate); + string? endDate, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType); partial void ProcessGetRankingsDailyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -52,6 +62,12 @@ partial void ProcessGetRankingsDailyResponseContent( /// Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the
/// reserved permaslug `other` and is always returned last within its date, so callers
/// can compute `top-50 traffic / total daily traffic` without a second request.
+ /// Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time
+ /// grain. `modality` and `context_bucket` narrow the exact dataset by output/input
+ /// modality (or tool-calling activity) and request context length. `category` and
+ /// `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are
+ /// weekly-grain estimates — they cannot be combined with each other or with the exact
+ /// filters, and reject `period=day` with a 400.
/// Authenticate with any valid OpenRouter API key (same key used for inference).
/// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// When republishing or quoting this dataset, OpenRouter must be cited as:
@@ -63,18 +79,43 @@ partial void ProcessGetRankingsDailyResponseContent( /// /// /// + /// + /// Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries. + /// + /// + /// Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`. + /// + /// + /// Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`. + /// /// 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 GetRankingsDailyAsync( string? startDate = default, string? endDate = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await GetRankingsDailyAsResponseAsync( startDate: startDate, endDate: endDate, + period: period, + modality: modality, + contextBucket: contextBucket, + category: category, + languageType: languageType, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -90,6 +131,12 @@ partial void ProcessGetRankingsDailyResponseContent( /// Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the
/// reserved permaslug `other` and is always returned last within its date, so callers
/// can compute `top-50 traffic / total daily traffic` without a second request.
+ /// Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time
+ /// grain. `modality` and `context_bucket` narrow the exact dataset by output/input
+ /// modality (or tool-calling activity) and request context length. `category` and
+ /// `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are
+ /// weekly-grain estimates — they cannot be combined with each other or with the exact
+ /// filters, and reject `period=day` with a 400.
/// Authenticate with any valid OpenRouter API key (same key used for inference).
/// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// When republishing or quoting this dataset, OpenRouter must be cited as:
@@ -101,12 +148,32 @@ partial void ProcessGetRankingsDailyResponseContent( /// /// /// + /// + /// Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries. + /// + /// + /// Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`. + /// + /// + /// Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`. + /// /// 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> GetRankingsDailyAsResponseAsync( string? startDate = default, string? endDate = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -115,7 +182,12 @@ partial void ProcessGetRankingsDailyResponseContent( PrepareGetRankingsDailyArguments( httpClient: HttpClient, startDate: ref startDate, - endDate: ref endDate); + endDate: ref endDate, + period: ref period, + modality: ref modality, + contextBucket: ref contextBucket, + category: ref category, + languageType: ref languageType); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( @@ -146,6 +218,11 @@ partial void ProcessGetRankingsDailyResponseContent( __pathBuilder .AddOptionalParameter("start_date", startDate) .AddOptionalParameter("end_date", endDate) + .AddOptionalParameter("period", period?.ToValueString()) + .AddOptionalParameter("modality", modality?.ToValueString()) + .AddOptionalParameter("context_bucket", contextBucket?.ToValueString()) + .AddOptionalParameter("category", category?.ToValueString()) + .AddOptionalParameter("language_type", languageType?.ToValueString()) ; var __path = __pathBuilder.ToString(); __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -188,7 +265,12 @@ partial void ProcessGetRankingsDailyResponseContent( httpClient: HttpClient, httpRequestMessage: __httpRequest, startDate: startDate, - endDate: endDate); + endDate: endDate, + period: period, + modality: modality, + contextBucket: contextBucket, + category: category, + languageType: languageType); return __httpRequest; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.ListEmbeddingsModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.ListEmbeddingsModels.g.cs index 041b229c..ee9698b9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.ListEmbeddingsModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.ListEmbeddingsModels.g.cs @@ -26,10 +26,14 @@ public partial class EmbeddingsClient { s_ListEmbeddingsModelsSecurityRequirement0, }; partial void PrepareListEmbeddingsModelsArguments( - global::System.Net.Http.HttpClient httpClient); + global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit); partial void PrepareListEmbeddingsModelsRequest( global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit); partial void ProcessListEmbeddingsModelsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -43,14 +47,24 @@ partial void ProcessListEmbeddingsModelsResponseContent( /// List all embeddings models
/// Returns a list of all available embeddings models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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 ListEmbeddingsModelsAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ListEmbeddingsModelsAsResponseAsync( + offset: offset, + limit: limit, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -61,17 +75,27 @@ partial void ProcessListEmbeddingsModelsResponseContent( /// List all embeddings models
/// Returns a list of all available embeddings models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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> ListEmbeddingsModelsAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareListEmbeddingsModelsArguments( - httpClient: HttpClient); + httpClient: HttpClient, + offset: ref offset, + limit: ref limit); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( @@ -99,6 +123,10 @@ partial void ProcessListEmbeddingsModelsResponseContent( var __pathBuilder = new global::OpenRouter.PathBuilder( path: "/embeddings/models", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; var __path = __pathBuilder.ToString(); __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -138,7 +166,9 @@ partial void ProcessListEmbeddingsModelsResponseContent( request: __httpRequest); PrepareListEmbeddingsModelsRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest); + httpRequestMessage: __httpRequest, + offset: offset, + limit: limit); return __httpRequest; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GenerationsClient.SubmitGenerationFeedback.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GenerationsClient.SubmitGenerationFeedback.g.cs new file mode 100644 index 00000000..8b908baf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.GenerationsClient.SubmitGenerationFeedback.g.cs @@ -0,0 +1,657 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class GenerationsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_SubmitGenerationFeedbackSecurityRequirement0 = + 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_SubmitGenerationFeedbackSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_SubmitGenerationFeedbackSecurityRequirement0, + }; + partial void PrepareSubmitGenerationFeedbackArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenRouter.SubmitGenerationFeedbackRequest request); + partial void PrepareSubmitGenerationFeedbackRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.SubmitGenerationFeedbackRequest request); + partial void ProcessSubmitGenerationFeedbackResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSubmitGenerationFeedbackResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// 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 SubmitGenerationFeedbackAsync( + + global::OpenRouter.SubmitGenerationFeedbackRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await SubmitGenerationFeedbackAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// 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> SubmitGenerationFeedbackAsResponseAsync( + + global::OpenRouter.SubmitGenerationFeedbackRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareSubmitGenerationFeedbackArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SubmitGenerationFeedbackSecurityRequirements, + operationName: "SubmitGenerationFeedbackAsync"); + + 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/feedback", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSubmitGenerationFeedbackRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + 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: "SubmitGenerationFeedback", + methodName: "SubmitGenerationFeedbackAsync", + pathTemplate: "\"/generation/feedback\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitGenerationFeedback", + methodName: "SubmitGenerationFeedbackAsync", + pathTemplate: "\"/generation/feedback\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitGenerationFeedback", + methodName: "SubmitGenerationFeedbackAsync", + pathTemplate: "\"/generation/feedback\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSubmitGenerationFeedbackResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitGenerationFeedback", + methodName: "SubmitGenerationFeedbackAsync", + pathTemplate: "\"/generation/feedback\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitGenerationFeedback", + methodName: "SubmitGenerationFeedbackAsync", + pathTemplate: "\"/generation/feedback\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + 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); + ProcessSubmitGenerationFeedbackResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.SubmitGenerationFeedbackResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::OpenRouter.SubmitGenerationFeedbackResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// The category of feedback being reported + /// + /// + /// An optional free-text comment describing the feedback + /// + /// + /// The generation to submit feedback on + /// + /// 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 SubmitGenerationFeedbackAsync( + global::OpenRouter.SubmitGenerationFeedbackRequestCategory category, + string generationId, + string? comment = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.SubmitGenerationFeedbackRequest + { + Category = category, + Comment = comment, + GenerationId = generationId, + }; + + return await SubmitGenerationFeedbackAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.CreateGuardrail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.CreateGuardrail.g.cs index 7748ea8a..85eb7df8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.CreateGuardrail.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.CreateGuardrail.g.cs @@ -592,7 +592,7 @@ partial void ProcessCreateGuardrailResponseContent( /// List of allowed provider IDs /// /// - /// Builtin content filters to apply. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply to request messages @@ -601,7 +601,7 @@ partial void ProcessCreateGuardrailResponseContent( /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -613,7 +613,10 @@ partial void ProcessCreateGuardrailResponseContent( /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -648,6 +651,7 @@ partial void ProcessCreateGuardrailResponseContent( bool? enforceZdrGoogle = default, bool? enforceZdrOpenai = default, bool? enforceZdrOther = default, + bool? enforceZdrXai = default, global::System.Collections.Generic.IList? ignoredModels = default, global::System.Collections.Generic.IList? ignoredProviders = default, double? limitUsd = default, @@ -668,6 +672,7 @@ partial void ProcessCreateGuardrailResponseContent( EnforceZdrGoogle = enforceZdrGoogle, EnforceZdrOpenai = enforceZdrOpenai, EnforceZdrOther = enforceZdrOther, + EnforceZdrXai = enforceZdrXai, IgnoredModels = ignoredModels, IgnoredProviders = ignoredProviders, LimitUsd = limitUsd, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailKeyAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailKeyAssignments.g.cs index dff8449f..82c9f2ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailKeyAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailKeyAssignments.g.cs @@ -50,8 +50,12 @@ partial void ProcessListGuardrailKeyAssignmentsResponseContent( /// List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -77,8 +81,12 @@ partial void ProcessListGuardrailKeyAssignmentsResponseContent( /// List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailMemberAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailMemberAssignments.g.cs index 800bb95d..db783110 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailMemberAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrailMemberAssignments.g.cs @@ -50,8 +50,12 @@ partial void ProcessListGuardrailMemberAssignmentsResponseContent( /// List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -77,8 +81,12 @@ partial void ProcessListGuardrailMemberAssignmentsResponseContent( /// List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrails.g.cs index a88c26c0..f9adbab0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrails.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListGuardrails.g.cs @@ -49,8 +49,12 @@ partial void ProcessListGuardrailsResponseContent( /// List guardrails
/// List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -76,8 +80,12 @@ partial void ProcessListGuardrailsResponseContent( /// List guardrails
/// List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListKeyAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListKeyAssignments.g.cs index abd0f0b1..f606aae7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListKeyAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListKeyAssignments.g.cs @@ -47,8 +47,12 @@ partial void ProcessListKeyAssignmentsResponseContent( /// List all key assignments
/// List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -71,8 +75,12 @@ partial void ProcessListKeyAssignmentsResponseContent( /// List all key assignments
/// List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListMemberAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListMemberAssignments.g.cs index e20025bc..cbb470dc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListMemberAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.ListMemberAssignments.g.cs @@ -47,8 +47,12 @@ partial void ProcessListMemberAssignmentsResponseContent( /// List all member assignments
/// List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -71,8 +75,12 @@ partial void ProcessListMemberAssignmentsResponseContent( /// List all member assignments
/// List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.UpdateGuardrail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.UpdateGuardrail.g.cs index 2e422b80..f054db7b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.UpdateGuardrail.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.GuardrailsClient.UpdateGuardrail.g.cs @@ -602,7 +602,7 @@ partial void ProcessUpdateGuardrailResponseContent( /// New list of allowed provider IDs /// /// - /// Builtin content filters to apply. Set to null to remove. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Set to null to remove. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply. Set to null to remove. @@ -611,7 +611,7 @@ partial void ProcessUpdateGuardrailResponseContent( /// New description for the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -623,7 +623,10 @@ partial void ProcessUpdateGuardrailResponseContent( /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -655,6 +658,7 @@ partial void ProcessUpdateGuardrailResponseContent( bool? enforceZdrGoogle = default, bool? enforceZdrOpenai = default, bool? enforceZdrOther = default, + bool? enforceZdrXai = default, global::System.Collections.Generic.IList? ignoredModels = default, global::System.Collections.Generic.IList? ignoredProviders = default, double? limitUsd = default, @@ -675,6 +679,7 @@ partial void ProcessUpdateGuardrailResponseContent( EnforceZdrGoogle = enforceZdrGoogle, EnforceZdrOpenai = enforceZdrOpenai, EnforceZdrOther = enforceZdrOther, + EnforceZdrXai = enforceZdrXai, IgnoredModels = ignoredModels, IgnoredProviders = ignoredProviders, LimitUsd = limitUsd, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IAnthropicMessagesClient.CreateMessages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IAnthropicMessagesClient.CreateMessages.g.cs index ee576e17..e1f36a74 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IAnthropicMessagesClient.CreateMessages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IAnthropicMessagesClient.CreateMessages.g.cs @@ -46,7 +46,7 @@ public partial interface IAnthropicMessagesClient /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs index 0b332f23..34230d7b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs @@ -64,7 +64,7 @@ public partial interface IApiKeysClient global::System.DateTime? expiresAt = default, bool? includeByokInLimit = default, double? limit = default, - global::OpenRouter.OneOf? limitReset = default, + global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs index 36d4b2cc..a1208130 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs @@ -62,7 +62,7 @@ public partial interface IApiKeysClient bool? disabled = default, bool? includeByokInLimit = default, double? limit = default, - global::OpenRouter.OneOf? limitReset = default, + global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default, string? name = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs index 4e80aea0..fb9ab50b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs @@ -34,6 +34,12 @@ public partial interface IBetaAnalyticsClient /// Query analytics data
/// Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// + /// + /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. + /// + /// + /// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions. + /// /// /// /// @@ -53,6 +59,8 @@ public partial interface IBetaAnalyticsClient /// global::System.Threading.Tasks.Task QueryAnalyticsAsync( global::System.Collections.Generic.IList metrics, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions = default, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters = default, global::System.Collections.Generic.IList? dimensions = default, global::System.Collections.Generic.IList? filters = default, string? granularity = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IBetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IBetaResponsesClient.CreateResponses.g.cs index 5412c4c8..1b91a47b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IBetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IBetaResponsesClient.CreateResponses.g.cs @@ -47,7 +47,7 @@ public partial interface IBetaResponsesClient /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -74,9 +74,14 @@ public partial interface IBetaResponsesClient /// Plugins you want to enable for this request, including their settings. /// /// - /// + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -87,7 +92,9 @@ public partial interface IBetaResponsesClient /// Any type /// /// - /// + /// + /// Default Value: auto + /// /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. /// @@ -136,14 +143,15 @@ public partial interface IBetaResponsesClient bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, double? presencePenalty = default, - string? previousResponseId = default, + object? previousResponseId = default, global::OpenRouter.StoredPromptTemplate? prompt = default, string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ReasoningConfig? reasoning = default, object? route = default, string? safetyIdentifier = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ResponsesRequestServiceTier? serviceTier = default, string? sessionId = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? store = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs index e5b1d4bc..fd07f821 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs @@ -8,8 +8,12 @@ public partial interface IByokClient /// List BYOK provider credentials
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). @@ -28,8 +32,12 @@ public partial interface IByokClient /// List BYOK provider credentials
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// /// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`). diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IChatClient.SendChatCompletionRequest.g.cs index b2ded56f..8650e68b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IChatClient.SendChatCompletionRequest.g.cs @@ -46,7 +46,7 @@ public partial interface IChatClient /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -91,9 +91,16 @@ public partial interface IChatClient /// /// Plugins you want to enable for this request, including their settings. /// + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// /// /// Presence penalty (-2.0 to 2.0) /// + /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -182,17 +189,20 @@ public partial interface IChatClient global::System.Collections.Generic.IList? models = default, bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, + global::OpenRouter.Prediction? prediction = default, double? presencePenalty = default, + string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, - global::OpenRouter.OneOf? reasoningEffort = default, + global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort = default, double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ChatRequestServiceTier? serviceTier = default, string? sessionId = default, - global::OpenRouter.ChatRequestStop? stop = default, + global::OpenRouter.OneOf? stop = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? stream = default, global::OpenRouter.ChatStreamOptions? streamOptions = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IDatasetsClient.GetRankingsDaily.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IDatasetsClient.GetRankingsDaily.g.cs index 7aaad27d..16b0044a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IDatasetsClient.GetRankingsDaily.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IDatasetsClient.GetRankingsDaily.g.cs @@ -13,6 +13,12 @@ public partial interface IDatasetsClient /// Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the
/// reserved permaslug `other` and is always returned last within its date, so callers
/// can compute `top-50 traffic / total daily traffic` without a second request.
+ /// Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time
+ /// grain. `modality` and `context_bucket` narrow the exact dataset by output/input
+ /// modality (or tool-calling activity) and request context length. `category` and
+ /// `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are
+ /// weekly-grain estimates — they cannot be combined with each other or with the exact
+ /// filters, and reject `period=day` with a 400.
/// Authenticate with any valid OpenRouter API key (same key used for inference).
/// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// When republishing or quoting this dataset, OpenRouter must be cited as:
@@ -24,12 +30,32 @@ public partial interface IDatasetsClient /// /// /// + /// + /// Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries. + /// + /// + /// Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`. + /// + /// + /// Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`. + /// /// 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 GetRankingsDailyAsync( string? startDate = default, string? endDate = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -41,6 +67,12 @@ public partial interface IDatasetsClient /// Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the
/// reserved permaslug `other` and is always returned last within its date, so callers
/// can compute `top-50 traffic / total daily traffic` without a second request.
+ /// Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time
+ /// grain. `modality` and `context_bucket` narrow the exact dataset by output/input
+ /// modality (or tool-calling activity) and request context length. `category` and
+ /// `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are
+ /// weekly-grain estimates — they cannot be combined with each other or with the exact
+ /// filters, and reject `period=day` with a 400.
/// Authenticate with any valid OpenRouter API key (same key used for inference).
/// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// When republishing or quoting this dataset, OpenRouter must be cited as:
@@ -52,12 +84,32 @@ public partial interface IDatasetsClient ///
/// /// + /// + /// Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries. + /// + /// + /// Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`. + /// + /// + /// Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`. + /// + /// + /// Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`. + /// /// 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> GetRankingsDailyAsResponseAsync( string? startDate = default, string? endDate = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? period = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? modality = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? contextBucket = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? category = default, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? languageType = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.ListEmbeddingsModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.ListEmbeddingsModels.g.cs index c28e9bb6..b5955421 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.ListEmbeddingsModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.ListEmbeddingsModels.g.cs @@ -8,20 +8,36 @@ public partial interface IEmbeddingsClient /// List all embeddings models
/// Returns a list of all available embeddings models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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 ListEmbeddingsModelsAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// List all embeddings models
/// Returns a list of all available embeddings models and their properties ///
+ /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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> ListEmbeddingsModelsAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGenerationsClient.SubmitGenerationFeedback.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGenerationsClient.SubmitGenerationFeedback.g.cs new file mode 100644 index 00000000..ed9653e9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGenerationsClient.SubmitGenerationFeedback.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface IGenerationsClient + { + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// 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 SubmitGenerationFeedbackAsync( + + global::OpenRouter.SubmitGenerationFeedbackRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// 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> SubmitGenerationFeedbackAsResponseAsync( + + global::OpenRouter.SubmitGenerationFeedbackRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Submit feedback for a generation
+ /// Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// The category of feedback being reported + /// + /// + /// An optional free-text comment describing the feedback + /// + /// + /// The generation to submit feedback on + /// + /// 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 SubmitGenerationFeedbackAsync( + global::OpenRouter.SubmitGenerationFeedbackRequestCategory category, + string generationId, + string? comment = default, + 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.IGuardrailsClient.CreateGuardrail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.CreateGuardrail.g.cs index 21b76f33..9816c2b3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.CreateGuardrail.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.CreateGuardrail.g.cs @@ -41,7 +41,7 @@ public partial interface IGuardrailsClient /// List of allowed provider IDs /// /// - /// Builtin content filters to apply. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply to request messages @@ -50,7 +50,7 @@ public partial interface IGuardrailsClient /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -62,7 +62,10 @@ public partial interface IGuardrailsClient /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -97,6 +100,7 @@ public partial interface IGuardrailsClient bool? enforceZdrGoogle = default, bool? enforceZdrOpenai = default, bool? enforceZdrOther = default, + bool? enforceZdrXai = default, global::System.Collections.Generic.IList? ignoredModels = default, global::System.Collections.Generic.IList? ignoredProviders = default, double? limitUsd = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailKeyAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailKeyAssignments.g.cs index cd775758..39b22a56 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailKeyAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailKeyAssignments.g.cs @@ -9,8 +9,12 @@ public partial interface IGuardrailsClient /// List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -25,8 +29,12 @@ public partial interface IGuardrailsClient /// List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailMemberAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailMemberAssignments.g.cs index b2bbbf49..fd85ec83 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailMemberAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrailMemberAssignments.g.cs @@ -9,8 +9,12 @@ public partial interface IGuardrailsClient /// List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -25,8 +29,12 @@ public partial interface IGuardrailsClient /// List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrails.g.cs index 817c303e..bf19f5ab 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrails.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListGuardrails.g.cs @@ -8,8 +8,12 @@ public partial interface IGuardrailsClient /// List guardrails
/// List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -24,8 +28,12 @@ public partial interface IGuardrailsClient /// List guardrails
/// List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListKeyAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListKeyAssignments.g.cs index b366d906..b14b7bc0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListKeyAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListKeyAssignments.g.cs @@ -8,8 +8,12 @@ public partial interface IGuardrailsClient /// List all key assignments
/// List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -22,8 +26,12 @@ public partial interface IGuardrailsClient /// List all key assignments
/// List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListMemberAssignments.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListMemberAssignments.g.cs index fd2d7036..a491fed5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListMemberAssignments.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.ListMemberAssignments.g.cs @@ -8,8 +8,12 @@ public partial interface IGuardrailsClient /// List all member assignments
/// List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -22,8 +26,12 @@ public partial interface IGuardrailsClient /// List all member assignments
/// List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.UpdateGuardrail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.UpdateGuardrail.g.cs index 4c6ace4e..732271b2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.UpdateGuardrail.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IGuardrailsClient.UpdateGuardrail.g.cs @@ -46,7 +46,7 @@ public partial interface IGuardrailsClient /// New list of allowed provider IDs /// /// - /// Builtin content filters to apply. Set to null to remove. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Set to null to remove. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply. Set to null to remove. @@ -55,7 +55,7 @@ public partial interface IGuardrailsClient /// New description for the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -67,7 +67,10 @@ public partial interface IGuardrailsClient /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -99,6 +102,7 @@ public partial interface IGuardrailsClient bool? enforceZdrGoogle = default, bool? enforceZdrOpenai = default, bool? enforceZdrOther = default, + bool? enforceZdrXai = default, global::System.Collections.Generic.IList? ignoredModels = default, global::System.Collections.Generic.IList? ignoredProviders = default, double? limitUsd = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.CreateImages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.CreateImages.g.cs index daaa9aaf..d61cc216 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.CreateImages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.CreateImages.g.cs @@ -59,7 +59,7 @@ public partial interface IImagesClient /// Text description of the desired image /// /// - /// Provider-specific passthrough configuration + /// Provider routing preferences and provider-specific passthrough configuration. /// /// /// Rendering quality. Providers without a quality knob ignore this. @@ -71,7 +71,7 @@ public partial interface IImagesClient /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400. /// /// /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. @@ -88,7 +88,7 @@ public partial interface IImagesClient int? n = default, int? outputCompression = default, global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat = default, - global::OpenRouter.ImageGenerationRequestProvider? provider = default, + global::OpenRouter.ImageGenerationProviderPreferences? provider = default, global::OpenRouter.ImageGenerationRequestQuality? quality = default, global::OpenRouter.ImageGenerationRequestResolution? resolution = default, int? seed = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.GetModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.GetModels.g.cs index f8e05713..c8b2b8da 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.GetModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.GetModels.g.cs @@ -7,13 +7,19 @@ public partial interface IModelsClient /// /// List all models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// /// Filter models by use case category /// /// /// /// - /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// /// /// @@ -34,10 +40,24 @@ public partial interface IModelsClient /// /// Filter to models with endpoints in the given data region. Currently only "eu" is supported. /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// /// 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 GetModelsAsync( + int? offset = default, + int? limit = default, global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, @@ -55,18 +75,36 @@ public partial interface IModelsClient global::OpenRouter.ModelsGetParametersDistillable? distillable = default, global::OpenRouter.ModelsGetParametersZdr? zdr = default, global::OpenRouter.ModelsGetParametersRegion? region = default, + double? minOutputPrice = default, + double? maxOutputPrice = default, + int? minAgeDays = default, + int? maxAgeDays = default, + double? minIntelligenceIndex = default, + double? maxIntelligenceIndex = default, + double? minCodingIndex = default, + double? maxCodingIndex = default, + double? minAgenticIndex = default, + double? maxAgenticIndex = default, + double? minToolSuccessRate = default, + double? maxToolSuccessRate = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// List all models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// /// Filter models by use case category /// /// /// /// - /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// /// /// @@ -87,10 +125,24 @@ public partial interface IModelsClient /// /// Filter to models with endpoints in the given data region. Currently only "eu" is supported. /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// /// 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> GetModelsAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, @@ -108,6 +160,18 @@ public partial interface IModelsClient global::OpenRouter.ModelsGetParametersDistillable? distillable = default, global::OpenRouter.ModelsGetParametersZdr? zdr = default, global::OpenRouter.ModelsGetParametersRegion? region = default, + double? minOutputPrice = default, + double? maxOutputPrice = default, + int? minAgeDays = default, + int? maxAgeDays = default, + double? minIntelligenceIndex = default, + double? maxIntelligenceIndex = default, + double? minCodingIndex = default, + double? maxCodingIndex = default, + double? minAgenticIndex = default, + double? maxAgenticIndex = default, + double? minToolSuccessRate = default, + double? maxToolSuccessRate = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListModelsUser.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListModelsUser.g.cs index d1329166..54209bf4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListModelsUser.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListModelsUser.g.cs @@ -8,20 +8,36 @@ public partial interface IModelsClient /// List models filtered by user provider preferences, privacy settings, and guardrails
/// List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through `eu.openrouter.ai/api/v1/...` the results will be filtered to models that satisfy [EU in-region routing](https://openrouter.ai/docs/guides/privacy/provider-logging#enterprise-eu-in-region-routing). /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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 ListModelsUserAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// List models filtered by user provider preferences, privacy settings, and guardrails
/// List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through `eu.openrouter.ai/api/v1/...` the results will be filtered to models that satisfy [EU in-region routing](https://openrouter.ai/docs/guides/privacy/provider-logging#enterprise-eu-in-region-routing). ///
+ /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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> ListModelsUserAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs index 35bbb744..271b7566 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs @@ -48,7 +48,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( string code, - global::OpenRouter.OneOf? codeChallengeMethod = default, + global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod = default, string? codeVerifier = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.CreateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.CreateObservabilityDestination.g.cs index 03e995b1..739ece37 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.CreateObservabilityDestination.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.CreateObservabilityDestination.g.cs @@ -72,7 +72,7 @@ public partial interface IObservabilityClient global::OpenRouter.CreateObservabilityDestinationRequestType type, global::System.Collections.Generic.IList? apiKeyHashes = default, bool? enabled = default, - global::OpenRouter.ObservabilityFilterRulesConfig? filterRules = default, + global::OpenRouter.ObservabilityFilterRulesConfigNullable? filterRules = default, bool? privacyMode = default, double? samplingRate = default, global::System.Guid? workspaceId = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.ListObservabilityDestinations.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.ListObservabilityDestinations.g.cs index e7d6b2ac..09949aa6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.ListObservabilityDestinations.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IObservabilityClient.ListObservabilityDestinations.g.cs @@ -8,8 +8,12 @@ public partial interface IObservabilityClient /// List observability destinations
/// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -24,8 +28,12 @@ public partial interface IObservabilityClient /// List observability destinations
/// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOrganizationClient.ListOrganizationMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOrganizationClient.ListOrganizationMembers.g.cs index 05086679..ebf96f5f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOrganizationClient.ListOrganizationMembers.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOrganizationClient.ListOrganizationMembers.g.cs @@ -8,8 +8,12 @@ public partial interface IOrganizationClient /// List organization members
/// List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -22,8 +26,12 @@ public partial interface IOrganizationClient /// List organization members
/// List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsChatCompletions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsChatCompletions.g.cs index bbe2f6e9..a27982f7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsChatCompletions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsChatCompletions.g.cs @@ -40,7 +40,7 @@ public partial interface IPresetsClient /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -85,9 +85,16 @@ public partial interface IPresetsClient /// /// Plugins you want to enable for this request, including their settings. /// + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// /// /// Presence penalty (-2.0 to 2.0) /// + /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -176,17 +183,20 @@ public partial interface IPresetsClient global::System.Collections.Generic.IList? models = default, bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, + global::OpenRouter.Prediction? prediction = default, double? presencePenalty = default, + string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, - global::OpenRouter.OneOf? reasoningEffort = default, + global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort = default, double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ChatRequestServiceTier? serviceTier = default, string? sessionId = default, - global::OpenRouter.ChatRequestStop? stop = default, + global::OpenRouter.OneOf? stop = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? stream = default, global::OpenRouter.ChatStreamOptions? streamOptions = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsMessages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsMessages.g.cs index 1e137441..185a4d7a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsMessages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsMessages.g.cs @@ -40,7 +40,7 @@ public partial interface IPresetsClient /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs index 672b1ab0..0e29bd32 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs @@ -41,7 +41,7 @@ public partial interface IPresetsClient /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -68,9 +68,14 @@ public partial interface IPresetsClient /// Plugins you want to enable for this request, including their settings. /// /// - /// + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -81,7 +86,9 @@ public partial interface IPresetsClient /// Any type /// /// - /// + /// + /// Default Value: auto + /// /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. /// @@ -130,14 +137,15 @@ public partial interface IPresetsClient bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, double? presencePenalty = default, - string? previousResponseId = default, + object? previousResponseId = default, global::OpenRouter.StoredPromptTemplate? prompt = default, string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ReasoningConfig? reasoning = default, object? route = default, string? safetyIdentifier = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ResponsesRequestServiceTier? serviceTier = default, string? sessionId = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? store = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresetVersions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresetVersions.g.cs index cd7fffb6..b8221872 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresetVersions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresetVersions.g.cs @@ -9,8 +9,12 @@ public partial interface IPresetsClient /// Lists all versions of a preset, ordered by version number ascending (oldest first). /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -25,8 +29,12 @@ public partial interface IPresetsClient /// Lists all versions of a preset, ordered by version number ascending (oldest first). /// /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresets.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresets.g.cs index 679a0124..be1b6a91 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresets.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.ListPresets.g.cs @@ -8,8 +8,12 @@ public partial interface IPresetsClient /// List presets
/// Lists all presets for the authenticated user, ordered by most recently updated first. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -22,8 +26,12 @@ public partial interface IPresetsClient /// List presets
/// Lists all presets for the authenticated user, ordered by most recently updated first. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISttClient.CreateAudioTranscriptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISttClient.CreateAudioTranscriptions.g.cs index 0ed08821..d3fd2405 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISttClient.CreateAudioTranscriptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISttClient.CreateAudioTranscriptions.g.cs @@ -6,7 +6,7 @@ public partial interface ISttClient { /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface ISttClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface ISttClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Base64-encoded audio to transcribe @@ -46,9 +46,15 @@ public partial interface ISttClient /// /// Provider-specific passthrough configuration /// + /// + /// Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers. + /// /// /// Sampling temperature for transcription /// + /// + /// Timestamp detail levels to include when response_format is "verbose_json". "segment" returns segment-level timestamps; "word" additionally returns word-level timestamps in the words array. Ignored unless response_format is "verbose_json". + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -57,7 +63,9 @@ public partial interface ISttClient string model, string? language = default, global::OpenRouter.SttRequestProvider? provider = default, + global::OpenRouter.SttRequestResponseFormat? responseFormat = default, double? temperature = default, + global::System.Collections.Generic.IList? timestampGranularities = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.BulkRemoveWorkspaceMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.BulkRemoveWorkspaceMembers.g.cs index b243dbae..6d9a8ac3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.BulkRemoveWorkspaceMembers.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.BulkRemoveWorkspaceMembers.g.cs @@ -6,7 +6,7 @@ public partial interface IWorkspacesClient { /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// @@ -21,7 +21,7 @@ public partial interface IWorkspacesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// @@ -36,7 +36,7 @@ public partial interface IWorkspacesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaceMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaceMembers.g.cs new file mode 100644 index 00000000..98344b4b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaceMembers.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface IWorkspacesClient + { + /// + /// List workspace members
+ /// List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// + /// 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 ListWorkspaceMembersAsync( + string id, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List workspace members
+ /// List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// + /// 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> ListWorkspaceMembersAsResponseAsync( + string id, + int? offset = default, + int? limit = default, + 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.IWorkspacesClient.ListWorkspaces.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaces.g.cs index e0c3aed2..40290ffe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaces.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IWorkspacesClient.ListWorkspaces.g.cs @@ -8,8 +8,12 @@ public partial interface IWorkspacesClient /// List workspaces
/// List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -22,8 +26,12 @@ public partial interface IWorkspacesClient /// List workspaces
/// List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.CreateImages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.CreateImages.g.cs index 087e7bab..ce40d465 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.CreateImages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.CreateImages.g.cs @@ -522,6 +522,43 @@ partial void ProcessCreateImagesResponseContent( h => h.Key, h => h.Value)); } + // Payload Too Large - Request payload exceeds size limits + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::OpenRouter.PayloadTooLargeResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + 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) { @@ -758,7 +795,7 @@ partial void ProcessCreateImagesResponseContent( /// Text description of the desired image /// /// - /// Provider-specific passthrough configuration + /// Provider routing preferences and provider-specific passthrough configuration. /// /// /// Rendering quality. Providers without a quality knob ignore this. @@ -770,7 +807,7 @@ partial void ProcessCreateImagesResponseContent( /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400. /// /// /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. @@ -787,7 +824,7 @@ partial void ProcessCreateImagesResponseContent( int? n = default, int? outputCompression = default, global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat = default, - global::OpenRouter.ImageGenerationRequestProvider? provider = default, + global::OpenRouter.ImageGenerationProviderPreferences? provider = default, global::OpenRouter.ImageGenerationRequestQuality? quality = default, global::OpenRouter.ImageGenerationRequestResolution? resolution = default, int? seed = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRole.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRole.g.cs new file mode 100644 index 00000000..24a6ff16 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemRole 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.AdditionalToolsItemRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AdditionalToolsItemRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRoleNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRoleNullable.g.cs new file mode 100644 index 00000000..60854249 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemRole? 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.AdditionalToolsItemRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemRole? 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.AdditionalToolsItemRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItems.g.cs new file mode 100644 index 00000000..b7b48a13 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItems.g.cs @@ -0,0 +1,1430 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class AdditionalToolsItemToolsItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemToolsItems 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); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("description")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("parameters")) __score0++; + if (__jsonProps.Contains("strict")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("engine")) __score1++; + if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("filters.allowed_domains")) __score1++; + if (__jsonProps.Contains("filters.excluded_domains")) __score1++; + if (__jsonProps.Contains("max_results")) __score1++; + if (__jsonProps.Contains("search_context_size")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + if (__jsonProps.Contains("user_location")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("engine")) __score2++; + if (__jsonProps.Contains("filters")) __score2++; + if (__jsonProps.Contains("filters.allowed_domains")) __score2++; + if (__jsonProps.Contains("filters.excluded_domains")) __score2++; + if (__jsonProps.Contains("max_results")) __score2++; + if (__jsonProps.Contains("search_context_size")) __score2++; + if (__jsonProps.Contains("type")) __score2++; + if (__jsonProps.Contains("user_location")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("engine")) __score3++; + if (__jsonProps.Contains("filters")) __score3++; + if (__jsonProps.Contains("filters.allowed_domains")) __score3++; + if (__jsonProps.Contains("filters.excluded_domains")) __score3++; + if (__jsonProps.Contains("max_results")) __score3++; + if (__jsonProps.Contains("search_context_size")) __score3++; + if (__jsonProps.Contains("type")) __score3++; + if (__jsonProps.Contains("user_location")) __score3++; + if (__jsonProps.Contains("user_location.city")) __score3++; + if (__jsonProps.Contains("user_location.country")) __score3++; + if (__jsonProps.Contains("user_location.region")) __score3++; + if (__jsonProps.Contains("user_location.timezone")) __score3++; + if (__jsonProps.Contains("user_location.type")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("engine")) __score4++; + if (__jsonProps.Contains("filters")) __score4++; + if (__jsonProps.Contains("filters.allowed_domains")) __score4++; + if (__jsonProps.Contains("filters.excluded_domains")) __score4++; + if (__jsonProps.Contains("max_results")) __score4++; + if (__jsonProps.Contains("search_context_size")) __score4++; + if (__jsonProps.Contains("type")) __score4++; + if (__jsonProps.Contains("user_location")) __score4++; + if (__jsonProps.Contains("user_location.city")) __score4++; + if (__jsonProps.Contains("user_location.country")) __score4++; + if (__jsonProps.Contains("user_location.region")) __score4++; + if (__jsonProps.Contains("user_location.timezone")) __score4++; + if (__jsonProps.Contains("user_location.type")) __score4++; + var __score5 = 0; + if (__jsonProps.Contains("filters")) __score5++; + if (__jsonProps.Contains("max_num_results")) __score5++; + if (__jsonProps.Contains("ranking_options")) __score5++; + if (__jsonProps.Contains("ranking_options.ranker")) __score5++; + if (__jsonProps.Contains("ranking_options.score_threshold")) __score5++; + if (__jsonProps.Contains("type")) __score5++; + if (__jsonProps.Contains("vector_store_ids")) __score5++; + var __score6 = 0; + if (__jsonProps.Contains("display_height")) __score6++; + if (__jsonProps.Contains("display_width")) __score6++; + if (__jsonProps.Contains("environment")) __score6++; + if (__jsonProps.Contains("type")) __score6++; + var __score7 = 0; + if (__jsonProps.Contains("container")) __score7++; + if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("allowed_tools")) __score8++; + if (__jsonProps.Contains("authorization")) __score8++; + if (__jsonProps.Contains("connector_id")) __score8++; + if (__jsonProps.Contains("headers")) __score8++; + if (__jsonProps.Contains("require_approval")) __score8++; + if (__jsonProps.Contains("server_description")) __score8++; + if (__jsonProps.Contains("server_label")) __score8++; + if (__jsonProps.Contains("server_url")) __score8++; + if (__jsonProps.Contains("type")) __score8++; + var __score9 = 0; + if (__jsonProps.Contains("background")) __score9++; + if (__jsonProps.Contains("input_fidelity")) __score9++; + if (__jsonProps.Contains("input_image_mask")) __score9++; + if (__jsonProps.Contains("input_image_mask.file_id")) __score9++; + if (__jsonProps.Contains("input_image_mask.image_url")) __score9++; + if (__jsonProps.Contains("model")) __score9++; + if (__jsonProps.Contains("moderation")) __score9++; + if (__jsonProps.Contains("output_compression")) __score9++; + if (__jsonProps.Contains("output_format")) __score9++; + if (__jsonProps.Contains("partial_images")) __score9++; + if (__jsonProps.Contains("quality")) __score9++; + if (__jsonProps.Contains("size")) __score9++; + if (__jsonProps.Contains("type")) __score9++; + var __score10 = 0; + if (__jsonProps.Contains("type")) __score10++; + var __score11 = 0; + if (__jsonProps.Contains("type")) __score11++; + var __score12 = 0; + if (__jsonProps.Contains("type")) __score12++; + var __score13 = 0; + if (__jsonProps.Contains("description")) __score13++; + if (__jsonProps.Contains("format")) __score13++; + if (__jsonProps.Contains("name")) __score13++; + if (__jsonProps.Contains("type")) __score13++; + var __score14 = 0; + if (__jsonProps.Contains("description")) __score14++; + if (__jsonProps.Contains("name")) __score14++; + if (__jsonProps.Contains("tools")) __score14++; + if (__jsonProps.Contains("type")) __score14++; + var __score15 = 0; + if (__jsonProps.Contains("parameters")) __score15++; + if (__jsonProps.Contains("parameters.forward_transcript")) __score15++; + if (__jsonProps.Contains("parameters.instructions")) __score15++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score15++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score15++; + if (__jsonProps.Contains("parameters.model")) __score15++; + if (__jsonProps.Contains("parameters.name")) __score15++; + if (__jsonProps.Contains("parameters.reasoning")) __score15++; + if (__jsonProps.Contains("parameters.stream")) __score15++; + if (__jsonProps.Contains("parameters.temperature")) __score15++; + if (__jsonProps.Contains("parameters.tools")) __score15++; + if (__jsonProps.Contains("type")) __score15++; + var __score16 = 0; + if (__jsonProps.Contains("parameters")) __score16++; + if (__jsonProps.Contains("parameters.instructions")) __score16++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score16++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score16++; + if (__jsonProps.Contains("parameters.model")) __score16++; + if (__jsonProps.Contains("parameters.reasoning")) __score16++; + if (__jsonProps.Contains("parameters.temperature")) __score16++; + if (__jsonProps.Contains("parameters.tools")) __score16++; + if (__jsonProps.Contains("type")) __score16++; + var __score17 = 0; + if (__jsonProps.Contains("parameters")) __score17++; + if (__jsonProps.Contains("parameters.timezone")) __score17++; + if (__jsonProps.Contains("type")) __score17++; + var __score18 = 0; + if (__jsonProps.Contains("parameters")) __score18++; + if (__jsonProps.Contains("type")) __score18++; + var __score19 = 0; + if (__jsonProps.Contains("parameters")) __score19++; + if (__jsonProps.Contains("parameters.analysis_models")) __score19++; + if (__jsonProps.Contains("parameters.cache_control")) __score19++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score19++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score19++; + if (__jsonProps.Contains("parameters.model")) __score19++; + if (__jsonProps.Contains("parameters.reasoning")) __score19++; + if (__jsonProps.Contains("parameters.temperature")) __score19++; + if (__jsonProps.Contains("parameters.tools")) __score19++; + if (__jsonProps.Contains("type")) __score19++; + var __score20 = 0; + if (__jsonProps.Contains("parameters")) __score20++; + if (__jsonProps.Contains("parameters.model")) __score20++; + if (__jsonProps.Contains("type")) __score20++; + var __score21 = 0; + if (__jsonProps.Contains("parameters")) __score21++; + if (__jsonProps.Contains("parameters.max_results")) __score21++; + if (__jsonProps.Contains("type")) __score21++; + var __score22 = 0; + if (__jsonProps.Contains("parameters")) __score22++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score22++; + if (__jsonProps.Contains("parameters.blocked_domains")) __score22++; + if (__jsonProps.Contains("parameters.engine")) __score22++; + if (__jsonProps.Contains("parameters.max_content_tokens")) __score22++; + if (__jsonProps.Contains("parameters.max_uses")) __score22++; + if (__jsonProps.Contains("type")) __score22++; + var __score23 = 0; + if (__jsonProps.Contains("parameters")) __score23++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score23++; + if (__jsonProps.Contains("parameters.engine")) __score23++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score23++; + if (__jsonProps.Contains("parameters.max_characters")) __score23++; + if (__jsonProps.Contains("parameters.max_results")) __score23++; + if (__jsonProps.Contains("parameters.max_total_results")) __score23++; + if (__jsonProps.Contains("parameters.search_context_size")) __score23++; + if (__jsonProps.Contains("parameters.user_location")) __score23++; + if (__jsonProps.Contains("type")) __score23++; + var __score24 = 0; + if (__jsonProps.Contains("parameters")) __score24++; + if (__jsonProps.Contains("parameters.engine")) __score24++; + if (__jsonProps.Contains("type")) __score24++; + var __score25 = 0; + if (__jsonProps.Contains("parameters")) __score25++; + if (__jsonProps.Contains("parameters.engine")) __score25++; + if (__jsonProps.Contains("parameters.environment")) __score25++; + if (__jsonProps.Contains("parameters.sleep_after_seconds")) __score25++; + if (__jsonProps.Contains("type")) __score25++; + var __score26 = 0; + if (__jsonProps.Contains("parameters")) __score26++; + if (__jsonProps.Contains("parameters.engine")) __score26++; + if (__jsonProps.Contains("parameters.environment")) __score26++; + if (__jsonProps.Contains("parameters.sleep_after_seconds")) __score26++; + if (__jsonProps.Contains("type")) __score26++; + var __score27 = 0; + if (__jsonProps.Contains("type")) __score27++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } + if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } + if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } + if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } + if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } + if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } + if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } + if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } + if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } + if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } + if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } + if (__score26 > __bestScore) { __bestScore = __score26; __bestIndex = 26; } + if (__score27 > __bestScore) { __bestScore = __score27; __bestIndex = 27; } + + global::OpenRouter.AdditionalToolsItemToolsItems0? additionalToolsItemToolsItems0 = default; + global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool = default; + global::OpenRouter.Preview20250311WebSearchServerTool? preview20250311WebSearchServerTool = default; + global::OpenRouter.LegacyWebSearchServerTool? legacyWebSearchServerTool = default; + global::OpenRouter.WebSearchServerTool? webSearchServerTool = default; + global::OpenRouter.FileSearchServerTool? fileSearchServerTool = default; + global::OpenRouter.ComputerUseServerTool? computerUseServerTool = default; + global::OpenRouter.CodeInterpreterServerTool? codeInterpreterServerTool = default; + global::OpenRouter.McpServerTool? mcpServerTool = default; + global::OpenRouter.ImageGenerationServerTool? imageGenerationServerTool = default; + global::OpenRouter.CodexLocalShellTool? codexLocalShellTool = default; + global::OpenRouter.ShellServerTool? shellServerTool = default; + global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool = default; + global::OpenRouter.CustomTool? customTool = default; + global::OpenRouter.NamespaceTool? namespaceTool = default; + global::OpenRouter.AdvisorServerToolOpenRouter? advisorServerToolOpenRouter = default; + global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter = default; + global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; + global::OpenRouter.FilesServerTool? filesServerTool = default; + global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter = default; + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; + global::OpenRouter.SearchModelsServerToolOpenRouter? searchModelsServerToolOpenRouter = default; + global::OpenRouter.WebFetchServerTool? webFetchServerTool = default; + global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter = default; + global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter = default; + global::OpenRouter.BashServerTool? bashServerTool = default; + global::OpenRouter.ShellServerToolOpenRouter? shellServerToolOpenRouter = default; + global::OpenRouter.AdditionalToolsItemToolsItems27? additionalToolsItemToolsItems27 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems0).Name}"); + additionalToolsItemToolsItems0 = 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.PreviewWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchServerTool).Name}"); + previewWebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.Preview20250311WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.Preview20250311WebSearchServerTool).Name}"); + preview20250311WebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 3) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LegacyWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.LegacyWebSearchServerTool).Name}"); + legacyWebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 4) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerTool).Name}"); + webSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 5) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FileSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FileSearchServerTool).Name}"); + fileSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ComputerUseServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ComputerUseServerTool).Name}"); + computerUseServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 7) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterServerTool).Name}"); + codeInterpreterServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 8) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.McpServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.McpServerTool).Name}"); + mcpServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 9) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerTool).Name}"); + imageGenerationServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 10) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodexLocalShellTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodexLocalShellTool).Name}"); + codexLocalShellTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 11) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerTool).Name}"); + shellServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 12) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerTool).Name}"); + applyPatchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 13) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 14) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 15) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdvisorServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdvisorServerToolOpenRouter).Name}"); + advisorServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 16) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SubagentServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SubagentServerToolOpenRouter).Name}"); + subagentServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 17) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.DatetimeServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); + datetimeServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 18) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FilesServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FilesServerTool).Name}"); + filesServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 19) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + fusionServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 20) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 21) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + searchModelsServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 22) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebFetchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebFetchServerTool).Name}"); + webFetchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 23) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerToolOpenRouter).Name}"); + webSearchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 24) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + applyPatchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 25) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.BashServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.BashServerTool).Name}"); + bashServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 26) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerToolOpenRouter).Name}"); + shellServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 27) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems27).Name}"); + additionalToolsItemToolsItems27 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems0).Name}"); + additionalToolsItemToolsItems0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PreviewWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchServerTool).Name}"); + previewWebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.Preview20250311WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.Preview20250311WebSearchServerTool).Name}"); + preview20250311WebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LegacyWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.LegacyWebSearchServerTool).Name}"); + legacyWebSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerTool).Name}"); + webSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FileSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FileSearchServerTool).Name}"); + fileSearchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ComputerUseServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ComputerUseServerTool).Name}"); + computerUseServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterServerTool).Name}"); + codeInterpreterServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.McpServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.McpServerTool).Name}"); + mcpServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerTool).Name}"); + imageGenerationServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodexLocalShellTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodexLocalShellTool).Name}"); + codexLocalShellTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerTool).Name}"); + shellServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerTool).Name}"); + applyPatchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdvisorServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdvisorServerToolOpenRouter).Name}"); + advisorServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SubagentServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SubagentServerToolOpenRouter).Name}"); + subagentServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.DatetimeServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); + datetimeServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FilesServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FilesServerTool).Name}"); + filesServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + fusionServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + searchModelsServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebFetchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebFetchServerTool).Name}"); + webFetchServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerToolOpenRouter).Name}"); + webSearchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + applyPatchServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.BashServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.BashServerTool).Name}"); + bashServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerToolOpenRouter).Name}"); + shellServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (additionalToolsItemToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null && additionalToolsItemToolsItems27 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems27).Name}"); + additionalToolsItemToolsItems27 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.AdditionalToolsItemToolsItems( + additionalToolsItemToolsItems0, + + previewWebSearchServerTool, + + preview20250311WebSearchServerTool, + + legacyWebSearchServerTool, + + webSearchServerTool, + + fileSearchServerTool, + + computerUseServerTool, + + codeInterpreterServerTool, + + mcpServerTool, + + imageGenerationServerTool, + + codexLocalShellTool, + + shellServerTool, + + applyPatchServerTool, + + customTool, + + namespaceTool, + + advisorServerToolOpenRouter, + + subagentServerToolOpenRouter, + + datetimeServerTool, + + filesServerTool, + + fusionServerToolOpenRouter, + + imageGenerationServerToolOpenRouter, + + searchModelsServerToolOpenRouter, + + webFetchServerTool, + + webSearchServerToolOpenRouter, + + applyPatchServerToolOpenRouter, + + bashServerTool, + + shellServerToolOpenRouter, + + additionalToolsItemToolsItems27 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemToolsItems 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.IsAdditionalToolsItemToolsItems0) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems0).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalToolsItemToolsItems0!, typeInfo); + } + else if (value.IsPreviewWebSearchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PreviewWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PreviewWebSearchServerTool!, typeInfo); + } + else if (value.IsPreview20250311WebSearchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.Preview20250311WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.Preview20250311WebSearchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Preview20250311WebSearchServerTool!, typeInfo); + } + else if (value.IsLegacyWebSearchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LegacyWebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.LegacyWebSearchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LegacyWebSearchServerTool!, typeInfo); + } + else if (value.IsWebSearchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchServerTool!, typeInfo); + } + else if (value.IsFileSearchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FileSearchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FileSearchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchServerTool!, typeInfo); + } + else if (value.IsComputerUseServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ComputerUseServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ComputerUseServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUseServerTool!, typeInfo); + } + else if (value.IsCodeInterpreterServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodeInterpreterServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodeInterpreterServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterServerTool!, typeInfo); + } + else if (value.IsMcpServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.McpServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.McpServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpServerTool!, typeInfo); + } + else if (value.IsImageGenerationServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerTool!, typeInfo); + } + else if (value.IsCodexLocalShellTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CodexLocalShellTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CodexLocalShellTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodexLocalShellTool!, typeInfo); + } + else if (value.IsShellServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellServerTool!, typeInfo); + } + else if (value.IsApplyPatchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchServerTool!, typeInfo); + } + else if (value.IsCustomTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); + } + else if (value.IsNamespaceTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NamespaceTool!, typeInfo); + } + else if (value.IsAdvisorServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdvisorServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdvisorServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdvisorServerToolOpenRouter!, typeInfo); + } + else if (value.IsSubagentServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SubagentServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SubagentServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SubagentServerToolOpenRouter!, typeInfo); + } + else if (value.IsDatetimeServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.DatetimeServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DatetimeServerTool!, typeInfo); + } + else if (value.IsFilesServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FilesServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FilesServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilesServerTool!, typeInfo); + } + else if (value.IsFusionServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FusionServerToolOpenRouter!, typeInfo); + } + else if (value.IsImageGenerationServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); + } + else if (value.IsSearchModelsServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SearchModelsServerToolOpenRouter!, typeInfo); + } + else if (value.IsWebFetchServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebFetchServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebFetchServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebFetchServerTool!, typeInfo); + } + else if (value.IsWebSearchServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.WebSearchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.WebSearchServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchServerToolOpenRouter!, typeInfo); + } + else if (value.IsApplyPatchServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchServerToolOpenRouter!, typeInfo); + } + else if (value.IsBashServerTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.BashServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.BashServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.BashServerTool!, typeInfo); + } + else if (value.IsShellServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ShellServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ShellServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellServerToolOpenRouter!, typeInfo); + } + else if (value.IsAdditionalToolsItemToolsItems27) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItemToolsItems27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItemToolsItems27).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalToolsItemToolsItems27!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0Type.g.cs new file mode 100644 index 00000000..500d9acf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type 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.AdditionalToolsItemToolsItemsOneOf0TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullable.g.cs new file mode 100644 index 00000000..f5e999aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type? 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.AdditionalToolsItemToolsItemsOneOf0TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type? 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.AdditionalToolsItemToolsItemsOneOf0TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemType.g.cs new file mode 100644 index 00000000..3c3e4c95 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemType 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.AdditionalToolsItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AdditionalToolsItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemTypeNullable.g.cs new file mode 100644 index 00000000..6074e1a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AdditionalToolsItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AdditionalToolsItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AdditionalToolsItemType? 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.AdditionalToolsItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AdditionalToolsItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AdditionalToolsItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AdditionalToolsItemType? 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.AdditionalToolsItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItems.g.cs new file mode 100644 index 00000000..cdf0a522 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItems.g.cs @@ -0,0 +1,197 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class AgentMessageItemContentItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItems 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); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("prompt_cache_breakpoint")) __score0++; + if (__jsonProps.Contains("prompt_cache_breakpoint.mode")) __score0++; + if (__jsonProps.Contains("text")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("detail")) __score1++; + if (__jsonProps.Contains("image_url")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("encrypted_content")) __score2++; + if (__jsonProps.Contains("type")) __score2++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + global::OpenRouter.InputText? inputText = default; + global::OpenRouter.AgentMessageItemContentItems1? agentMessageItemContentItems1 = default; + global::OpenRouter.AgentMessageItemContentItems2? agentMessageItemContentItems2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputText).Name}"); + inputText = 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.AgentMessageItemContentItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems1).Name}"); + agentMessageItemContentItems1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItemContentItems2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems2).Name}"); + agentMessageItemContentItems2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (inputText == null && agentMessageItemContentItems1 == null && agentMessageItemContentItems2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputText).Name}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (inputText == null && agentMessageItemContentItems1 == null && agentMessageItemContentItems2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItemContentItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems1).Name}"); + agentMessageItemContentItems1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (inputText == null && agentMessageItemContentItems1 == null && agentMessageItemContentItems2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItemContentItems2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems2).Name}"); + agentMessageItemContentItems2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.AgentMessageItemContentItems( + inputText, + + agentMessageItemContentItems1, + + agentMessageItemContentItems2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItems 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.IsInputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.InputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.InputText).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + } + else if (value.IsAgentMessageItemContentItems1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItemContentItems1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageItemContentItems1!, typeInfo); + } + else if (value.IsAgentMessageItemContentItems2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItemContentItems2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItemContentItems2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageItemContentItems2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Detail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Detail.g.cs new file mode 100644 index 00000000..2a99d305 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Detail.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf1DetailJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail 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.AgentMessageItemContentItemsOneOf1DetailExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AgentMessageItemContentItemsOneOf1DetailExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullable.g.cs new file mode 100644 index 00000000..b85c4795 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail? 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.AgentMessageItemContentItemsOneOf1DetailExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail? 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.AgentMessageItemContentItemsOneOf1DetailExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Type.g.cs new file mode 100644 index 00000000..07861e46 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf1Type 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.AgentMessageItemContentItemsOneOf1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AgentMessageItemContentItemsOneOf1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullable.g.cs new file mode 100644 index 00000000..8f556043 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf1Type? 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.AgentMessageItemContentItemsOneOf1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf1Type? 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.AgentMessageItemContentItemsOneOf1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2Type.g.cs new file mode 100644 index 00000000..69346c8b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf2Type 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.AgentMessageItemContentItemsOneOf2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AgentMessageItemContentItemsOneOf2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullable.g.cs new file mode 100644 index 00000000..241db9ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemContentItemsOneOf2Type? 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.AgentMessageItemContentItemsOneOf2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemContentItemsOneOf2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemContentItemsOneOf2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemContentItemsOneOf2Type? 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.AgentMessageItemContentItemsOneOf2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemType.g.cs new file mode 100644 index 00000000..dada8113 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemType 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.AgentMessageItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.AgentMessageItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemTypeNullable.g.cs new file mode 100644 index 00000000..07d457ca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AgentMessageItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class AgentMessageItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AgentMessageItemType? 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.AgentMessageItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.AgentMessageItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.AgentMessageItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AgentMessageItemType? 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.AgentMessageItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs new file mode 100644 index 00000000..4cd7024a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs @@ -0,0 +1,217 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + string? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = default; + double? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = default; + global::System.Collections.Generic.IList? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue( + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1, + + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2, + + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue 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.IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1!, typeInfo); + } + else if (value.IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2!.Value, typeInfo); + } + else if (value.IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs new file mode 100644 index 00000000..28a8e255 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = default; + double? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 == null && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items( + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1, + + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items 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.IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1!, typeInfo); + } + else if (value.IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputs.g.cs index 83634f02..677f9658 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputs.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputs.g.cs @@ -49,26 +49,13 @@ public class BaseInputsJsonConverter : global::System.Text.Json.Serialization.Js } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } string? baseInputsVariant1 = default; global::System.Collections.Generic.IList? baseInputs1 = default; - object? baseInputsVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class BaseInputsJsonConverter : global::System.Text.Json.Serialization.Js { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - baseInputsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (baseInputsVariant1 == null && baseInputs1 == null && baseInputsVariant3 == null) + if (baseInputsVariant1 == null && baseInputs1 == null) { try { @@ -140,7 +110,7 @@ public class BaseInputsJsonConverter : global::System.Text.Json.Serialization.Js } } - if (baseInputsVariant1 == null && baseInputs1 == null && baseInputsVariant3 == null) + if (baseInputsVariant1 == null && baseInputs1 == null) { try { @@ -157,29 +127,10 @@ public class BaseInputsJsonConverter : global::System.Text.Json.Serialization.Js } } - if (baseInputsVariant1 == null && baseInputs1 == null && baseInputsVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - baseInputsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.BaseInputs( baseInputsVariant1, - baseInputs1, - - baseInputsVariant3 + baseInputs1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.BaseInputs1!, typeInfo); } - else if (value.IsBaseInputsVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BaseInputsVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase.g.cs index 4ede0977..7414706e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase.g.cs @@ -49,26 +49,13 @@ public class BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter : global::System.Text } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? baseInputsOneOf1ItemsOneOf0Phase0 = default; global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? baseInputsOneOf1ItemsOneOf0Phase1 = default; - object? baseInputsOneOf1ItemsOneOf0PhaseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter : global::System.Text { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - baseInputsOneOf1ItemsOneOf0PhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (baseInputsOneOf1ItemsOneOf0Phase0 == null && baseInputsOneOf1ItemsOneOf0Phase1 == null && baseInputsOneOf1ItemsOneOf0PhaseVariant3 == null) + if (baseInputsOneOf1ItemsOneOf0Phase0 == null && baseInputsOneOf1ItemsOneOf0Phase1 == null) { try { @@ -140,7 +110,7 @@ public class BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter : global::System.Text } } - if (baseInputsOneOf1ItemsOneOf0Phase0 == null && baseInputsOneOf1ItemsOneOf0Phase1 == null && baseInputsOneOf1ItemsOneOf0PhaseVariant3 == null) + if (baseInputsOneOf1ItemsOneOf0Phase0 == null && baseInputsOneOf1ItemsOneOf0Phase1 == null) { try { @@ -157,29 +127,10 @@ public class BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter : global::System.Text } } - if (baseInputsOneOf1ItemsOneOf0Phase0 == null && baseInputsOneOf1ItemsOneOf0Phase1 == null && baseInputsOneOf1ItemsOneOf0PhaseVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - baseInputsOneOf1ItemsOneOf0PhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase( baseInputsOneOf1ItemsOneOf0Phase0, - baseInputsOneOf1ItemsOneOf0Phase1, - - baseInputsOneOf1ItemsOneOf0PhaseVariant3 + baseInputsOneOf1ItemsOneOf0Phase1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.BaseInputsOneOf1ItemsOneOf0Phase1!.Value, typeInfo); } - else if (value.IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BaseInputsOneOf1ItemsOneOf0PhaseVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs index 09e6ab9b..241bb930 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs @@ -72,48 +72,42 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("type")) __score4++; var __score5 = 0; if (__jsonProps.Contains("parameters")) __score5++; + if (__jsonProps.Contains("parameters.analysis_models")) __score5++; + if (__jsonProps.Contains("parameters.cache_control")) __score5++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score5++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score5++; if (__jsonProps.Contains("parameters.model")) __score5++; + if (__jsonProps.Contains("parameters.reasoning")) __score5++; + if (__jsonProps.Contains("parameters.temperature")) __score5++; + if (__jsonProps.Contains("parameters.tools")) __score5++; if (__jsonProps.Contains("type")) __score5++; var __score6 = 0; if (__jsonProps.Contains("parameters")) __score6++; - if (__jsonProps.Contains("parameters.max_results")) __score6++; + if (__jsonProps.Contains("parameters.model")) __score6++; if (__jsonProps.Contains("type")) __score6++; var __score7 = 0; if (__jsonProps.Contains("parameters")) __score7++; - if (__jsonProps.Contains("parameters.instructions")) __score7++; - if (__jsonProps.Contains("parameters.max_completion_tokens")) __score7++; - if (__jsonProps.Contains("parameters.max_tool_calls")) __score7++; - if (__jsonProps.Contains("parameters.model")) __score7++; - if (__jsonProps.Contains("parameters.reasoning")) __score7++; - if (__jsonProps.Contains("parameters.temperature")) __score7++; - if (__jsonProps.Contains("parameters.tools")) __score7++; + if (__jsonProps.Contains("parameters.max_results")) __score7++; if (__jsonProps.Contains("type")) __score7++; var __score8 = 0; if (__jsonProps.Contains("parameters")) __score8++; - if (__jsonProps.Contains("parameters.allowed_domains")) __score8++; - if (__jsonProps.Contains("parameters.blocked_domains")) __score8++; - if (__jsonProps.Contains("parameters.engine")) __score8++; - if (__jsonProps.Contains("parameters.max_content_tokens")) __score8++; - if (__jsonProps.Contains("parameters.max_uses")) __score8++; + if (__jsonProps.Contains("parameters.instructions")) __score8++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score8++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score8++; + if (__jsonProps.Contains("parameters.model")) __score8++; + if (__jsonProps.Contains("parameters.reasoning")) __score8++; + if (__jsonProps.Contains("parameters.temperature")) __score8++; + if (__jsonProps.Contains("parameters.tools")) __score8++; if (__jsonProps.Contains("type")) __score8++; var __score9 = 0; if (__jsonProps.Contains("parameters")) __score9++; if (__jsonProps.Contains("parameters.allowed_domains")) __score9++; + if (__jsonProps.Contains("parameters.blocked_domains")) __score9++; if (__jsonProps.Contains("parameters.engine")) __score9++; - if (__jsonProps.Contains("parameters.excluded_domains")) __score9++; - if (__jsonProps.Contains("parameters.max_characters")) __score9++; - if (__jsonProps.Contains("parameters.max_results")) __score9++; - if (__jsonProps.Contains("parameters.max_total_results")) __score9++; - if (__jsonProps.Contains("parameters.search_context_size")) __score9++; - if (__jsonProps.Contains("parameters.user_location")) __score9++; + if (__jsonProps.Contains("parameters.max_content_tokens")) __score9++; + if (__jsonProps.Contains("parameters.max_uses")) __score9++; if (__jsonProps.Contains("type")) __score9++; var __score10 = 0; - if (__jsonProps.Contains("allowed_domains")) __score10++; - if (__jsonProps.Contains("engine")) __score10++; - if (__jsonProps.Contains("excluded_domains")) __score10++; - if (__jsonProps.Contains("max_characters")) __score10++; - if (__jsonProps.Contains("max_results")) __score10++; - if (__jsonProps.Contains("max_total_results")) __score10++; if (__jsonProps.Contains("parameters")) __score10++; if (__jsonProps.Contains("parameters.allowed_domains")) __score10++; if (__jsonProps.Contains("parameters.engine")) __score10++; @@ -123,14 +117,31 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("parameters.max_total_results")) __score10++; if (__jsonProps.Contains("parameters.search_context_size")) __score10++; if (__jsonProps.Contains("parameters.user_location")) __score10++; - if (__jsonProps.Contains("search_context_size")) __score10++; if (__jsonProps.Contains("type")) __score10++; - if (__jsonProps.Contains("user_location")) __score10++; - if (__jsonProps.Contains("user_location.city")) __score10++; - if (__jsonProps.Contains("user_location.country")) __score10++; - if (__jsonProps.Contains("user_location.region")) __score10++; - if (__jsonProps.Contains("user_location.timezone")) __score10++; - if (__jsonProps.Contains("user_location.type")) __score10++; + var __score11 = 0; + if (__jsonProps.Contains("allowed_domains")) __score11++; + if (__jsonProps.Contains("engine")) __score11++; + if (__jsonProps.Contains("excluded_domains")) __score11++; + if (__jsonProps.Contains("max_characters")) __score11++; + if (__jsonProps.Contains("max_results")) __score11++; + if (__jsonProps.Contains("max_total_results")) __score11++; + if (__jsonProps.Contains("parameters")) __score11++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score11++; + if (__jsonProps.Contains("parameters.engine")) __score11++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score11++; + if (__jsonProps.Contains("parameters.max_characters")) __score11++; + if (__jsonProps.Contains("parameters.max_results")) __score11++; + if (__jsonProps.Contains("parameters.max_total_results")) __score11++; + if (__jsonProps.Contains("parameters.search_context_size")) __score11++; + if (__jsonProps.Contains("parameters.user_location")) __score11++; + if (__jsonProps.Contains("search_context_size")) __score11++; + if (__jsonProps.Contains("type")) __score11++; + if (__jsonProps.Contains("user_location")) __score11++; + if (__jsonProps.Contains("user_location.city")) __score11++; + if (__jsonProps.Contains("user_location.country")) __score11++; + if (__jsonProps.Contains("user_location.region")) __score11++; + if (__jsonProps.Contains("user_location.timezone")) __score11++; + if (__jsonProps.Contains("user_location.type")) __score11++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -144,12 +155,14 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } global::OpenRouter.ChatFunctionTool0? chatFunctionTool0 = default; global::OpenRouter.AdvisorServerToolOpenRouter? advisorServerToolOpenRouter = default; global::OpenRouter.BashServerTool? bashServerTool = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; global::OpenRouter.FilesServerTool? filesServerTool = default; + global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter = default; global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter = default; @@ -234,6 +247,21 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } else if (__bestIndex == 5) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + fusionServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 6) { try { @@ -248,7 +276,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 6) + else if (__bestIndex == 7) { try { @@ -263,7 +291,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 7) + else if (__bestIndex == 8) { try { @@ -278,7 +306,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 8) + else if (__bestIndex == 9) { try { @@ -293,7 +321,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 9) + else if (__bestIndex == 10) { try { @@ -308,7 +336,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 10) + else if (__bestIndex == 11) { try { @@ -325,7 +353,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -342,7 +370,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -359,7 +387,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -376,7 +404,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -393,7 +421,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -410,7 +438,24 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + fusionServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -427,7 +472,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -444,7 +489,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -461,7 +506,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -478,7 +523,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -495,7 +540,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && advisorServerToolOpenRouter == null && bashServerTool == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && subagentServerToolOpenRouter == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -523,6 +568,8 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat filesServerTool, + fusionServerToolOpenRouter, + imageGenerationServerToolOpenRouter, chatSearchModelsServerTool, @@ -578,6 +625,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FilesServerTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilesServerTool!, typeInfo); } + else if (value.IsFusionServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.FusionServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.FusionServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FusionServerToolOpenRouter!, typeInfo); + } else if (value.IsImageGenerationServerToolOpenRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContent.g.cs index 13b1e3cc..890a25a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContent.g.cs @@ -49,26 +49,13 @@ public class ChatMessagesDiscriminatorMappingAssistantContentJsonConverter : glo } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } string? chatMessagesDiscriminatorMappingAssistantContentVariant1 = default; global::System.Collections.Generic.IList? chatMessagesDiscriminatorMappingAssistantContent1 = default; - object? chatMessagesDiscriminatorMappingAssistantContentVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class ChatMessagesDiscriminatorMappingAssistantContentJsonConverter : glo { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - chatMessagesDiscriminatorMappingAssistantContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (chatMessagesDiscriminatorMappingAssistantContentVariant1 == null && chatMessagesDiscriminatorMappingAssistantContent1 == null && chatMessagesDiscriminatorMappingAssistantContentVariant3 == null) + if (chatMessagesDiscriminatorMappingAssistantContentVariant1 == null && chatMessagesDiscriminatorMappingAssistantContent1 == null) { try { @@ -140,7 +110,7 @@ public class ChatMessagesDiscriminatorMappingAssistantContentJsonConverter : glo } } - if (chatMessagesDiscriminatorMappingAssistantContentVariant1 == null && chatMessagesDiscriminatorMappingAssistantContent1 == null && chatMessagesDiscriminatorMappingAssistantContentVariant3 == null) + if (chatMessagesDiscriminatorMappingAssistantContentVariant1 == null && chatMessagesDiscriminatorMappingAssistantContent1 == null) { try { @@ -157,29 +127,10 @@ public class ChatMessagesDiscriminatorMappingAssistantContentJsonConverter : glo } } - if (chatMessagesDiscriminatorMappingAssistantContentVariant1 == null && chatMessagesDiscriminatorMappingAssistantContent1 == null && chatMessagesDiscriminatorMappingAssistantContentVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - chatMessagesDiscriminatorMappingAssistantContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent( chatMessagesDiscriminatorMappingAssistantContentVariant1, - chatMessagesDiscriminatorMappingAssistantContent1, - - chatMessagesDiscriminatorMappingAssistantContentVariant3 + chatMessagesDiscriminatorMappingAssistantContent1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatMessagesDiscriminatorMappingAssistantContent1!, typeInfo); } - else if (value.IsChatMessagesDiscriminatorMappingAssistantContentVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatMessagesDiscriminatorMappingAssistantContentVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs index bc4b9eae..4acbdd34 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs @@ -21,72 +21,81 @@ public class ChatRequestPluginsItemsJsonConverter : global::System.Text.Json.Ser throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenRouter.ChatRequestPluginsItemsVariant1? autoRouter = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.AutoRouter) + global::OpenRouter.ChatRequestPluginsItemsVariant1? autoBetaRouter = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.AutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant1)}"); - autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoBetaRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant2? contextCompression = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ContextCompression) + global::OpenRouter.ChatRequestPluginsItemsVariant2? autoRouter = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.AutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant2)}"); - contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant3? fileParser = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.FileParser) + global::OpenRouter.ChatRequestPluginsItemsVariant3? contextCompression = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant3)}"); - fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant4? fusion = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Fusion) + global::OpenRouter.ChatRequestPluginsItemsVariant4? fileParser = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.FileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant4)}"); - fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant5? moderation = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Moderation) + global::OpenRouter.ChatRequestPluginsItemsVariant5? fusion = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Fusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant5)}"); - moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant6? paretoRouter = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ParetoRouter) + global::OpenRouter.ChatRequestPluginsItemsVariant6? moderation = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Moderation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant6)}"); - paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant7? responseHealing = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ResponseHealing) + global::OpenRouter.ChatRequestPluginsItemsVariant7? paretoRouter = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant7)}"); - responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant8? web = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Web) + global::OpenRouter.ChatRequestPluginsItemsVariant8? responseHealing = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.ResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant8)}"); - web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ChatRequestPluginsItemsVariant9? webFetch = default; - if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.WebFetch) + global::OpenRouter.ChatRequestPluginsItemsVariant9? web = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.Web) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant9)}"); + web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ChatRequestPluginsItemsVariant10? webFetch = default; + if (discriminator?.Id == global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId.WebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ChatRequestPluginsItemsVariant10)}"); webFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::OpenRouter.ChatRequestPluginsItems( discriminator?.Id, + autoBetaRouter, + autoRouter, contextCompression, @@ -118,58 +127,64 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAutoRouter) + if (value.IsAutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoBetaRouter!, typeInfo); } - else if (value.IsContextCompression) + else if (value.IsAutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); } - else if (value.IsFileParser) + else if (value.IsContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); } - else if (value.IsFusion) + else if (value.IsFileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); } - else if (value.IsModeration) + else if (value.IsFusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); } - else if (value.IsParetoRouter) + else if (value.IsModeration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); } - else if (value.IsResponseHealing) + else if (value.IsParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); } - else if (value.IsWeb) + else if (value.IsResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); } - else if (value.IsWebFetch) + else if (value.IsWeb) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + } + else if (value.IsWebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebFetch!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..7d5c6df0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ChatRequestPluginsItemsVariant8IdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ChatRequestPluginsItemsVariant8Id 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.ChatRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ChatRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ChatRequestPluginsItemsVariant8Id); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ChatRequestPluginsItemsVariant8Id value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ChatRequestPluginsItemsVariant8IdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullable.g.cs new file mode 100644 index 00000000..67f88e44 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ChatRequestPluginsItemsVariant8IdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ChatRequestPluginsItemsVariant8Id? 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.ChatRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ChatRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ChatRequestPluginsItemsVariant8Id?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ChatRequestPluginsItemsVariant8Id? 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.ChatRequestPluginsItemsVariant8IdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2Type.g.cs new file mode 100644 index 00000000..2cd7721c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ChatRequestResponseFormatVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ChatRequestResponseFormatVariant2Type 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.ChatRequestResponseFormatVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ChatRequestResponseFormatVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ChatRequestResponseFormatVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ChatRequestResponseFormatVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ChatRequestResponseFormatVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullable.g.cs new file mode 100644 index 00000000..bff5fb1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ChatRequestResponseFormatVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ChatRequestResponseFormatVariant2Type? 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.ChatRequestResponseFormatVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ChatRequestResponseFormatVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ChatRequestResponseFormatVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ChatRequestResponseFormatVariant2Type? 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.ChatRequestResponseFormatVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestStop.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestStop.g.cs index bcdbffed..b21a8fdb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestStop.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestStop.g.cs @@ -49,26 +49,13 @@ public class ChatRequestStopJsonConverter : global::System.Text.Json.Serializati } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } string? chatRequestStopVariant1 = default; global::System.Collections.Generic.IList? chatRequestStopVariant2 = default; - object? chatRequestStopVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class ChatRequestStopJsonConverter : global::System.Text.Json.Serializati { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - chatRequestStopVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (chatRequestStopVariant1 == null && chatRequestStopVariant2 == null && chatRequestStopVariant3 == null) + if (chatRequestStopVariant1 == null && chatRequestStopVariant2 == null) { try { @@ -140,7 +110,7 @@ public class ChatRequestStopJsonConverter : global::System.Text.Json.Serializati } } - if (chatRequestStopVariant1 == null && chatRequestStopVariant2 == null && chatRequestStopVariant3 == null) + if (chatRequestStopVariant1 == null && chatRequestStopVariant2 == null) { try { @@ -157,29 +127,10 @@ public class ChatRequestStopJsonConverter : global::System.Text.Json.Serializati } } - if (chatRequestStopVariant1 == null && chatRequestStopVariant2 == null && chatRequestStopVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - chatRequestStopVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.ChatRequestStop( chatRequestStopVariant1, - chatRequestStopVariant2, - - chatRequestStopVariant3 + chatRequestStopVariant2 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatRequestStopVariant2!, typeInfo); } - else if (value.IsChatRequestStopVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatRequestStopVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemType.g.cs new file mode 100644 index 00000000..5285bab8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ContextCompactionItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ContextCompactionItemType 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.ContextCompactionItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ContextCompactionItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ContextCompactionItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ContextCompactionItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ContextCompactionItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemTypeNullable.g.cs new file mode 100644 index 00000000..3382cc68 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ContextCompactionItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ContextCompactionItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ContextCompactionItemType? 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.ContextCompactionItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ContextCompactionItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ContextCompactionItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ContextCompactionItemType? 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.ContextCompactionItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategory.g.cs new file mode 100644 index 00000000..251c86d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategory.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersCategory 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.DatasetsRankingsDailyGetParametersCategoryExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersCategory); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsRankingsDailyGetParametersCategoryExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullable.g.cs new file mode 100644 index 00000000..b8810f77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? 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.DatasetsRankingsDailyGetParametersCategoryExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersCategory?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? 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.DatasetsRankingsDailyGetParametersCategoryExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucket.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucket.g.cs new file mode 100644 index 00000000..d6cbfb55 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucket.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersContextBucketJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket 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.DatasetsRankingsDailyGetParametersContextBucketExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucketExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullable.g.cs new file mode 100644 index 00000000..0974e5da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? 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.DatasetsRankingsDailyGetParametersContextBucketExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? 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.DatasetsRankingsDailyGetParametersContextBucketExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageType.g.cs new file mode 100644 index 00000000..984d5297 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType 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.DatasetsRankingsDailyGetParametersLanguageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullable.g.cs new file mode 100644 index 00000000..a5df6a4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? 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.DatasetsRankingsDailyGetParametersLanguageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? 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.DatasetsRankingsDailyGetParametersLanguageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModality.g.cs new file mode 100644 index 00000000..2f80cb1d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersModality 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.DatasetsRankingsDailyGetParametersModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsRankingsDailyGetParametersModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullable.g.cs new file mode 100644 index 00000000..16d651d4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersModality? 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.DatasetsRankingsDailyGetParametersModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersModality? 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.DatasetsRankingsDailyGetParametersModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriod.g.cs new file mode 100644 index 00000000..05b6a976 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriod.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersPeriodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod 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.DatasetsRankingsDailyGetParametersPeriodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsRankingsDailyGetParametersPeriodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullable.g.cs new file mode 100644 index 00000000..ff247b1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? 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.DatasetsRankingsDailyGetParametersPeriodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? 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.DatasetsRankingsDailyGetParametersPeriodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContent.g.cs index 84e871cc..54d01af3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContent.g.cs @@ -49,26 +49,13 @@ public class EasyInputMessageContentJsonConverter : global::System.Text.Json.Ser } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::System.Collections.Generic.IList? easyInputMessageContent0 = default; string? easyInputMessageContentVariant2 = default; - object? easyInputMessageContentVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class EasyInputMessageContentJsonConverter : global::System.Text.Json.Ser { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - easyInputMessageContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (easyInputMessageContent0 == null && easyInputMessageContentVariant2 == null && easyInputMessageContentVariant3 == null) + if (easyInputMessageContent0 == null && easyInputMessageContentVariant2 == null) { try { @@ -140,7 +110,7 @@ public class EasyInputMessageContentJsonConverter : global::System.Text.Json.Ser } } - if (easyInputMessageContent0 == null && easyInputMessageContentVariant2 == null && easyInputMessageContentVariant3 == null) + if (easyInputMessageContent0 == null && easyInputMessageContentVariant2 == null) { try { @@ -157,29 +127,10 @@ public class EasyInputMessageContentJsonConverter : global::System.Text.Json.Ser } } - if (easyInputMessageContent0 == null && easyInputMessageContentVariant2 == null && easyInputMessageContentVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - easyInputMessageContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.EasyInputMessageContent( easyInputMessageContent0, - easyInputMessageContentVariant2, - - easyInputMessageContentVariant3 + easyInputMessageContentVariant2 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.EasyInputMessageContentVariant2!, typeInfo); } - else if (value.IsEasyInputMessageContentVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EasyInputMessageContentVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs index 61c22946..91d9d35c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs @@ -35,6 +35,8 @@ public class EasyInputMessageContentOneOf0ItemsJsonConverter : global::System.Te } var __score0 = 0; + if (__jsonProps.Contains("prompt_cache_breakpoint")) __score0++; + if (__jsonProps.Contains("prompt_cache_breakpoint.mode")) __score0++; if (__jsonProps.Contains("text")) __score0++; var __score1 = 0; if (__jsonProps.Contains("detail")) __score1++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessagePhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessagePhase.g.cs index e8f48bc6..1a74c997 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessagePhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessagePhase.g.cs @@ -49,26 +49,13 @@ public class EasyInputMessagePhaseJsonConverter : global::System.Text.Json.Seria } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.EasyInputMessagePhase0? easyInputMessagePhase0 = default; global::OpenRouter.EasyInputMessagePhase1? easyInputMessagePhase1 = default; - object? easyInputMessagePhaseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class EasyInputMessagePhaseJsonConverter : global::System.Text.Json.Seria { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - easyInputMessagePhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (easyInputMessagePhase0 == null && easyInputMessagePhase1 == null && easyInputMessagePhaseVariant3 == null) + if (easyInputMessagePhase0 == null && easyInputMessagePhase1 == null) { try { @@ -140,7 +110,7 @@ public class EasyInputMessagePhaseJsonConverter : global::System.Text.Json.Seria } } - if (easyInputMessagePhase0 == null && easyInputMessagePhase1 == null && easyInputMessagePhaseVariant3 == null) + if (easyInputMessagePhase0 == null && easyInputMessagePhase1 == null) { try { @@ -157,29 +127,10 @@ public class EasyInputMessagePhaseJsonConverter : global::System.Text.Json.Seria } } - if (easyInputMessagePhase0 == null && easyInputMessagePhase1 == null && easyInputMessagePhaseVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - easyInputMessagePhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.EasyInputMessagePhase( easyInputMessagePhase0, - easyInputMessagePhase1, - - easyInputMessagePhaseVariant3 + easyInputMessagePhase1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.EasyInputMessagePhase1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.EasyInputMessagePhase1!.Value, typeInfo); } - else if (value.IsEasyInputMessagePhaseVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EasyInputMessagePhaseVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs index 2b99e24c..b49423e0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs @@ -31,16 +31,13 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJs var __score1 = 0; if (__jsonProps.Contains("by")) __score1++; if (__jsonProps.Contains("partition")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.ProviderSort? providerSort = default; global::OpenRouter.ProviderSortConfig? providerSortConfig = default; - object? embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -73,24 +70,9 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJs { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (providerSort == null && providerSortConfig == null && embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -107,7 +89,7 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJs } } - if (providerSort == null && providerSortConfig == null && embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -124,29 +106,10 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJs } } - if (providerSort == null && providerSortConfig == null && embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort( providerSort, - providerSortConfig, - - embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 + providerSortConfig ); return __value; @@ -173,12 +136,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderSortConfig!, typeInfo); } - else if (value.IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs index 6cbcafe5..ea68d174 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs @@ -34,16 +34,13 @@ public class FileSearchServerToolFiltersJsonConverter : global::System.Text.Json var __score1 = 0; if (__jsonProps.Contains("filters")) __score1++; if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.FileSearchServerToolFilters0? fileSearchServerToolFilters0 = default; global::OpenRouter.CompoundFilter? compoundFilter = default; - object? fileSearchServerToolFiltersVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -76,24 +73,9 @@ public class FileSearchServerToolFiltersJsonConverter : global::System.Text.Json { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - fileSearchServerToolFiltersVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (fileSearchServerToolFilters0 == null && compoundFilter == null && fileSearchServerToolFiltersVariant3 == null) + if (fileSearchServerToolFilters0 == null && compoundFilter == null) { try { @@ -110,7 +92,7 @@ public class FileSearchServerToolFiltersJsonConverter : global::System.Text.Json } } - if (fileSearchServerToolFilters0 == null && compoundFilter == null && fileSearchServerToolFiltersVariant3 == null) + if (fileSearchServerToolFilters0 == null && compoundFilter == null) { try { @@ -127,29 +109,10 @@ public class FileSearchServerToolFiltersJsonConverter : global::System.Text.Json } } - if (fileSearchServerToolFilters0 == null && compoundFilter == null && fileSearchServerToolFiltersVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - fileSearchServerToolFiltersVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.FileSearchServerToolFilters( fileSearchServerToolFilters0, - compoundFilter, - - fileSearchServerToolFiltersVariant3 + compoundFilter ); return __value; @@ -176,12 +139,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CompoundFilter).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter!, typeInfo); } - else if (value.IsFileSearchServerToolFiltersVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchServerToolFiltersVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItems.g.cs new file mode 100644 index 00000000..7a590f45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItems.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ImageGenerationProviderPreferencesIgnoreItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.ProviderName? providerName = default; + string? imageGenerationProviderPreferencesIgnoreItemsVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = 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(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesIgnoreItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (providerName == null && imageGenerationProviderPreferencesIgnoreItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (providerName == null && imageGenerationProviderPreferencesIgnoreItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesIgnoreItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems( + providerName, + + imageGenerationProviderPreferencesIgnoreItemsVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems 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.IsProviderName) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderName!.Value, typeInfo); + } + else if (value.IsImageGenerationProviderPreferencesIgnoreItemsVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationProviderPreferencesIgnoreItemsVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItems.g.cs new file mode 100644 index 00000000..491ccc39 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItems.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ImageGenerationProviderPreferencesOnlyItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.ProviderName? providerName = default; + string? imageGenerationProviderPreferencesOnlyItemsVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = 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(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesOnlyItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (providerName == null && imageGenerationProviderPreferencesOnlyItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (providerName == null && imageGenerationProviderPreferencesOnlyItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesOnlyItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems( + providerName, + + imageGenerationProviderPreferencesOnlyItemsVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems 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.IsProviderName) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderName!.Value, typeInfo); + } + else if (value.IsImageGenerationProviderPreferencesOnlyItemsVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationProviderPreferencesOnlyItemsVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItems.g.cs new file mode 100644 index 00000000..828126af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItems.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ImageGenerationProviderPreferencesOrderItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationProviderPreferencesOrderItems 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.ProviderName? providerName = default; + string? imageGenerationProviderPreferencesOrderItemsVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = 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(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesOrderItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (providerName == null && imageGenerationProviderPreferencesOrderItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + providerName = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (providerName == null && imageGenerationProviderPreferencesOrderItemsVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + imageGenerationProviderPreferencesOrderItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ImageGenerationProviderPreferencesOrderItems( + providerName, + + imageGenerationProviderPreferencesOrderItemsVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationProviderPreferencesOrderItems 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.IsProviderName) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderName).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderName!.Value, typeInfo); + } + else if (value.IsImageGenerationProviderPreferencesOrderItemsVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationProviderPreferencesOrderItemsVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSort.g.cs new file mode 100644 index 00000000..462731c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSort.g.cs @@ -0,0 +1,141 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ImageGenerationProviderPreferencesSortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationProviderPreferencesSort 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; + var __score1 = 0; + if (__jsonProps.Contains("by")) __score1++; + if (__jsonProps.Contains("partition")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.ProviderSort? providerSort = default; + global::OpenRouter.ProviderSortConfig? providerSortConfig = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderSort), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSort).Name}"); + providerSort = 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.ProviderSortConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); + providerSortConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (providerSort == null && providerSortConfig == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderSort), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSort).Name}"); + providerSort = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (providerSort == null && providerSortConfig == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderSortConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); + providerSortConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ImageGenerationProviderPreferencesSort( + providerSort, + + providerSortConfig + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationProviderPreferencesSort 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.IsProviderSort) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderSort), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSort).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderSort!.Value, typeInfo); + } + else if (value.IsProviderSortConfig) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ProviderSortConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderSortConfig!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModel.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModel.g.cs deleted file mode 100644 index f69a7f13..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModel.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ImageGenerationServerToolModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ImageGenerationServerToolModel 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.ImageGenerationServerToolModelExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ImageGenerationServerToolModel)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ImageGenerationServerToolModel); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ImageGenerationServerToolModel value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ImageGenerationServerToolModelExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModelNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModelNullable.g.cs deleted file mode 100644 index 26ba922e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolModelNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ImageGenerationServerToolModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ImageGenerationServerToolModel? 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.ImageGenerationServerToolModelExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ImageGenerationServerToolModel)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ImageGenerationServerToolModel?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ImageGenerationServerToolModel? 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.ImageGenerationServerToolModelExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSize.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSize.g.cs deleted file mode 100644 index 4a9d1899..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSize.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ImageGenerationServerToolSizeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ImageGenerationServerToolSize 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.ImageGenerationServerToolSizeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ImageGenerationServerToolSize)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ImageGenerationServerToolSize); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ImageGenerationServerToolSize value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ImageGenerationServerToolSizeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullable.g.cs deleted file mode 100644 index 791ed032..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ImageGenerationServerToolSizeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ImageGenerationServerToolSize? 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.ImageGenerationServerToolSizeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ImageGenerationServerToolSize)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ImageGenerationServerToolSize?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ImageGenerationServerToolSize? 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.ImageGenerationServerToolSizeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModality.g.cs new file mode 100644 index 00000000..817562f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageInputModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageInputModality 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.ImageInputModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageInputModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageInputModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageInputModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageInputModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModalityNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModalityNullable.g.cs new file mode 100644 index 00000000..37bc93aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageInputModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageInputModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageInputModality? 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.ImageInputModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageInputModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageInputModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageInputModality? 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.ImageInputModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs index a425dcf4..e30c1df1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs @@ -35,6 +35,8 @@ public class InputMessageItemContentItemsJsonConverter : global::System.Text.Jso } var __score0 = 0; + if (__jsonProps.Contains("prompt_cache_breakpoint")) __score0++; + if (__jsonProps.Contains("prompt_cache_breakpoint.mode")) __score0++; if (__jsonProps.Contains("text")) __score0++; var __score1 = 0; if (__jsonProps.Contains("detail")) __score1++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs index 094714c7..356df14f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs @@ -248,84 +248,108 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa if (__jsonProps.Contains("task_name")) __score32++; if (__jsonProps.Contains("type")) __score32++; var __score33 = 0; - if (__jsonProps.Contains("action")) __score33++; - if (__jsonProps.Contains("action.command")) __score33++; - if (__jsonProps.Contains("action.env")) __score33++; - if (__jsonProps.Contains("action.timeout_ms")) __score33++; - if (__jsonProps.Contains("action.type")) __score33++; - if (__jsonProps.Contains("action.user")) __score33++; - if (__jsonProps.Contains("action.working_directory")) __score33++; - if (__jsonProps.Contains("call_id")) __score33++; + if (__jsonProps.Contains("error")) __score33++; + if (__jsonProps.Contains("file_id")) __score33++; + if (__jsonProps.Contains("filename")) __score33++; if (__jsonProps.Contains("id")) __score33++; + if (__jsonProps.Contains("operation")) __score33++; + if (__jsonProps.Contains("result")) __score33++; if (__jsonProps.Contains("status")) __score33++; - if (__jsonProps.Contains("type")) __score33++; var __score34 = 0; + if (__jsonProps.Contains("action")) __score34++; + if (__jsonProps.Contains("action.command")) __score34++; + if (__jsonProps.Contains("action.env")) __score34++; + if (__jsonProps.Contains("action.timeout_ms")) __score34++; + if (__jsonProps.Contains("action.type")) __score34++; + if (__jsonProps.Contains("action.user")) __score34++; + if (__jsonProps.Contains("action.working_directory")) __score34++; + if (__jsonProps.Contains("call_id")) __score34++; if (__jsonProps.Contains("id")) __score34++; - if (__jsonProps.Contains("output")) __score34++; if (__jsonProps.Contains("status")) __score34++; if (__jsonProps.Contains("type")) __score34++; var __score35 = 0; - if (__jsonProps.Contains("action")) __score35++; - if (__jsonProps.Contains("action.commands")) __score35++; - if (__jsonProps.Contains("action.max_output_length")) __score35++; - if (__jsonProps.Contains("action.timeout_ms")) __score35++; - if (__jsonProps.Contains("call_id")) __score35++; - if (__jsonProps.Contains("environment")) __score35++; if (__jsonProps.Contains("id")) __score35++; + if (__jsonProps.Contains("output")) __score35++; if (__jsonProps.Contains("status")) __score35++; if (__jsonProps.Contains("type")) __score35++; var __score36 = 0; + if (__jsonProps.Contains("action")) __score36++; + if (__jsonProps.Contains("action.commands")) __score36++; + if (__jsonProps.Contains("action.max_output_length")) __score36++; + if (__jsonProps.Contains("action.timeout_ms")) __score36++; if (__jsonProps.Contains("call_id")) __score36++; + if (__jsonProps.Contains("environment")) __score36++; if (__jsonProps.Contains("id")) __score36++; - if (__jsonProps.Contains("max_output_length")) __score36++; - if (__jsonProps.Contains("output")) __score36++; if (__jsonProps.Contains("status")) __score36++; if (__jsonProps.Contains("type")) __score36++; var __score37 = 0; - if (__jsonProps.Contains("error")) __score37++; + if (__jsonProps.Contains("call_id")) __score37++; if (__jsonProps.Contains("id")) __score37++; - if (__jsonProps.Contains("server_label")) __score37++; - if (__jsonProps.Contains("tools")) __score37++; + if (__jsonProps.Contains("max_output_length")) __score37++; + if (__jsonProps.Contains("output")) __score37++; + if (__jsonProps.Contains("status")) __score37++; if (__jsonProps.Contains("type")) __score37++; var __score38 = 0; - if (__jsonProps.Contains("arguments")) __score38++; + if (__jsonProps.Contains("error")) __score38++; if (__jsonProps.Contains("id")) __score38++; - if (__jsonProps.Contains("name")) __score38++; if (__jsonProps.Contains("server_label")) __score38++; + if (__jsonProps.Contains("tools")) __score38++; if (__jsonProps.Contains("type")) __score38++; var __score39 = 0; - if (__jsonProps.Contains("approval_request_id")) __score39++; - if (__jsonProps.Contains("approve")) __score39++; + if (__jsonProps.Contains("arguments")) __score39++; if (__jsonProps.Contains("id")) __score39++; - if (__jsonProps.Contains("reason")) __score39++; + if (__jsonProps.Contains("name")) __score39++; + if (__jsonProps.Contains("server_label")) __score39++; if (__jsonProps.Contains("type")) __score39++; var __score40 = 0; - if (__jsonProps.Contains("arguments")) __score40++; - if (__jsonProps.Contains("error")) __score40++; + if (__jsonProps.Contains("approval_request_id")) __score40++; + if (__jsonProps.Contains("approve")) __score40++; if (__jsonProps.Contains("id")) __score40++; - if (__jsonProps.Contains("name")) __score40++; - if (__jsonProps.Contains("output")) __score40++; - if (__jsonProps.Contains("server_label")) __score40++; + if (__jsonProps.Contains("reason")) __score40++; if (__jsonProps.Contains("type")) __score40++; var __score41 = 0; - if (__jsonProps.Contains("call_id")) __score41++; + if (__jsonProps.Contains("arguments")) __score41++; + if (__jsonProps.Contains("error")) __score41++; if (__jsonProps.Contains("id")) __score41++; - if (__jsonProps.Contains("input")) __score41++; if (__jsonProps.Contains("name")) __score41++; - if (__jsonProps.Contains("namespace")) __score41++; + if (__jsonProps.Contains("output")) __score41++; + if (__jsonProps.Contains("server_label")) __score41++; if (__jsonProps.Contains("type")) __score41++; var __score42 = 0; if (__jsonProps.Contains("call_id")) __score42++; if (__jsonProps.Contains("id")) __score42++; - if (__jsonProps.Contains("output")) __score42++; + if (__jsonProps.Contains("input")) __score42++; + if (__jsonProps.Contains("name")) __score42++; + if (__jsonProps.Contains("namespace")) __score42++; if (__jsonProps.Contains("type")) __score42++; var __score43 = 0; - if (__jsonProps.Contains("encrypted_content")) __score43++; + if (__jsonProps.Contains("call_id")) __score43++; if (__jsonProps.Contains("id")) __score43++; + if (__jsonProps.Contains("output")) __score43++; if (__jsonProps.Contains("type")) __score43++; var __score44 = 0; + if (__jsonProps.Contains("encrypted_content")) __score44++; if (__jsonProps.Contains("id")) __score44++; if (__jsonProps.Contains("type")) __score44++; + var __score45 = 0; + if (__jsonProps.Contains("encrypted_content")) __score45++; + if (__jsonProps.Contains("id")) __score45++; + if (__jsonProps.Contains("type")) __score45++; + var __score46 = 0; + if (__jsonProps.Contains("id")) __score46++; + if (__jsonProps.Contains("type")) __score46++; + var __score47 = 0; + if (__jsonProps.Contains("id")) __score47++; + if (__jsonProps.Contains("role")) __score47++; + if (__jsonProps.Contains("tools")) __score47++; + if (__jsonProps.Contains("type")) __score47++; + var __score48 = 0; + if (__jsonProps.Contains("agent")) __score48++; + if (__jsonProps.Contains("author")) __score48++; + if (__jsonProps.Contains("content")) __score48++; + if (__jsonProps.Contains("id")) __score48++; + if (__jsonProps.Contains("recipient")) __score48++; + if (__jsonProps.Contains("type")) __score48++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -373,6 +397,10 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa if (__score42 > __bestScore) { __bestScore = __score42; __bestIndex = 42; } if (__score43 > __bestScore) { __bestScore = __score43; __bestIndex = 43; } if (__score44 > __bestScore) { __bestScore = __score44; __bestIndex = 44; } + if (__score45 > __bestScore) { __bestScore = __score45; __bestIndex = 45; } + if (__score46 > __bestScore) { __bestScore = __score46; __bestIndex = 46; } + if (__score47 > __bestScore) { __bestScore = __score47; __bestIndex = 47; } + if (__score48 > __bestScore) { __bestScore = __score48; __bestIndex = 48; } global::OpenRouter.ReasoningItem? reasoningItem = default; global::OpenRouter.EasyInputMessage? easyInputMessage = default; @@ -407,6 +435,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa global::OpenRouter.OutputFusionServerToolItem? outputFusionServerToolItem = default; global::OpenRouter.OutputAdvisorServerToolItem? outputAdvisorServerToolItem = default; global::OpenRouter.OutputSubagentServerToolItem? outputSubagentServerToolItem = default; + global::OpenRouter.OutputFilesServerToolItem? outputFilesServerToolItem = default; global::OpenRouter.LocalShellCallItem? localShellCallItem = default; global::OpenRouter.LocalShellCallOutputItem? localShellCallOutputItem = default; global::OpenRouter.ShellCallItem? shellCallItem = default; @@ -418,7 +447,10 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa global::OpenRouter.CustomToolCallItem? customToolCallItem = default; global::OpenRouter.CustomToolCallOutputItem? customToolCallOutputItem = default; global::OpenRouter.CompactionItem? compactionItem = default; + global::OpenRouter.ContextCompactionItem? contextCompactionItem = default; global::OpenRouter.ItemReferenceItem? itemReferenceItem = default; + global::OpenRouter.AdditionalToolsItem? additionalToolsItem = default; + global::OpenRouter.AgentMessageItem? agentMessageItem = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -917,6 +949,21 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } else if (__bestIndex == 33) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputFilesServerToolItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputFilesServerToolItem).Name}"); + outputFilesServerToolItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 34) { try { @@ -931,7 +978,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 34) + else if (__bestIndex == 35) { try { @@ -946,7 +993,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 35) + else if (__bestIndex == 36) { try { @@ -961,7 +1008,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 36) + else if (__bestIndex == 37) { try { @@ -976,7 +1023,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 37) + else if (__bestIndex == 38) { try { @@ -991,7 +1038,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 38) + else if (__bestIndex == 39) { try { @@ -1006,7 +1053,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 39) + else if (__bestIndex == 40) { try { @@ -1021,7 +1068,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 40) + else if (__bestIndex == 41) { try { @@ -1036,7 +1083,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 41) + else if (__bestIndex == 42) { try { @@ -1051,7 +1098,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 42) + else if (__bestIndex == 43) { try { @@ -1066,7 +1113,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 43) + else if (__bestIndex == 44) { try { @@ -1081,7 +1128,22 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } - else if (__bestIndex == 44) + else if (__bestIndex == 45) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ContextCompactionItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ContextCompactionItem).Name}"); + contextCompactionItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 46) { try { @@ -1096,9 +1158,39 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa { } } + else if (__bestIndex == 47) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItem).Name}"); + additionalToolsItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 48) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItem).Name}"); + agentMessageItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1115,7 +1207,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1132,7 +1224,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1149,7 +1241,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1166,7 +1258,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1183,7 +1275,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1200,7 +1292,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1217,7 +1309,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1234,7 +1326,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1251,7 +1343,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1268,7 +1360,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1285,7 +1377,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1302,7 +1394,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1319,7 +1411,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1336,7 +1428,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1353,7 +1445,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1370,7 +1462,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1387,7 +1479,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1404,7 +1496,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1421,7 +1513,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1438,7 +1530,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1455,7 +1547,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1472,7 +1564,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1489,7 +1581,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1506,7 +1598,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1523,7 +1615,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1540,7 +1632,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1557,7 +1649,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1574,7 +1666,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1591,7 +1683,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1608,7 +1700,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1625,7 +1717,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1642,7 +1734,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1659,7 +1751,24 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputFilesServerToolItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputFilesServerToolItem).Name}"); + outputFilesServerToolItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1676,7 +1785,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1693,7 +1802,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1710,7 +1819,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1727,7 +1836,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1744,7 +1853,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1761,7 +1870,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1778,7 +1887,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1795,7 +1904,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1812,7 +1921,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1829,7 +1938,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1846,7 +1955,24 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } - if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && itemReferenceItem == null) + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ContextCompactionItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ContextCompactionItem).Name}"); + contextCompactionItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) { try { @@ -1863,6 +1989,40 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa } } + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItem).Name}"); + additionalToolsItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (reasoningItem == null && easyInputMessage == null && inputMessageItem == null && functionCallItem == null && functionCallOutputItem == null && applyPatchCallItem == null && applyPatchCallOutputItem == null && inputsOneOf1Items7 == null && inputsOneOf1Items8 == null && outputFunctionCallItem == null && outputCustomToolCallItem == null && outputWebSearchCallItem == null && outputFileSearchCallItem == null && outputImageGenerationCallItem == null && outputCodeInterpreterCallItem == null && outputComputerCallItem == null && outputDatetimeItem == null && outputWebSearchServerToolItem == null && outputCodeInterpreterServerToolItem == null && outputFileSearchServerToolItem == null && outputImageGenerationServerToolItem == null && outputBrowserUseServerToolItem == null && outputBashServerToolItem == null && outputTextEditorServerToolItem == null && outputApplyPatchServerToolItem == null && outputWebFetchServerToolItem == null && outputToolSearchServerToolItem == null && outputMemoryServerToolItem == null && outputMcpServerToolItem == null && outputSearchModelsServerToolItem == null && outputFusionServerToolItem == null && outputAdvisorServerToolItem == null && outputSubagentServerToolItem == null && outputFilesServerToolItem == null && localShellCallItem == null && localShellCallOutputItem == null && shellCallItem == null && shellCallOutputItem == null && mcpListToolsItem == null && mcpApprovalRequestItem == null && mcpApprovalResponseItem == null && mcpCallItem == null && customToolCallItem == null && customToolCallOutputItem == null && compactionItem == null && contextCompactionItem == null && itemReferenceItem == null && additionalToolsItem == null && agentMessageItem == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItem).Name}"); + agentMessageItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::OpenRouter.InputsOneOf1Items( reasoningItem, @@ -1930,6 +2090,8 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa outputSubagentServerToolItem, + outputFilesServerToolItem, + localShellCallItem, localShellCallOutputItem, @@ -1952,7 +2114,13 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa compactionItem, - itemReferenceItem + contextCompactionItem, + + itemReferenceItem, + + additionalToolsItem, + + agentMessageItem ); return __value; @@ -2165,6 +2333,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputSubagentServerToolItem).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputSubagentServerToolItem!, typeInfo); } + else if (value.IsOutputFilesServerToolItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputFilesServerToolItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputFilesServerToolItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputFilesServerToolItem!, typeInfo); + } else if (value.IsLocalShellCallItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.LocalShellCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -2231,12 +2405,30 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CompactionItem).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompactionItem!, typeInfo); } + else if (value.IsContextCompactionItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ContextCompactionItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ContextCompactionItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompactionItem!, typeInfo); + } else if (value.IsItemReferenceItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ItemReferenceItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ItemReferenceItem).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReferenceItem!, typeInfo); } + else if (value.IsAdditionalToolsItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdditionalToolsItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AdditionalToolsItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalToolsItem!, typeInfo); + } + else if (value.IsAgentMessageItem) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AgentMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.AgentMessageItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageItem!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs index 95567796..c3afbbe3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7Content.g.cs @@ -49,26 +49,13 @@ public class InputsOneOf1ItemsOneOf7ContentJsonConverter : global::System.Text.J } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf7Content0 = default; string? inputsOneOf1ItemsOneOf7ContentVariant2 = default; - object? inputsOneOf1ItemsOneOf7ContentVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class InputsOneOf1ItemsOneOf7ContentJsonConverter : global::System.Text.J { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - inputsOneOf1ItemsOneOf7ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) + if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null) { try { @@ -140,7 +110,7 @@ public class InputsOneOf1ItemsOneOf7ContentJsonConverter : global::System.Text.J } } - if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) + if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null) { try { @@ -157,29 +127,10 @@ public class InputsOneOf1ItemsOneOf7ContentJsonConverter : global::System.Text.J } } - if (inputsOneOf1ItemsOneOf7Content0 == null && inputsOneOf1ItemsOneOf7ContentVariant2 == null && inputsOneOf1ItemsOneOf7ContentVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - inputsOneOf1ItemsOneOf7ContentVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.InputsOneOf1ItemsOneOf7Content( inputsOneOf1ItemsOneOf7Content0, - inputsOneOf1ItemsOneOf7ContentVariant2, - - inputsOneOf1ItemsOneOf7ContentVariant3 + inputsOneOf1ItemsOneOf7ContentVariant2 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf7ContentVariant2!, typeInfo); } - else if (value.IsInputsOneOf1ItemsOneOf7ContentVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputsOneOf1ItemsOneOf7ContentVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType.g.cs new file mode 100644 index 00000000..7a2ed2cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class InstructTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.InstructType 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.InstructTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.InstructType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.InstructType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.InstructType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.InstructTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2.g.cs deleted file mode 100644 index 33dad612..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class InstructType2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.InstructType2 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.InstructType2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.InstructType2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.InstructType2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.InstructType2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.InstructType2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2Nullable.g.cs deleted file mode 100644 index 67f42988..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructType2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class InstructType2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.InstructType2? 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.InstructType2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.InstructType2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.InstructType2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.InstructType2? 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.InstructType2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructTypeNullable.g.cs new file mode 100644 index 00000000..3bd90f3b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InstructTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class InstructTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.InstructType? 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.InstructTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.InstructType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.InstructType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.InstructType? 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.InstructTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs index 0176cff3..824cc99d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs @@ -31,16 +31,13 @@ public class McpServerToolAllowedToolsJsonConverter : global::System.Text.Json.S var __score1 = 0; if (__jsonProps.Contains("read_only")) __score1++; if (__jsonProps.Contains("tool_names")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::System.Collections.Generic.IList? mcpServerToolAllowedToolsVariant1 = default; global::OpenRouter.McpServerToolAllowedTools1? mcpServerToolAllowedTools1 = default; - object? mcpServerToolAllowedToolsVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -73,24 +70,9 @@ public class McpServerToolAllowedToolsJsonConverter : global::System.Text.Json.S { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - mcpServerToolAllowedToolsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (mcpServerToolAllowedToolsVariant1 == null && mcpServerToolAllowedTools1 == null && mcpServerToolAllowedToolsVariant3 == null) + if (mcpServerToolAllowedToolsVariant1 == null && mcpServerToolAllowedTools1 == null) { try { @@ -107,7 +89,7 @@ public class McpServerToolAllowedToolsJsonConverter : global::System.Text.Json.S } } - if (mcpServerToolAllowedToolsVariant1 == null && mcpServerToolAllowedTools1 == null && mcpServerToolAllowedToolsVariant3 == null) + if (mcpServerToolAllowedToolsVariant1 == null && mcpServerToolAllowedTools1 == null) { try { @@ -124,29 +106,10 @@ public class McpServerToolAllowedToolsJsonConverter : global::System.Text.Json.S } } - if (mcpServerToolAllowedToolsVariant1 == null && mcpServerToolAllowedTools1 == null && mcpServerToolAllowedToolsVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - mcpServerToolAllowedToolsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.McpServerToolAllowedTools( mcpServerToolAllowedToolsVariant1, - mcpServerToolAllowedTools1, - - mcpServerToolAllowedToolsVariant3 + mcpServerToolAllowedTools1 ); return __value; @@ -173,12 +136,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.McpServerToolAllowedTools1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpServerToolAllowedTools1!, typeInfo); } - else if (value.IsMcpServerToolAllowedToolsVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpServerToolAllowedToolsVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs index a35d7751..fdcc6abf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs @@ -41,18 +41,15 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso if (__jsonProps.Contains("never.tool_names")) __score0++; var __score1 = 0; var __score2 = 0; - var __score3 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } global::OpenRouter.McpServerToolRequireApproval0? mcpServerToolRequireApproval0 = default; global::OpenRouter.McpServerToolRequireApproval1? mcpServerToolRequireApproval1 = default; global::OpenRouter.McpServerToolRequireApproval2? mcpServerToolRequireApproval2 = default; - object? mcpServerToolRequireApprovalVariant4 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -100,24 +97,9 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso { } } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - mcpServerToolRequireApprovalVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null && mcpServerToolRequireApprovalVariant4 == null) + if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null) { try { @@ -134,7 +116,7 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso } } - if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null && mcpServerToolRequireApprovalVariant4 == null) + if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null) { try { @@ -151,7 +133,7 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso } } - if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null && mcpServerToolRequireApprovalVariant4 == null) + if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null) { try { @@ -168,31 +150,12 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso } } - if (mcpServerToolRequireApproval0 == null && mcpServerToolRequireApproval1 == null && mcpServerToolRequireApproval2 == null && mcpServerToolRequireApprovalVariant4 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - mcpServerToolRequireApprovalVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.McpServerToolRequireApproval( mcpServerToolRequireApproval0, mcpServerToolRequireApproval1, - mcpServerToolRequireApproval2, - - mcpServerToolRequireApprovalVariant4 + mcpServerToolRequireApproval2 ); return __value; @@ -225,12 +188,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.McpServerToolRequireApproval2).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpServerToolRequireApproval2!.Value, typeInfo); } - else if (value.IsMcpServerToolRequireApprovalVariant4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpServerToolRequireApprovalVariant4!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs index ef4c1e83..90d9db23 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs @@ -52,8 +52,6 @@ public class MessagesRequestContextManagementEditsItemsJsonConverter : global::S if (__jsonProps.Contains("instructions")) __score2++; if (__jsonProps.Contains("pause_after_compaction")) __score2++; if (__jsonProps.Contains("trigger")) __score2++; - if (__jsonProps.Contains("trigger.type")) __score2++; - if (__jsonProps.Contains("trigger.value")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs index a0ad1e5b..ab283c31 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs @@ -49,26 +49,13 @@ public class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJson } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } bool? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 = default; global::System.Collections.Generic.IList? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 = default; - object? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJson { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 == null) + if (messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 == null) { try { @@ -140,7 +110,7 @@ public class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJson } } - if (messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 == null) + if (messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 == null) { try { @@ -157,29 +127,10 @@ public class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJson } } - if (messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 == null && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs( messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1, - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2, - - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 + messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2!, typeInfo); } - else if (value.IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs deleted file mode 100644 index f984e09c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType 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.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullable.g.cs deleted file mode 100644 index b8ead93b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? 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.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? 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.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs index c6bd1199..3eb3cdcb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs @@ -21,72 +21,81 @@ public class MessagesRequestPluginsItemsJsonConverter : global::System.Text.Json throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenRouter.MessagesRequestPluginsItemsVariant1? autoRouter = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.AutoRouter) + global::OpenRouter.MessagesRequestPluginsItemsVariant1? autoBetaRouter = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.AutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant1)}"); - autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoBetaRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant2? contextCompression = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ContextCompression) + global::OpenRouter.MessagesRequestPluginsItemsVariant2? autoRouter = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.AutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant2)}"); - contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant3? fileParser = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.FileParser) + global::OpenRouter.MessagesRequestPluginsItemsVariant3? contextCompression = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant3)}"); - fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant4? fusion = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Fusion) + global::OpenRouter.MessagesRequestPluginsItemsVariant4? fileParser = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.FileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant4)}"); - fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant5? moderation = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Moderation) + global::OpenRouter.MessagesRequestPluginsItemsVariant5? fusion = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Fusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant5)}"); - moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant6? paretoRouter = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ParetoRouter) + global::OpenRouter.MessagesRequestPluginsItemsVariant6? moderation = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Moderation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant6)}"); - paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant7? responseHealing = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ResponseHealing) + global::OpenRouter.MessagesRequestPluginsItemsVariant7? paretoRouter = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant7)}"); - responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant8? web = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Web) + global::OpenRouter.MessagesRequestPluginsItemsVariant8? responseHealing = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.ResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant8)}"); - web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.MessagesRequestPluginsItemsVariant9? webFetch = default; - if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.WebFetch) + global::OpenRouter.MessagesRequestPluginsItemsVariant9? web = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.Web) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant9)}"); + web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.MessagesRequestPluginsItemsVariant10? webFetch = default; + if (discriminator?.Id == global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId.WebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.MessagesRequestPluginsItemsVariant10)}"); webFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::OpenRouter.MessagesRequestPluginsItems( discriminator?.Id, + autoBetaRouter, + autoRouter, contextCompression, @@ -118,58 +127,64 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAutoRouter) + if (value.IsAutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoBetaRouter!, typeInfo); } - else if (value.IsContextCompression) + else if (value.IsAutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); } - else if (value.IsFileParser) + else if (value.IsContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); } - else if (value.IsFusion) + else if (value.IsFileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); } - else if (value.IsModeration) + else if (value.IsFusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); } - else if (value.IsParetoRouter) + else if (value.IsModeration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); } - else if (value.IsResponseHealing) + else if (value.IsParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); } - else if (value.IsWeb) + else if (value.IsResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); } - else if (value.IsWebFetch) + else if (value.IsWeb) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + } + else if (value.IsWebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebFetch!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..2eb71218 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class MessagesRequestPluginsItemsVariant8IdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.MessagesRequestPluginsItemsVariant8Id 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.MessagesRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.MessagesRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.MessagesRequestPluginsItemsVariant8Id); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.MessagesRequestPluginsItemsVariant8Id value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.MessagesRequestPluginsItemsVariant8IdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullable.g.cs new file mode 100644 index 00000000..507b81f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class MessagesRequestPluginsItemsVariant8IdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.MessagesRequestPluginsItemsVariant8Id? 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.MessagesRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.MessagesRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.MessagesRequestPluginsItemsVariant8Id?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.MessagesRequestPluginsItemsVariant8Id? 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.MessagesRequestPluginsItemsVariant8IdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs index 6afca670..2c243999 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs @@ -94,8 +94,6 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S if (__jsonProps.Contains("cache_control.ttl")) __score5++; if (__jsonProps.Contains("cache_control.type")) __score5++; if (__jsonProps.Contains("caching")) __score5++; - if (__jsonProps.Contains("caching.ttl")) __score5++; - if (__jsonProps.Contains("caching.type")) __score5++; if (__jsonProps.Contains("defer_loading")) __score5++; if (__jsonProps.Contains("max_uses")) __score5++; if (__jsonProps.Contains("model")) __score5++; @@ -165,7 +163,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S global::OpenRouter.BashServerTool? bashServerTool = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; - global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; + global::OpenRouter.MessagesSearchModelsServerTool? messagesSearchModelsServerTool = default; global::OpenRouter.WebFetchServerTool? webFetchServerTool = default; global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool = default; global::OpenRouter.MessagesRequestToolsItems12? messagesRequestToolsItems12 = default; @@ -310,9 +308,9 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - chatSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesSearchModelsServerTool).Name}"); + messagesSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -368,7 +366,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -385,7 +383,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -402,7 +400,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -419,7 +417,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -436,7 +434,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -453,7 +451,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -470,7 +468,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -487,7 +485,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -504,7 +502,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -521,14 +519,14 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - chatSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesSearchModelsServerTool).Name}"); + messagesSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -538,7 +536,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -555,7 +553,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -572,7 +570,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && messagesRequestToolsItems5 == null && bashServerTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && messagesSearchModelsServerTool == null && webFetchServerTool == null && openRouterWebSearchServerTool == null && messagesRequestToolsItems12 == null) { try { @@ -608,7 +606,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S imageGenerationServerToolOpenRouter, - chatSearchModelsServerTool, + messagesSearchModelsServerTool, webFetchServerTool, @@ -683,11 +681,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); } - else if (value.IsChatSearchModelsServerTool) + else if (value.IsMessagesSearchModelsServerTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatSearchModelsServerTool!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.MessagesSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.MessagesSearchModelsServerTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessagesSearchModelsServerTool!, typeInfo); } else if (value.IsWebFetchServerTool) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingType.g.cs deleted file mode 100644 index d24fb6c2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType 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.MessagesRequestToolsItemsOneOf5CachingTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullable.g.cs deleted file mode 100644 index 9a4b3f21..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? 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.MessagesRequestToolsItemsOneOf5CachingTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? 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.MessagesRequestToolsItemsOneOf5CachingTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolType.g.cs new file mode 100644 index 00000000..6c5b2f1d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class MessagesSearchModelsServerToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.MessagesSearchModelsServerToolType 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.MessagesSearchModelsServerToolTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.MessagesSearchModelsServerToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.MessagesSearchModelsServerToolType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.MessagesSearchModelsServerToolType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.MessagesSearchModelsServerToolTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullable.g.cs new file mode 100644 index 00000000..b4b4c69b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class MessagesSearchModelsServerToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.MessagesSearchModelsServerToolType? 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.MessagesSearchModelsServerToolTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.MessagesSearchModelsServerToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.MessagesSearchModelsServerToolType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.MessagesSearchModelsServerToolType? 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.MessagesSearchModelsServerToolTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructType.g.cs deleted file mode 100644 index a9c47aa9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ModelArchitectureInstructTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ModelArchitectureInstructType 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.ModelArchitectureInstructTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ModelArchitectureInstructType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ModelArchitectureInstructType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ModelArchitectureInstructType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ModelArchitectureInstructTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullable.g.cs deleted file mode 100644 index 42c183fd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ModelArchitectureInstructTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ModelArchitectureInstructType? 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.ModelArchitectureInstructTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ModelArchitectureInstructType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ModelArchitectureInstructType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ModelArchitectureInstructType? 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.ModelArchitectureInstructTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItems.g.cs new file mode 100644 index 00000000..4b643465 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItems.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceFunctionToolAllowedCallersItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceFunctionToolAllowedCallersItems 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.NamespaceFunctionToolAllowedCallersItemsExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceFunctionToolAllowedCallersItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceFunctionToolAllowedCallersItems); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceFunctionToolAllowedCallersItems value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.NamespaceFunctionToolAllowedCallersItemsExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullable.g.cs new file mode 100644 index 00000000..21193aed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceFunctionToolAllowedCallersItems? 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.NamespaceFunctionToolAllowedCallersItemsExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceFunctionToolAllowedCallersItems)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceFunctionToolAllowedCallersItems?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceFunctionToolAllowedCallersItems? 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.NamespaceFunctionToolAllowedCallersItemsExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolType.g.cs new file mode 100644 index 00000000..7552b61a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceFunctionToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceFunctionToolType 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.NamespaceFunctionToolTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceFunctionToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceFunctionToolType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceFunctionToolType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.NamespaceFunctionToolTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullable.g.cs new file mode 100644 index 00000000..dfcfae62 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceFunctionToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceFunctionToolType? 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.NamespaceFunctionToolTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceFunctionToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceFunctionToolType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceFunctionToolType? 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.NamespaceFunctionToolTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolToolsItems.g.cs new file mode 100644 index 00000000..423d86e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolToolsItems.g.cs @@ -0,0 +1,151 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class NamespaceToolToolsItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceToolToolsItems 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("allowed_callers")) __score0++; + if (__jsonProps.Contains("defer_loading")) __score0++; + if (__jsonProps.Contains("description")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("output_schema")) __score0++; + if (__jsonProps.Contains("parameters")) __score0++; + if (__jsonProps.Contains("strict")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("description")) __score1++; + if (__jsonProps.Contains("format")) __score1++; + if (__jsonProps.Contains("name")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.NamespaceFunctionTool? namespaceFunctionTool = default; + global::OpenRouter.CustomTool? customTool = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceFunctionTool).Name}"); + namespaceFunctionTool = 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.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (namespaceFunctionTool == null && customTool == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceFunctionTool).Name}"); + namespaceFunctionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (namespaceFunctionTool == null && customTool == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.NamespaceToolToolsItems( + namespaceFunctionTool, + + customTool + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceToolToolsItems 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.IsNamespaceFunctionTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceFunctionTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NamespaceFunctionTool!, typeInfo); + } + else if (value.IsCustomTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CustomTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolType.g.cs new file mode 100644 index 00000000..ca009467 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceToolType 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.NamespaceToolTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceToolType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceToolType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.NamespaceToolTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolTypeNullable.g.cs new file mode 100644 index 00000000..7cba4fa5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.NamespaceToolTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class NamespaceToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.NamespaceToolType? 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.NamespaceToolTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.NamespaceToolType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.NamespaceToolType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.NamespaceToolType? 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.NamespaceToolTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller.g.cs deleted file mode 100644 index 0b7f0ab7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ORAnthropicNullableCallerJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCaller 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."); - - - var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ORAnthropicNullableCallerDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::OpenRouter.ORAnthropicNullableCallerVariant1? codeExecution20250825 = default; - if (discriminator?.Type == global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType.CodeExecution20250825) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ORAnthropicNullableCallerVariant1)}"); - codeExecution20250825 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::OpenRouter.ORAnthropicNullableCallerVariant2? codeExecution20260120 = default; - if (discriminator?.Type == global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType.CodeExecution20260120) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ORAnthropicNullableCallerVariant2)}"); - codeExecution20260120 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::OpenRouter.ORAnthropicNullableCallerVariant3? direct = default; - if (discriminator?.Type == global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType.Direct) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ORAnthropicNullableCallerVariant3)}"); - direct = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::OpenRouter.ORAnthropicNullableCaller( - discriminator?.Type, - codeExecution20250825, - - codeExecution20260120, - - direct - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCaller 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.IsCodeExecution20250825) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution20250825!, typeInfo); - } - else if (value.IsCodeExecution20260120) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution20260120!, typeInfo); - } - else if (value.IsDirect) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller2.g.cs new file mode 100644 index 00000000..9beb9c53 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCaller2.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ORAnthropicNullableCaller2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ORAnthropicNullableCaller2 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCaller), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.OrAnthropicNullableCaller? orAnthropicNullableCaller = default; + object? callerVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCaller).Name}"); + orAnthropicNullableCaller = 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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + callerVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (orAnthropicNullableCaller == null && callerVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCaller).Name}"); + orAnthropicNullableCaller = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (orAnthropicNullableCaller == null && callerVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + callerVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ORAnthropicNullableCaller2( + orAnthropicNullableCaller, + + callerVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ORAnthropicNullableCaller2 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.IsOrAnthropicNullableCaller) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCaller).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrAnthropicNullableCaller!.Value, typeInfo); + } + else if (value.IsCallerVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallerVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorType.g.cs deleted file mode 100644 index ef4e168c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType 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.ORAnthropicNullableCallerDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ORAnthropicNullableCallerDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullable.g.cs deleted file mode 100644 index c989ac6c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? 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.ORAnthropicNullableCallerDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? 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.ORAnthropicNullableCallerDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1Type.g.cs deleted file mode 100644 index 1ad0dc1b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant1Type 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.ORAnthropicNullableCallerVariant1TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant1Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant1Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ORAnthropicNullableCallerVariant1TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullable.g.cs deleted file mode 100644 index 0668fc49..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant1Type? 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.ORAnthropicNullableCallerVariant1TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant1Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant1Type? 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.ORAnthropicNullableCallerVariant1TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2Type.g.cs deleted file mode 100644 index ab8560d8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant2Type 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.ORAnthropicNullableCallerVariant2TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant2Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant2Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ORAnthropicNullableCallerVariant2TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullable.g.cs deleted file mode 100644 index 60d0998c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant2Type? 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.ORAnthropicNullableCallerVariant2TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant2Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant2Type? 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.ORAnthropicNullableCallerVariant2TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3Type.g.cs deleted file mode 100644 index f7e4cf44..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant3Type 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.ORAnthropicNullableCallerVariant3TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant3Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant3Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant3Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ORAnthropicNullableCallerVariant3TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullable.g.cs deleted file mode 100644 index 94c8cfa5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ORAnthropicNullableCallerVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ORAnthropicNullableCallerVariant3Type? 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.ORAnthropicNullableCallerVariant3TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ORAnthropicNullableCallerVariant3Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ORAnthropicNullableCallerVariant3Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ORAnthropicNullableCallerVariant3Type? 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.ORAnthropicNullableCallerVariant3TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogic.g.cs new file mode 100644 index 00000000..19481a7b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogic.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupLogic 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.ObservabilityFilterRuleGroupLogicExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupLogic); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupLogic value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRuleGroupLogicExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullable.g.cs new file mode 100644 index 00000000..281db9bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupLogic? 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.ObservabilityFilterRuleGroupLogicExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupLogic?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupLogic? 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.ObservabilityFilterRuleGroupLogicExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsField.g.cs new file mode 100644 index 00000000..a0ee11e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField 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.ObservabilityFilterRuleGroupRulesItemsFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullable.g.cs new file mode 100644 index 00000000..19a7cce2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField? 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.ObservabilityFilterRuleGroupRulesItemsFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField? 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.ObservabilityFilterRuleGroupRulesItemsFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs new file mode 100644 index 00000000..76c7c87f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator 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.ObservabilityFilterRuleGroupRulesItemsOperatorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperatorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullable.g.cs new file mode 100644 index 00000000..abcc45f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator? 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.ObservabilityFilterRuleGroupRulesItemsOperatorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator? 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.ObservabilityFilterRuleGroupRulesItemsOperatorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValue.g.cs new file mode 100644 index 00000000..c4ac4cda --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValue.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ObservabilityFilterRuleGroupRulesItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? observabilityFilterRuleGroupRulesItemsValueVariant1 = default; + double? observabilityFilterRuleGroupRulesItemsValueVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + observabilityFilterRuleGroupRulesItemsValueVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + observabilityFilterRuleGroupRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (observabilityFilterRuleGroupRulesItemsValueVariant1 == null && observabilityFilterRuleGroupRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + observabilityFilterRuleGroupRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (observabilityFilterRuleGroupRulesItemsValueVariant1 == null && observabilityFilterRuleGroupRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + observabilityFilterRuleGroupRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue( + observabilityFilterRuleGroupRulesItemsValueVariant1, + + observabilityFilterRuleGroupRulesItemsValueVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue 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.IsObservabilityFilterRuleGroupRulesItemsValueVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRuleGroupRulesItemsValueVariant1!, typeInfo); + } + else if (value.IsObservabilityFilterRuleGroupRulesItemsValueVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRuleGroupRulesItemsValueVariant2!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs deleted file mode 100644 index 136126d3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic 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.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs deleted file mode 100644 index b66a68ad..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? 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.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? 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.ObservabilityFilterRulesConfigGroupsItemsLogicExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs deleted file mode 100644 index 8e7dee13..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs deleted file mode 100644 index 2315647d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs deleted file mode 100644 index f492b4e0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs deleted file mode 100644 index d653862c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs deleted file mode 100644 index 4e84c1c2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue 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; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - string? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = default; - double? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 == null && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 == null && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue( - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, - - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue 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.IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!, typeInfo); - } - else if (value.IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultToolsItems.g.cs index c870bb53..8e26565f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultToolsItems.g.cs @@ -49,11 +49,6 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js if (__jsonProps.Contains("search_context_size")) __score1++; if (__jsonProps.Contains("type")) __score1++; if (__jsonProps.Contains("user_location")) __score1++; - if (__jsonProps.Contains("user_location.city")) __score1++; - if (__jsonProps.Contains("user_location.country")) __score1++; - if (__jsonProps.Contains("user_location.region")) __score1++; - if (__jsonProps.Contains("user_location.timezone")) __score1++; - if (__jsonProps.Contains("user_location.type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("engine")) __score2++; if (__jsonProps.Contains("filters")) __score2++; @@ -63,11 +58,6 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js if (__jsonProps.Contains("search_context_size")) __score2++; if (__jsonProps.Contains("type")) __score2++; if (__jsonProps.Contains("user_location")) __score2++; - if (__jsonProps.Contains("user_location.city")) __score2++; - if (__jsonProps.Contains("user_location.country")) __score2++; - if (__jsonProps.Contains("user_location.region")) __score2++; - if (__jsonProps.Contains("user_location.timezone")) __score2++; - if (__jsonProps.Contains("user_location.type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("engine")) __score3++; if (__jsonProps.Contains("filters")) __score3++; @@ -147,6 +137,11 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js if (__jsonProps.Contains("format")) __score13++; if (__jsonProps.Contains("name")) __score13++; if (__jsonProps.Contains("type")) __score13++; + var __score14 = 0; + if (__jsonProps.Contains("description")) __score14++; + if (__jsonProps.Contains("name")) __score14++; + if (__jsonProps.Contains("tools")) __score14++; + if (__jsonProps.Contains("type")) __score14++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -163,6 +158,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } global::OpenRouter.OpenResponsesResultToolsItems0? openResponsesResultToolsItems0 = default; global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool = default; @@ -178,6 +174,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js global::OpenRouter.ShellServerTool? shellServerTool = default; global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool = default; global::OpenRouter.CustomTool? customTool = default; + global::OpenRouter.NamespaceTool? namespaceTool = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -390,9 +387,24 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js { } } + else if (__bestIndex == 14) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -409,7 +421,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -426,7 +438,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -443,7 +455,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -460,7 +472,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -477,7 +489,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -494,7 +506,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -511,7 +523,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -528,7 +540,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -545,7 +557,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -562,7 +574,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -579,7 +591,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -596,7 +608,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -613,7 +625,7 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } - if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null) + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) { try { @@ -630,6 +642,23 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js } } + if (openResponsesResultToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::OpenRouter.OpenResponsesResultToolsItems( openResponsesResultToolsItems0, @@ -657,7 +686,9 @@ public class OpenResponsesResultToolsItemsJsonConverter : global::System.Text.Js applyPatchServerTool, - customTool + customTool, + + namespaceTool ); return __value; @@ -756,6 +787,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); } + else if (value.IsNamespaceTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NamespaceTool!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCaller.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCaller.g.cs new file mode 100644 index 00000000..e8353c45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCaller.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class OrAnthropicNullableCallerJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCaller 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."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OrAnthropicNullableCallerDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.OrAnthropicNullableCallerVariant1? codeExecution20250825 = default; + if (discriminator?.Type == global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType.CodeExecution20250825) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OrAnthropicNullableCallerVariant1)}"); + codeExecution20250825 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.OrAnthropicNullableCallerVariant2? codeExecution20260120 = default; + if (discriminator?.Type == global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType.CodeExecution20260120) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OrAnthropicNullableCallerVariant2)}"); + codeExecution20260120 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.OrAnthropicNullableCallerVariant3? direct = default; + if (discriminator?.Type == global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType.Direct) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OrAnthropicNullableCallerVariant3)}"); + direct = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.OrAnthropicNullableCaller( + discriminator?.Type, + codeExecution20250825, + + codeExecution20260120, + + direct + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCaller 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.IsCodeExecution20250825) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution20250825!, typeInfo); + } + else if (value.IsCodeExecution20260120) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution20260120!, typeInfo); + } + else if (value.IsDirect) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorType.g.cs new file mode 100644 index 00000000..e0a68bb3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType 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.OrAnthropicNullableCallerDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OrAnthropicNullableCallerDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..74f1367a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? 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.OrAnthropicNullableCallerDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? 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.OrAnthropicNullableCallerDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1Type.g.cs new file mode 100644 index 00000000..b9c7172d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant1Type 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.OrAnthropicNullableCallerVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OrAnthropicNullableCallerVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullable.g.cs new file mode 100644 index 00000000..4807cd1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant1Type? 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.OrAnthropicNullableCallerVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant1Type? 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.OrAnthropicNullableCallerVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2Type.g.cs new file mode 100644 index 00000000..426cb7a4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant2Type 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.OrAnthropicNullableCallerVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OrAnthropicNullableCallerVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullable.g.cs new file mode 100644 index 00000000..05d25d34 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant2Type? 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.OrAnthropicNullableCallerVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant2Type? 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.OrAnthropicNullableCallerVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3Type.g.cs new file mode 100644 index 00000000..9c0408df --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant3Type 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.OrAnthropicNullableCallerVariant3TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant3Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant3Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OrAnthropicNullableCallerVariant3TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullable.g.cs new file mode 100644 index 00000000..0eaf5af0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OrAnthropicNullableCallerVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OrAnthropicNullableCallerVariant3Type? 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.OrAnthropicNullableCallerVariant3TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OrAnthropicNullableCallerVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OrAnthropicNullableCallerVariant3Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OrAnthropicNullableCallerVariant3Type? 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.OrAnthropicNullableCallerVariant3TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs index 604b2795..4db0f211 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs @@ -133,95 +133,102 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant16)}"); openrouterFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant17? openrouterFusion = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fusion) + global::OpenRouter.OutputItemsVariant17? openrouterFiles = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_files) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant17)}"); - openrouterFusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterFiles = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant18? openrouterImageGeneration = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_imageGeneration) + global::OpenRouter.OutputItemsVariant18? openrouterFusion = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_fusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant18)}"); - openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterFusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant19? openrouterMcp = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_mcp) + global::OpenRouter.OutputItemsVariant19? openrouterImageGeneration = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_imageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant19)}"); - openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterImageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant20? openrouterMemory = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_memory) + global::OpenRouter.OutputItemsVariant20? openrouterMcp = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_mcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant20)}"); - openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterMcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant21? openrouterSubagent = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_subagent) + global::OpenRouter.OutputItemsVariant21? openrouterMemory = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_memory) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant21)}"); - openrouterSubagent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterMemory = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant22? openrouterTextEditor = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_textEditor) + global::OpenRouter.OutputItemsVariant22? openrouterSubagent = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_subagent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant22)}"); - openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterSubagent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant23? openrouterToolSearch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_toolSearch) + global::OpenRouter.OutputItemsVariant23? openrouterTextEditor = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_textEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant23)}"); - openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterTextEditor = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant24? openrouterWebFetch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webFetch) + global::OpenRouter.OutputItemsVariant24? openrouterToolSearch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_toolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant24)}"); - openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterToolSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant25? openrouterWebSearch = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webSearch) + global::OpenRouter.OutputItemsVariant25? openrouterWebFetch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webFetch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant25)}"); - openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterWebFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant26? reasoning = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Reasoning) + global::OpenRouter.OutputItemsVariant26? openrouterWebSearch = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Openrouter_webSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant26), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant26)}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + openrouterWebSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant27? shellCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ShellCall) + global::OpenRouter.OutputItemsVariant27? reasoning = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.Reasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant27)}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant28? shellCallOutput = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ShellCallOutput) + global::OpenRouter.OutputItemsVariant28? shellCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant28), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant28)}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.OutputItemsVariant29? webSearchCall = default; - if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.WebSearchCall) + global::OpenRouter.OutputItemsVariant29? shellCallOutput = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.ShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant29), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant29)}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.OutputItemsVariant30? webSearchCall = default; + if (discriminator?.Type == global::OpenRouter.OutputItemsDiscriminatorType.WebSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant30), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.OutputItemsVariant30)}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -259,6 +266,8 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J openrouterFileSearch, + openrouterFiles, + openrouterFusion, openrouterImageGeneration, @@ -394,82 +403,88 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant16).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFileSearch!, typeInfo); } - else if (value.IsOpenrouterFusion) + else if (value.IsOpenrouterFiles) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFusion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFiles!, typeInfo); } - else if (value.IsOpenrouterImageGeneration) + else if (value.IsOpenrouterFusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterImageGeneration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterFusion!, typeInfo); } - else if (value.IsOpenrouterMcp) + else if (value.IsOpenrouterImageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterImageGeneration!, typeInfo); } - else if (value.IsOpenrouterMemory) + else if (value.IsOpenrouterMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMemory!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMcp!, typeInfo); } - else if (value.IsOpenrouterSubagent) + else if (value.IsOpenrouterMemory) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterSubagent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterMemory!, typeInfo); } - else if (value.IsOpenrouterTextEditor) + else if (value.IsOpenrouterSubagent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterTextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterSubagent!, typeInfo); } - else if (value.IsOpenrouterToolSearch) + else if (value.IsOpenrouterTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterTextEditor!, typeInfo); } - else if (value.IsOpenrouterWebFetch) + else if (value.IsOpenrouterToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant24).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebFetch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterToolSearch!, typeInfo); } - else if (value.IsOpenrouterWebSearch) + else if (value.IsOpenrouterWebFetch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant25).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebFetch!, typeInfo); } - else if (value.IsReasoning) + else if (value.IsOpenrouterWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant26), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant26).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenrouterWebSearch!, typeInfo); } - else if (value.IsShellCall) + else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant27).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); } - else if (value.IsShellCallOutput) + else if (value.IsShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant28), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant28).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); } - else if (value.IsWebSearchCall) + else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant29), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant29).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + } + else if (value.IsWebSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.OutputItemsVariant30), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputItemsVariant30).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19Type.g.cs new file mode 100644 index 00000000..8e033ed3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputItemsVariant19TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputItemsVariant19Type 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.OutputItemsVariant19TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputItemsVariant19Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputItemsVariant19Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputItemsVariant19Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OutputItemsVariant19TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19TypeNullable.g.cs new file mode 100644 index 00000000..1217e853 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemsVariant19TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OutputItemsVariant19TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OutputItemsVariant19Type? 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.OutputItemsVariant19TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.OutputItemsVariant19Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OutputItemsVariant19Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OutputItemsVariant19Type? 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.OutputItemsVariant19TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageItemPhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageItemPhase.g.cs index 12c0296d..98601d37 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageItemPhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageItemPhase.g.cs @@ -49,26 +49,13 @@ public class OutputMessageItemPhaseJsonConverter : global::System.Text.Json.Seri } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.OutputMessageItemPhase0? outputMessageItemPhase0 = default; global::OpenRouter.OutputMessageItemPhase1? outputMessageItemPhase1 = default; - object? outputMessageItemPhaseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class OutputMessageItemPhaseJsonConverter : global::System.Text.Json.Seri { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - outputMessageItemPhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (outputMessageItemPhase0 == null && outputMessageItemPhase1 == null && outputMessageItemPhaseVariant3 == null) + if (outputMessageItemPhase0 == null && outputMessageItemPhase1 == null) { try { @@ -140,7 +110,7 @@ public class OutputMessageItemPhaseJsonConverter : global::System.Text.Json.Seri } } - if (outputMessageItemPhase0 == null && outputMessageItemPhase1 == null && outputMessageItemPhaseVariant3 == null) + if (outputMessageItemPhase0 == null && outputMessageItemPhase1 == null) { try { @@ -157,29 +127,10 @@ public class OutputMessageItemPhaseJsonConverter : global::System.Text.Json.Seri } } - if (outputMessageItemPhase0 == null && outputMessageItemPhase1 == null && outputMessageItemPhaseVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - outputMessageItemPhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.OutputMessageItemPhase( outputMessageItemPhase0, - outputMessageItemPhase1, - - outputMessageItemPhaseVariant3 + outputMessageItemPhase1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputMessageItemPhase1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputMessageItemPhase1!.Value, typeInfo); } - else if (value.IsOutputMessageItemPhaseVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputMessageItemPhaseVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessagePhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessagePhase.g.cs index 7749000e..f46644bb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessagePhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessagePhase.g.cs @@ -49,26 +49,13 @@ public class OutputMessagePhaseJsonConverter : global::System.Text.Json.Serializ } } } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.OutputMessagePhase0? outputMessagePhase0 = default; global::OpenRouter.OutputMessagePhase1? outputMessagePhase1 = default; - object? outputMessagePhaseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -104,26 +91,9 @@ public class OutputMessagePhaseJsonConverter : global::System.Text.Json.Serializ { } } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - outputMessagePhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (outputMessagePhase0 == null && outputMessagePhase1 == null && outputMessagePhaseVariant3 == null) + if (outputMessagePhase0 == null && outputMessagePhase1 == null) { try { @@ -140,7 +110,7 @@ public class OutputMessagePhaseJsonConverter : global::System.Text.Json.Serializ } } - if (outputMessagePhase0 == null && outputMessagePhase1 == null && outputMessagePhaseVariant3 == null) + if (outputMessagePhase0 == null && outputMessagePhase1 == null) { try { @@ -157,29 +127,10 @@ public class OutputMessagePhaseJsonConverter : global::System.Text.Json.Serializ } } - if (outputMessagePhase0 == null && outputMessagePhase1 == null && outputMessagePhaseVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - outputMessagePhaseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.OutputMessagePhase( outputMessagePhase0, - outputMessagePhase1, - - outputMessagePhaseVariant3 + outputMessagePhase1 ); return __value; @@ -206,12 +157,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.OutputMessagePhase1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputMessagePhase1!.Value, typeInfo); } - else if (value.IsOutputMessagePhaseVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputMessagePhaseVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContent.g.cs new file mode 100644 index 00000000..ca928f97 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContent.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class PredictionContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PredictionContent 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? predictionContentVariant1 = default; + global::System.Collections.Generic.IList? predictionContent1 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + predictionContentVariant1 = 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::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + predictionContent1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (predictionContentVariant1 == null && predictionContent1 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + predictionContentVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (predictionContentVariant1 == null && predictionContent1 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + predictionContent1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.PredictionContent( + predictionContentVariant1, + + predictionContent1 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PredictionContent 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.IsPredictionContentVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PredictionContentVariant1!, typeInfo); + } + else if (value.IsPredictionContent1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PredictionContent1!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextType.g.cs new file mode 100644 index 00000000..6becaf6f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PredictionContentTextTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PredictionContentTextType 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.PredictionContentTextTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PredictionContentTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PredictionContentTextType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PredictionContentTextType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.PredictionContentTextTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextTypeNullable.g.cs new file mode 100644 index 00000000..01d4a5f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionContentTextTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PredictionContentTextTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PredictionContentTextType? 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.PredictionContentTextTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PredictionContentTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PredictionContentTextType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PredictionContentTextType? 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.PredictionContentTextTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionType.g.cs new file mode 100644 index 00000000..51cd5bee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PredictionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PredictionType 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.PredictionTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PredictionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PredictionType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PredictionType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.PredictionTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionTypeNullable.g.cs new file mode 100644 index 00000000..891793cd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PredictionTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PredictionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PredictionType? 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.PredictionTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PredictionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PredictionType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PredictionType? 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.PredictionTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs index 197fd394..38511c08 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs @@ -33,16 +33,13 @@ public class PreferredMaxLatencyJsonConverter : global::System.Text.Json.Seriali if (__jsonProps.Contains("p75")) __score1++; if (__jsonProps.Contains("p90")) __score1++; if (__jsonProps.Contains("p99")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } double? preferredMaxLatencyVariant1 = default; global::OpenRouter.PercentileLatencyCutoffs? percentileLatencyCutoffs = default; - object? preferredMaxLatencyVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -75,24 +72,9 @@ public class PreferredMaxLatencyJsonConverter : global::System.Text.Json.Seriali { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - preferredMaxLatencyVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (preferredMaxLatencyVariant1 == null && percentileLatencyCutoffs == null && preferredMaxLatencyVariant3 == null) + if (preferredMaxLatencyVariant1 == null && percentileLatencyCutoffs == null) { try { @@ -109,7 +91,7 @@ public class PreferredMaxLatencyJsonConverter : global::System.Text.Json.Seriali } } - if (preferredMaxLatencyVariant1 == null && percentileLatencyCutoffs == null && preferredMaxLatencyVariant3 == null) + if (preferredMaxLatencyVariant1 == null && percentileLatencyCutoffs == null) { try { @@ -126,29 +108,10 @@ public class PreferredMaxLatencyJsonConverter : global::System.Text.Json.Seriali } } - if (preferredMaxLatencyVariant1 == null && percentileLatencyCutoffs == null && preferredMaxLatencyVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - preferredMaxLatencyVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.PreferredMaxLatency( preferredMaxLatencyVariant1, - percentileLatencyCutoffs, - - preferredMaxLatencyVariant3 + percentileLatencyCutoffs ); return __value; @@ -175,12 +138,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PercentileLatencyCutoffs).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PercentileLatencyCutoffs!, typeInfo); } - else if (value.IsPreferredMaxLatencyVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PreferredMaxLatencyVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs index c4a9307d..073eaef8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs @@ -33,16 +33,13 @@ public class PreferredMinThroughputJsonConverter : global::System.Text.Json.Seri if (__jsonProps.Contains("p75")) __score1++; if (__jsonProps.Contains("p90")) __score1++; if (__jsonProps.Contains("p99")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } double? preferredMinThroughputVariant1 = default; global::OpenRouter.PercentileThroughputCutoffs? percentileThroughputCutoffs = default; - object? preferredMinThroughputVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -75,24 +72,9 @@ public class PreferredMinThroughputJsonConverter : global::System.Text.Json.Seri { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - preferredMinThroughputVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (preferredMinThroughputVariant1 == null && percentileThroughputCutoffs == null && preferredMinThroughputVariant3 == null) + if (preferredMinThroughputVariant1 == null && percentileThroughputCutoffs == null) { try { @@ -109,7 +91,7 @@ public class PreferredMinThroughputJsonConverter : global::System.Text.Json.Seri } } - if (preferredMinThroughputVariant1 == null && percentileThroughputCutoffs == null && preferredMinThroughputVariant3 == null) + if (preferredMinThroughputVariant1 == null && percentileThroughputCutoffs == null) { try { @@ -126,29 +108,10 @@ public class PreferredMinThroughputJsonConverter : global::System.Text.Json.Seri } } - if (preferredMinThroughputVariant1 == null && percentileThroughputCutoffs == null && preferredMinThroughputVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - preferredMinThroughputVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.PreferredMinThroughput( preferredMinThroughputVariant1, - percentileThroughputCutoffs, - - preferredMinThroughputVariant3 + percentileThroughputCutoffs ); return __value; @@ -175,12 +138,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PercentileThroughputCutoffs).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PercentileThroughputCutoffs!, typeInfo); } - else if (value.IsPreferredMinThroughputVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PreferredMinThroughputVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreviewWebSearchUserLocation2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreviewWebSearchUserLocation2.g.cs new file mode 100644 index 00000000..77b7ab38 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreviewWebSearchUserLocation2.g.cs @@ -0,0 +1,144 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class PreviewWebSearchUserLocation2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PreviewWebSearchUserLocation2 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("city")) __score0++; + if (__jsonProps.Contains("country")) __score0++; + if (__jsonProps.Contains("region")) __score0++; + if (__jsonProps.Contains("timezone")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::OpenRouter.PreviewWebSearchUserLocation? previewWebSearchUserLocation = default; + object? locationVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PreviewWebSearchUserLocation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchUserLocation).Name}"); + previewWebSearchUserLocation = 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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + locationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (previewWebSearchUserLocation == null && locationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PreviewWebSearchUserLocation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchUserLocation).Name}"); + previewWebSearchUserLocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (previewWebSearchUserLocation == null && locationVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + locationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.PreviewWebSearchUserLocation2( + previewWebSearchUserLocation, + + locationVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PreviewWebSearchUserLocation2 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.IsPreviewWebSearchUserLocation) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PreviewWebSearchUserLocation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PreviewWebSearchUserLocation).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PreviewWebSearchUserLocation!, typeInfo); + } + else if (value.IsLocationVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocationVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointMode.g.cs new file mode 100644 index 00000000..059c5e48 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PromptCacheBreakpointModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PromptCacheBreakpointMode 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.PromptCacheBreakpointModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PromptCacheBreakpointMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PromptCacheBreakpointMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PromptCacheBreakpointMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.PromptCacheBreakpointModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointModeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointModeNullable.g.cs new file mode 100644 index 00000000..31d13246 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheBreakpointModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PromptCacheBreakpointModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PromptCacheBreakpointMode? 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.PromptCacheBreakpointModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PromptCacheBreakpointMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PromptCacheBreakpointMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PromptCacheBreakpointMode? 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.PromptCacheBreakpointModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsMode.g.cs new file mode 100644 index 00000000..2a66e7a6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PromptCacheOptionsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PromptCacheOptionsMode 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.PromptCacheOptionsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PromptCacheOptionsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PromptCacheOptionsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PromptCacheOptionsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.PromptCacheOptionsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsModeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsModeNullable.g.cs new file mode 100644 index 00000000..3db8de63 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PromptCacheOptionsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PromptCacheOptionsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PromptCacheOptionsMode? 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.PromptCacheOptionsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PromptCacheOptionsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PromptCacheOptionsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PromptCacheOptionsMode? 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.PromptCacheOptionsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs index e763771a..b626411e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs @@ -31,16 +31,13 @@ public class ProviderPreferencesSortJsonConverter : global::System.Text.Json.Ser var __score1 = 0; if (__jsonProps.Contains("by")) __score1++; if (__jsonProps.Contains("partition")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.ProviderSort? providerSort = default; global::OpenRouter.ProviderSortConfig? providerSortConfig = default; - object? providerPreferencesSortVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -73,24 +70,9 @@ public class ProviderPreferencesSortJsonConverter : global::System.Text.Json.Ser { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - providerPreferencesSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (providerSort == null && providerSortConfig == null && providerPreferencesSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -107,7 +89,7 @@ public class ProviderPreferencesSortJsonConverter : global::System.Text.Json.Ser } } - if (providerSort == null && providerSortConfig == null && providerPreferencesSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -124,29 +106,10 @@ public class ProviderPreferencesSortJsonConverter : global::System.Text.Json.Ser } } - if (providerSort == null && providerSortConfig == null && providerPreferencesSortVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - providerPreferencesSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.ProviderPreferencesSort( providerSort, - providerSortConfig, - - providerPreferencesSortVariant3 + providerSortConfig ); return __value; @@ -173,12 +136,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderSortConfig!, typeInfo); } - else if (value.IsProviderPreferencesSortVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderPreferencesSortVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTier.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTier.g.cs new file mode 100644 index 00000000..fa3bd53a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTier.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ProviderResponseRoutedServiceTierJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ProviderResponseRoutedServiceTier 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.ProviderResponseRoutedServiceTierExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ProviderResponseRoutedServiceTier)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ProviderResponseRoutedServiceTier); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ProviderResponseRoutedServiceTier value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ProviderResponseRoutedServiceTierExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullable.g.cs new file mode 100644 index 00000000..6aa72784 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ProviderResponseRoutedServiceTierNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ProviderResponseRoutedServiceTier? 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.ProviderResponseRoutedServiceTierExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ProviderResponseRoutedServiceTier)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ProviderResponseRoutedServiceTier?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ProviderResponseRoutedServiceTier? 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.ProviderResponseRoutedServiceTierExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContext.g.cs new file mode 100644 index 00000000..ca72fdd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContext.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningContextJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningContext 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.ReasoningContextExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningContext)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningContext); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningContext value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ReasoningContextExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContextNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContextNullable.g.cs new file mode 100644 index 00000000..f7865195 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningContextNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningContextNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningContext? 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.ReasoningContextExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningContext)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningContext?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningContext? 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.ReasoningContextExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs index d179a54c..15e4d2d4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs @@ -28,18 +28,25 @@ public class ReasoningDetailUnionJsonConverter : global::System.Text.Json.Serial throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ReasoningDetailUnionVariant1)}"); reasoningEncrypted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ReasoningDetailUnionVariant2? reasoningSummary = default; - if (discriminator?.Type == global::OpenRouter.ReasoningDetailUnionDiscriminatorType.ReasoningSummary) + global::OpenRouter.ReasoningDetailUnionVariant2? reasoningServerToolCall = default; + if (discriminator?.Type == global::OpenRouter.ReasoningDetailUnionDiscriminatorType.ReasoningServerToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ReasoningDetailUnionVariant2)}"); - reasoningSummary = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + reasoningServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ReasoningDetailUnionVariant3? reasoningText = default; - if (discriminator?.Type == global::OpenRouter.ReasoningDetailUnionDiscriminatorType.ReasoningText) + global::OpenRouter.ReasoningDetailUnionVariant3? reasoningSummary = default; + if (discriminator?.Type == global::OpenRouter.ReasoningDetailUnionDiscriminatorType.ReasoningSummary) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ReasoningDetailUnionVariant3)}"); + reasoningSummary = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ReasoningDetailUnionVariant4? reasoningText = default; + if (discriminator?.Type == global::OpenRouter.ReasoningDetailUnionDiscriminatorType.ReasoningText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ReasoningDetailUnionVariant4)}"); reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -47,6 +54,8 @@ public class ReasoningDetailUnionJsonConverter : global::System.Text.Json.Serial discriminator?.Type, reasoningEncrypted, + reasoningServerToolCall, + reasoningSummary, reasoningText @@ -70,16 +79,22 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ReasoningDetailUnionVariant1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningEncrypted!, typeInfo); } - else if (value.IsReasoningSummary) + else if (value.IsReasoningServerToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ReasoningDetailUnionVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningSummary!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningServerToolCall!, typeInfo); } - else if (value.IsReasoningText) + else if (value.IsReasoningSummary) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ReasoningDetailUnionVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningSummary!, typeInfo); + } + else if (value.IsReasoningText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ReasoningDetailUnionVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ReasoningDetailUnionVariant4).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4Type.g.cs new file mode 100644 index 00000000..a24141c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningDetailUnionVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningDetailUnionVariant4Type 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.ReasoningDetailUnionVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningDetailUnionVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningDetailUnionVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningDetailUnionVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ReasoningDetailUnionVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullable.g.cs new file mode 100644 index 00000000..d10cb54c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningDetailUnionVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningDetailUnionVariant4Type? 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.ReasoningDetailUnionVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningDetailUnionVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningDetailUnionVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningDetailUnionVariant4Type? 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.ReasoningDetailUnionVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningMode.g.cs new file mode 100644 index 00000000..c03debb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningMode 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.ReasoningModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ReasoningModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningModeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningModeNullable.g.cs new file mode 100644 index 00000000..edf33c55 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ReasoningModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ReasoningMode? 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.ReasoningModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ReasoningMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ReasoningMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ReasoningMode? 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.ReasoningModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs index 9776289b..5f0528e9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs @@ -31,16 +31,13 @@ public class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonCo var __score1 = 0; if (__jsonProps.Contains("by")) __score1++; if (__jsonProps.Contains("partition")) __score1++; - var __score2 = 0; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } global::OpenRouter.ProviderSort? providerSort = default; global::OpenRouter.ProviderSortConfig? providerSortConfig = default; - object? rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -73,24 +70,9 @@ public class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonCo { } } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (providerSort == null && providerSortConfig == null && rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -107,7 +89,7 @@ public class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonCo } } - if (providerSort == null && providerSortConfig == null && rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) + if (providerSort == null && providerSortConfig == null) { try { @@ -124,29 +106,10 @@ public class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonCo } } - if (providerSort == null && providerSortConfig == null && rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort( providerSort, - providerSortConfig, - - rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 + providerSortConfig ); return __value; @@ -173,12 +136,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ProviderSortConfig).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProviderSortConfig!, typeInfo); } - else if (value.IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs index 4d308956..ee816cc7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs @@ -21,72 +21,81 @@ public class ResponsesRequestPluginsItemsJsonConverter : global::System.Text.Jso throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenRouter.ResponsesRequestPluginsItemsVariant1? autoRouter = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.AutoRouter) + global::OpenRouter.ResponsesRequestPluginsItemsVariant1? autoBetaRouter = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.AutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1)}"); - autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoBetaRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant2? contextCompression = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ContextCompression) + global::OpenRouter.ResponsesRequestPluginsItemsVariant2? autoRouter = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.AutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2)}"); - contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + autoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant3? fileParser = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.FileParser) + global::OpenRouter.ResponsesRequestPluginsItemsVariant3? contextCompression = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3)}"); - fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + contextCompression = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant4? fusion = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Fusion) + global::OpenRouter.ResponsesRequestPluginsItemsVariant4? fileParser = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.FileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4)}"); - fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileParser = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant5? moderation = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Moderation) + global::OpenRouter.ResponsesRequestPluginsItemsVariant5? fusion = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Fusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5)}"); - moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fusion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant6? paretoRouter = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ParetoRouter) + global::OpenRouter.ResponsesRequestPluginsItemsVariant6? moderation = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Moderation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6)}"); - paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + moderation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant7? responseHealing = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ResponseHealing) + global::OpenRouter.ResponsesRequestPluginsItemsVariant7? paretoRouter = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7)}"); - responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + paretoRouter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant8? web = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Web) + global::OpenRouter.ResponsesRequestPluginsItemsVariant8? responseHealing = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.ResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8)}"); - web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + responseHealing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenRouter.ResponsesRequestPluginsItemsVariant9? webFetch = default; - if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.WebFetch) + global::OpenRouter.ResponsesRequestPluginsItemsVariant9? web = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.Web) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9)}"); + web = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ResponsesRequestPluginsItemsVariant10? webFetch = default; + if (discriminator?.Id == global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId.WebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10)}"); webFetch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::OpenRouter.ResponsesRequestPluginsItems( discriminator?.Id, + autoBetaRouter, + autoRouter, contextCompression, @@ -118,58 +127,64 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAutoRouter) + if (value.IsAutoBetaRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoBetaRouter!, typeInfo); } - else if (value.IsContextCompression) + else if (value.IsAutoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoRouter!, typeInfo); } - else if (value.IsFileParser) + else if (value.IsContextCompression) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContextCompression!, typeInfo); } - else if (value.IsFusion) + else if (value.IsFileParser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileParser!, typeInfo); } - else if (value.IsModeration) + else if (value.IsFusion) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Fusion!, typeInfo); } - else if (value.IsParetoRouter) + else if (value.IsModeration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Moderation!, typeInfo); } - else if (value.IsResponseHealing) + else if (value.IsParetoRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ParetoRouter!, typeInfo); } - else if (value.IsWeb) + else if (value.IsResponseHealing) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseHealing!, typeInfo); } - else if (value.IsWebFetch) + else if (value.IsWeb) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Web!, typeInfo); + } + else if (value.IsWebFetch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebFetch!, typeInfo); } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs index 7f877145..20e51649 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs @@ -62,7 +62,7 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } var __score3 = 0; { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options); if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) { foreach (var __prop in __ti.Properties) @@ -73,7 +73,7 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } var __score4 = 0; { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options); + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), options); if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) { foreach (var __prop in __ti.Properties) @@ -82,28 +82,6 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } } - var __score5 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score5++; - } - } - } - var __score6 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score6++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -111,16 +89,12 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 = default; double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 = default; bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = default; - global::System.Collections.Generic.IList? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = default; - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = default; + global::System.Collections.Generic.IList>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = default; + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -179,9 +153,9 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -196,8 +170,8 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4).Name}"); responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) @@ -207,43 +181,9 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar { } } - - else if (__bestIndex == 5) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 6) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null) { try { @@ -260,7 +200,7 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null) { try { @@ -277,7 +217,7 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null) { try { @@ -294,14 +234,14 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -311,13 +251,13 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4).Name}"); responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) @@ -328,40 +268,6 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar } } - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - var __value = new global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters( responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1, @@ -369,13 +275,9 @@ public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsPar responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3, - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5, + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3, - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 ); return __value; @@ -408,30 +310,18 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3!.Value, typeInfo); } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4) + else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>?> ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3!, typeInfo); } else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4!, typeInfo); } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5!, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7!, typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs new file mode 100644 index 00000000..1d665b1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs @@ -0,0 +1,217 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = default; + double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = default; + bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items( + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1, + + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2, + + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items 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.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1!, typeInfo); + } + else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2!.Value, typeInfo); + } + else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs new file mode 100644 index 00000000..d48ee798 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs @@ -0,0 +1,217 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = default; + double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = default; + bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4( + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1, + + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2, + + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 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.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1!, typeInfo); + } + else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2!.Value, typeInfo); + } + else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs deleted file mode 100644 index a415af39..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs +++ /dev/null @@ -1,327 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items 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; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } - var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - - string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = default; - double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = default; - bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 3) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 4) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items( - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items 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.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1!, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2!.Value, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3!.Value, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4!, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs deleted file mode 100644 index f5d7e889..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs +++ /dev/null @@ -1,327 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 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; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } - var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - - string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = default; - double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = default; - bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = default; - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 3) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 4) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 == null && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5( - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4, - - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 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.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1!, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2!.Value, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3!.Value, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4!, typeInfo); - } - else if (value.IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs new file mode 100644 index 00000000..1d7cac04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource 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.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullable.g.cs new file mode 100644 index 00000000..33006b4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? 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.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? 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.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..5964e6ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestPluginsItemsVariant8IdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id 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.ResponsesRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ResponsesRequestPluginsItemsVariant8IdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullable.g.cs new file mode 100644 index 00000000..89d7f0fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id? 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.ResponsesRequestPluginsItemsVariant8IdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id? 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.ResponsesRequestPluginsItemsVariant8IdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs index c84a6bab..4e343eaf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs @@ -49,11 +49,6 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("search_context_size")) __score1++; if (__jsonProps.Contains("type")) __score1++; if (__jsonProps.Contains("user_location")) __score1++; - if (__jsonProps.Contains("user_location.city")) __score1++; - if (__jsonProps.Contains("user_location.country")) __score1++; - if (__jsonProps.Contains("user_location.region")) __score1++; - if (__jsonProps.Contains("user_location.timezone")) __score1++; - if (__jsonProps.Contains("user_location.type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("engine")) __score2++; if (__jsonProps.Contains("filters")) __score2++; @@ -63,11 +58,6 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("search_context_size")) __score2++; if (__jsonProps.Contains("type")) __score2++; if (__jsonProps.Contains("user_location")) __score2++; - if (__jsonProps.Contains("user_location.city")) __score2++; - if (__jsonProps.Contains("user_location.country")) __score2++; - if (__jsonProps.Contains("user_location.region")) __score2++; - if (__jsonProps.Contains("user_location.timezone")) __score2++; - if (__jsonProps.Contains("user_location.type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("engine")) __score3++; if (__jsonProps.Contains("filters")) __score3++; @@ -148,82 +138,81 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("name")) __score13++; if (__jsonProps.Contains("type")) __score13++; var __score14 = 0; - if (__jsonProps.Contains("parameters")) __score14++; - if (__jsonProps.Contains("parameters.forward_transcript")) __score14++; - if (__jsonProps.Contains("parameters.instructions")) __score14++; - if (__jsonProps.Contains("parameters.max_completion_tokens")) __score14++; - if (__jsonProps.Contains("parameters.max_tool_calls")) __score14++; - if (__jsonProps.Contains("parameters.model")) __score14++; - if (__jsonProps.Contains("parameters.name")) __score14++; - if (__jsonProps.Contains("parameters.reasoning")) __score14++; - if (__jsonProps.Contains("parameters.stream")) __score14++; - if (__jsonProps.Contains("parameters.temperature")) __score14++; - if (__jsonProps.Contains("parameters.tools")) __score14++; + if (__jsonProps.Contains("description")) __score14++; + if (__jsonProps.Contains("name")) __score14++; + if (__jsonProps.Contains("tools")) __score14++; if (__jsonProps.Contains("type")) __score14++; var __score15 = 0; if (__jsonProps.Contains("parameters")) __score15++; + if (__jsonProps.Contains("parameters.forward_transcript")) __score15++; if (__jsonProps.Contains("parameters.instructions")) __score15++; if (__jsonProps.Contains("parameters.max_completion_tokens")) __score15++; if (__jsonProps.Contains("parameters.max_tool_calls")) __score15++; if (__jsonProps.Contains("parameters.model")) __score15++; + if (__jsonProps.Contains("parameters.name")) __score15++; if (__jsonProps.Contains("parameters.reasoning")) __score15++; + if (__jsonProps.Contains("parameters.stream")) __score15++; if (__jsonProps.Contains("parameters.temperature")) __score15++; if (__jsonProps.Contains("parameters.tools")) __score15++; if (__jsonProps.Contains("type")) __score15++; var __score16 = 0; if (__jsonProps.Contains("parameters")) __score16++; - if (__jsonProps.Contains("parameters.timezone")) __score16++; + if (__jsonProps.Contains("parameters.instructions")) __score16++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score16++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score16++; + if (__jsonProps.Contains("parameters.model")) __score16++; + if (__jsonProps.Contains("parameters.reasoning")) __score16++; + if (__jsonProps.Contains("parameters.temperature")) __score16++; + if (__jsonProps.Contains("parameters.tools")) __score16++; if (__jsonProps.Contains("type")) __score16++; var __score17 = 0; if (__jsonProps.Contains("parameters")) __score17++; + if (__jsonProps.Contains("parameters.timezone")) __score17++; if (__jsonProps.Contains("type")) __score17++; var __score18 = 0; if (__jsonProps.Contains("parameters")) __score18++; - if (__jsonProps.Contains("parameters.analysis_models")) __score18++; - if (__jsonProps.Contains("parameters.cache_control")) __score18++; - if (__jsonProps.Contains("parameters.max_completion_tokens")) __score18++; - if (__jsonProps.Contains("parameters.max_tool_calls")) __score18++; - if (__jsonProps.Contains("parameters.model")) __score18++; - if (__jsonProps.Contains("parameters.reasoning")) __score18++; - if (__jsonProps.Contains("parameters.temperature")) __score18++; - if (__jsonProps.Contains("parameters.tools")) __score18++; if (__jsonProps.Contains("type")) __score18++; var __score19 = 0; if (__jsonProps.Contains("parameters")) __score19++; + if (__jsonProps.Contains("parameters.analysis_models")) __score19++; + if (__jsonProps.Contains("parameters.cache_control")) __score19++; + if (__jsonProps.Contains("parameters.max_completion_tokens")) __score19++; + if (__jsonProps.Contains("parameters.max_tool_calls")) __score19++; if (__jsonProps.Contains("parameters.model")) __score19++; + if (__jsonProps.Contains("parameters.reasoning")) __score19++; + if (__jsonProps.Contains("parameters.temperature")) __score19++; + if (__jsonProps.Contains("parameters.tools")) __score19++; if (__jsonProps.Contains("type")) __score19++; var __score20 = 0; if (__jsonProps.Contains("parameters")) __score20++; - if (__jsonProps.Contains("parameters.max_results")) __score20++; + if (__jsonProps.Contains("parameters.model")) __score20++; if (__jsonProps.Contains("type")) __score20++; var __score21 = 0; if (__jsonProps.Contains("parameters")) __score21++; - if (__jsonProps.Contains("parameters.allowed_domains")) __score21++; - if (__jsonProps.Contains("parameters.blocked_domains")) __score21++; - if (__jsonProps.Contains("parameters.engine")) __score21++; - if (__jsonProps.Contains("parameters.max_content_tokens")) __score21++; - if (__jsonProps.Contains("parameters.max_uses")) __score21++; + if (__jsonProps.Contains("parameters.max_results")) __score21++; if (__jsonProps.Contains("type")) __score21++; var __score22 = 0; if (__jsonProps.Contains("parameters")) __score22++; if (__jsonProps.Contains("parameters.allowed_domains")) __score22++; + if (__jsonProps.Contains("parameters.blocked_domains")) __score22++; if (__jsonProps.Contains("parameters.engine")) __score22++; - if (__jsonProps.Contains("parameters.excluded_domains")) __score22++; - if (__jsonProps.Contains("parameters.max_characters")) __score22++; - if (__jsonProps.Contains("parameters.max_results")) __score22++; - if (__jsonProps.Contains("parameters.max_total_results")) __score22++; - if (__jsonProps.Contains("parameters.search_context_size")) __score22++; - if (__jsonProps.Contains("parameters.user_location")) __score22++; + if (__jsonProps.Contains("parameters.max_content_tokens")) __score22++; + if (__jsonProps.Contains("parameters.max_uses")) __score22++; if (__jsonProps.Contains("type")) __score22++; var __score23 = 0; if (__jsonProps.Contains("parameters")) __score23++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score23++; if (__jsonProps.Contains("parameters.engine")) __score23++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score23++; + if (__jsonProps.Contains("parameters.max_characters")) __score23++; + if (__jsonProps.Contains("parameters.max_results")) __score23++; + if (__jsonProps.Contains("parameters.max_total_results")) __score23++; + if (__jsonProps.Contains("parameters.search_context_size")) __score23++; + if (__jsonProps.Contains("parameters.user_location")) __score23++; if (__jsonProps.Contains("type")) __score23++; var __score24 = 0; if (__jsonProps.Contains("parameters")) __score24++; if (__jsonProps.Contains("parameters.engine")) __score24++; - if (__jsonProps.Contains("parameters.environment")) __score24++; - if (__jsonProps.Contains("parameters.sleep_after_seconds")) __score24++; if (__jsonProps.Contains("type")) __score24++; var __score25 = 0; if (__jsonProps.Contains("parameters")) __score25++; @@ -231,6 +220,12 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("parameters.environment")) __score25++; if (__jsonProps.Contains("parameters.sleep_after_seconds")) __score25++; if (__jsonProps.Contains("type")) __score25++; + var __score26 = 0; + if (__jsonProps.Contains("parameters")) __score26++; + if (__jsonProps.Contains("parameters.engine")) __score26++; + if (__jsonProps.Contains("parameters.environment")) __score26++; + if (__jsonProps.Contains("parameters.sleep_after_seconds")) __score26++; + if (__jsonProps.Contains("type")) __score26++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -259,6 +254,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } + if (__score26 > __bestScore) { __bestScore = __score26; __bestIndex = 26; } global::OpenRouter.ResponsesRequestToolsItems0? responsesRequestToolsItems0 = default; global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool = default; @@ -274,13 +270,14 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. global::OpenRouter.ShellServerTool? shellServerTool = default; global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool = default; global::OpenRouter.CustomTool? customTool = default; + global::OpenRouter.NamespaceTool? namespaceTool = default; global::OpenRouter.AdvisorServerToolOpenRouter? advisorServerToolOpenRouter = default; global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; global::OpenRouter.FilesServerTool? filesServerTool = default; global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter = default; global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; - global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; + global::OpenRouter.SearchModelsServerToolOpenRouter? searchModelsServerToolOpenRouter = default; global::OpenRouter.WebFetchServerTool? webFetchServerTool = default; global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter = default; global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter = default; @@ -499,6 +496,21 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } else if (__bestIndex == 14) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 15) { try { @@ -513,7 +525,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 15) + else if (__bestIndex == 16) { try { @@ -528,7 +540,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 16) + else if (__bestIndex == 17) { try { @@ -543,7 +555,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 17) + else if (__bestIndex == 18) { try { @@ -558,7 +570,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 18) + else if (__bestIndex == 19) { try { @@ -573,7 +585,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 19) + else if (__bestIndex == 20) { try { @@ -588,13 +600,13 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 20) + else if (__bestIndex == 21) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - chatSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + searchModelsServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -603,7 +615,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 21) + else if (__bestIndex == 22) { try { @@ -618,7 +630,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 22) + else if (__bestIndex == 23) { try { @@ -633,7 +645,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 23) + else if (__bestIndex == 24) { try { @@ -648,7 +660,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 24) + else if (__bestIndex == 25) { try { @@ -663,7 +675,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 25) + else if (__bestIndex == 26) { try { @@ -680,7 +692,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -697,7 +709,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -714,7 +726,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -731,7 +743,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -748,7 +760,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -765,7 +777,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -782,7 +794,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -799,7 +811,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -816,7 +828,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -833,7 +845,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -850,7 +862,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -867,7 +879,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -884,7 +896,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -901,7 +913,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -918,7 +930,24 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + namespaceTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -935,7 +964,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -952,7 +981,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -969,7 +998,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -986,7 +1015,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1003,7 +1032,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1020,14 +1049,14 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - chatSearchModelsServerTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + searchModelsServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1037,7 +1066,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1054,7 +1083,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1071,7 +1100,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1088,7 +1117,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1105,7 +1134,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && namespaceTool == null && advisorServerToolOpenRouter == null && subagentServerToolOpenRouter == null && datetimeServerTool == null && filesServerTool == null && fusionServerToolOpenRouter == null && imageGenerationServerToolOpenRouter == null && searchModelsServerToolOpenRouter == null && webFetchServerTool == null && webSearchServerToolOpenRouter == null && applyPatchServerToolOpenRouter == null && bashServerTool == null && shellServerToolOpenRouter == null) { try { @@ -1151,6 +1180,8 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. customTool, + namespaceTool, + advisorServerToolOpenRouter, subagentServerToolOpenRouter, @@ -1163,7 +1194,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. imageGenerationServerToolOpenRouter, - chatSearchModelsServerTool, + searchModelsServerToolOpenRouter, webFetchServerTool, @@ -1272,6 +1303,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CustomTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); } + else if (value.IsNamespaceTool) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.NamespaceTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.NamespaceTool).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NamespaceTool!, typeInfo); + } else if (value.IsAdvisorServerToolOpenRouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.AdvisorServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -1308,11 +1345,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); } - else if (value.IsChatSearchModelsServerTool) + else if (value.IsSearchModelsServerToolOpenRouter) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ChatSearchModelsServerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatSearchModelsServerTool!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.SearchModelsServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SearchModelsServerToolOpenRouter!, typeInfo); } else if (value.IsWebFetchServerTool) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularity.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularity.g.cs new file mode 100644 index 00000000..11cecc4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularity.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class STTTimestampGranularityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.STTTimestampGranularity 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.STTTimestampGranularityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.STTTimestampGranularity)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.STTTimestampGranularity); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.STTTimestampGranularity value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.STTTimestampGranularityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularityNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularityNullable.g.cs new file mode 100644 index 00000000..91bcab81 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.STTTimestampGranularityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class STTTimestampGranularityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.STTTimestampGranularity? 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.STTTimestampGranularityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.STTTimestampGranularity)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.STTTimestampGranularity?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.STTTimestampGranularity? 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.STTTimestampGranularityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..124c5c58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SearchModelsServerToolOpenRouterTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SearchModelsServerToolOpenRouterType 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.SearchModelsServerToolOpenRouterTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SearchModelsServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SearchModelsServerToolOpenRouterType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SearchModelsServerToolOpenRouterType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.SearchModelsServerToolOpenRouterTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullable.g.cs new file mode 100644 index 00000000..83bea40c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SearchModelsServerToolOpenRouterTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SearchModelsServerToolOpenRouterType? 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.SearchModelsServerToolOpenRouterTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SearchModelsServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SearchModelsServerToolOpenRouterType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SearchModelsServerToolOpenRouterType? 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.SearchModelsServerToolOpenRouterTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier.g.cs new file mode 100644 index 00000000..5f97e772 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ServiceTierJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ServiceTier 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.ServiceTierExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ServiceTier)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ServiceTier); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ServiceTier value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ServiceTierExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2.g.cs deleted file mode 100644 index 82be379d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ServiceTier2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ServiceTier2 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.ServiceTier2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ServiceTier2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ServiceTier2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ServiceTier2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ServiceTier2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2Nullable.g.cs deleted file mode 100644 index 457a5cd5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTier2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ServiceTier2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ServiceTier2? 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.ServiceTier2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ServiceTier2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ServiceTier2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ServiceTier2? 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.ServiceTier2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTierNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTierNullable.g.cs new file mode 100644 index 00000000..3c90bc06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ServiceTierNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ServiceTierNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ServiceTier? 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.ServiceTierExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ServiceTier)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ServiceTier?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ServiceTier? 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.ServiceTierExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs index 683b7b2f..643a6862 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs @@ -23,12 +23,21 @@ public class StoredPromptTemplateVariablesJsonConverter : global::System.Text.Js foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } } } var __score0 = 0; var __score1 = 0; + if (__jsonProps.Contains("prompt_cache_breakpoint")) __score1++; + if (__jsonProps.Contains("prompt_cache_breakpoint.mode")) __score1++; if (__jsonProps.Contains("text")) __score1++; var __score2 = 0; if (__jsonProps.Contains("detail")) __score2++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormat.g.cs new file mode 100644 index 00000000..38f287e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SttRequestResponseFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SttRequestResponseFormat 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.SttRequestResponseFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SttRequestResponseFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SttRequestResponseFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SttRequestResponseFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.SttRequestResponseFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormatNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormatNullable.g.cs new file mode 100644 index 00000000..45c13297 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SttRequestResponseFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SttRequestResponseFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SttRequestResponseFormat? 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.SttRequestResponseFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SttRequestResponseFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SttRequestResponseFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SttRequestResponseFormat? 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.SttRequestResponseFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategory.g.cs new file mode 100644 index 00000000..ec58bafe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategory.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SubmitGenerationFeedbackRequestCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SubmitGenerationFeedbackRequestCategory 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.SubmitGenerationFeedbackRequestCategoryExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SubmitGenerationFeedbackRequestCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SubmitGenerationFeedbackRequestCategory); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SubmitGenerationFeedbackRequestCategory value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.SubmitGenerationFeedbackRequestCategoryExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullable.g.cs new file mode 100644 index 00000000..18bdbd8e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class SubmitGenerationFeedbackRequestCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.SubmitGenerationFeedbackRequestCategory? 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.SubmitGenerationFeedbackRequestCategoryExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.SubmitGenerationFeedbackRequestCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.SubmitGenerationFeedbackRequestCategory?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.SubmitGenerationFeedbackRequestCategory? 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.SubmitGenerationFeedbackRequestCategoryExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs deleted file mode 100644 index b4931f45..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs deleted file mode 100644 index b6e4d66e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs deleted file mode 100644 index 1a02aa19..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs deleted file mode 100644 index fc8fcb86..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs deleted file mode 100644 index 62cb37de..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs deleted file mode 100644 index 21ab6f8c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs deleted file mode 100644 index ee800d8a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue 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; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - string? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = default; - double? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = 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(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 == null && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 == null && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue( - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, - - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue 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.IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!, typeInfo); - } - else if (value.IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 01604aa2..e40bf9db 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -57,6 +57,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -389,201 +393,21 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), @@ -677,10 +501,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), @@ -693,10 +513,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), @@ -729,6 +545,18 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), @@ -765,9 +593,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), @@ -837,69 +665,301 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), @@ -1129,13 +1189,17 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -1209,9 +1273,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -1245,6 +1309,14 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -1353,6 +1425,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -1417,10 +1493,22 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -1433,6 +1521,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -1473,6 +1565,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -1509,6 +1605,26 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), @@ -1545,9 +1661,13 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -1565,10 +1685,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -1589,6 +1705,14 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -1657,10 +1781,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -1845,6 +1965,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -1925,10 +2049,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -1937,6 +2057,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -1981,21 +2105,21 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -2221,17 +2345,17 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -2461,18 +2585,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -2671,15 +2783,41 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -2709,24 +2847,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -2773,10 +2893,22 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -2801,6 +2933,8 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -2867,7 +3001,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -2885,7 +3021,7 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -2893,8 +3029,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -2909,79 +3043,89 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] @@ -3013,6 +3157,8 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpointMode), TypeInfoPropertyName = "PromptCacheBreakpointMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpoint))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputText))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail), TypeInfoPropertyName = "EasyInputMessageContentOneOf0ItemsOneOf1Detail2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type), TypeInfoPropertyName = "EasyInputMessageContentOneOf0ItemsOneOf1Type2")] @@ -3036,6 +3182,8 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole), TypeInfoPropertyName = "EasyInputMessageRole2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType), TypeInfoPropertyName = "EasyInputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessageContentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessagePhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Detail), TypeInfoPropertyName = "InputMessageItemContentItemsOneOf1Detail2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Type), TypeInfoPropertyName = "InputMessageItemContentItemsOneOf1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItems1))] @@ -3064,6 +3212,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutput), TypeInfoPropertyName = "FunctionCallOutputItemOutput2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemType), TypeInfoPropertyName = "FunctionCallOutputItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfToolCallStatusObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation), TypeInfoPropertyName = "ApplyPatchCallOperation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant1Type), TypeInfoPropertyName = "ApplyPatchCallOperationVariant1Type2")] @@ -3102,6 +3251,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content), TypeInfoPropertyName = "InputsOneOf1ItemsOneOf7Content2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfInputsOneOf1ItemsOneOf7ContentObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus0), TypeInfoPropertyName = "OutputFunctionCallItemStatus02")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus1), TypeInfoPropertyName = "OutputFunctionCallItemStatus12")] @@ -3188,6 +3338,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputAdvisorServerToolItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSubagentServerToolItemType), TypeInfoPropertyName = "OutputSubagentServerToolItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSubagentServerToolItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFilesServerToolItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemActionType), TypeInfoPropertyName = "LocalShellCallItemActionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemAction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemType), TypeInfoPropertyName = "LocalShellCallItemType2")] @@ -3228,131 +3379,20 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CompactionItemType), TypeInfoPropertyName = "CompactionItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CompactionItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompactionItemType), TypeInfoPropertyName = "ContextCompactionItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompactionItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ItemReferenceItemType), TypeInfoPropertyName = "ItemReferenceItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ItemReferenceItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items), TypeInfoPropertyName = "InputsOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Inputs), TypeInfoPropertyName = "Inputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModalityEnum), TypeInfoPropertyName = "OutputModalityEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompressionEngine), TypeInfoPropertyName = "ContextCompressionEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine0), TypeInfoPropertyName = "PdfParserEngine02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine1), TypeInfoPropertyName = "PdfParserEngine12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine), TypeInfoPropertyName = "PDFParserEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine), TypeInfoPropertyName = "WebSearchEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId), TypeInfoPropertyName = "WebSearchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocationType), TypeInfoPropertyName = "WebSearchPluginUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId), TypeInfoPropertyName = "WebFetchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItems), TypeInfoPropertyName = "ResponsesRequestPluginsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant1Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant2Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant3Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant4Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant5Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant6Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant7Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplateVariables), TypeInfoPropertyName = "StoredPromptTemplateVariables2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection), TypeInfoPropertyName = "ProviderPreferencesDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName), TypeInfoPropertyName = "ProviderName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesIgnoreItems), TypeInfoPropertyName = "ProviderPreferencesIgnoreItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesMaxPrice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOnlyItems), TypeInfoPropertyName = "ProviderPreferencesOnlyItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOrderItems), TypeInfoPropertyName = "ProviderPreferencesOrderItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileLatencyCutoffs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency), TypeInfoPropertyName = "PreferredMaxLatency2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileThroughputCutoffs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput), TypeInfoPropertyName = "PreferredMinThroughput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization), TypeInfoPropertyName = "Quantization2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSort), TypeInfoPropertyName = "ProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy), TypeInfoPropertyName = "ProviderSortConfigBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition), TypeInfoPropertyName = "ProviderSortConfigPartition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProviderSortConfigByObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProviderSortConfigPartitionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesSort), TypeInfoPropertyName = "ProviderPreferencesSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferences))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProviderPreferencesDataCollectionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort), TypeInfoPropertyName = "ReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity), TypeInfoPropertyName = "ReasoningSummaryVerbosity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestServiceTier), TypeInfoPropertyName = "ResponsesRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenFinishReasonIsType), TypeInfoPropertyName = "StopServerToolsWhenFinishReasonIsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenHasToolCallType), TypeInfoPropertyName = "StopServerToolsWhenHasToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxCostType), TypeInfoPropertyName = "StopServerToolsWhenMaxCostType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxTokensUsedType), TypeInfoPropertyName = "StopServerToolsWhenMaxTokensUsedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenStepCountIsType), TypeInfoPropertyName = "StopServerToolsWhenStepCountIsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenCondition), TypeInfoPropertyName = "StopServerToolsWhenCondition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType), TypeInfoPropertyName = "StopServerToolsWhenConditionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfigType), TypeInfoPropertyName = "FormatTextConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfigType), TypeInfoPropertyName = "FormatJsonObjectConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfigType), TypeInfoPropertyName = "FormatJsonSchemaConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Formats), TypeInfoPropertyName = "Formats2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfigVerbosity), TypeInfoPropertyName = "TextExtendedConfigVerbosity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfTextExtendedConfigVerbosityObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice0), TypeInfoPropertyName = "OpenAiResponsesToolChoice02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice1), TypeInfoPropertyName = "OpenAiResponsesToolChoice12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice2), TypeInfoPropertyName = "OpenAiResponsesToolChoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode0), TypeInfoPropertyName = "ToolChoiceAllowedMode02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode1), TypeInfoPropertyName = "ToolChoiceAllowedMode12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf7Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice), TypeInfoPropertyName = "OpenAIResponsesToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type), TypeInfoPropertyName = "ResponsesRequestToolsItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemRole), TypeInfoPropertyName = "AdditionalToolsItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type), TypeInfoPropertyName = "AdditionalToolsItemToolsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItems0))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngineEnum), TypeInfoPropertyName = "WebSearchEngineEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchDomainFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchContextSizeEnum), TypeInfoPropertyName = "SearchContextSizeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchServerToolType), TypeInfoPropertyName = "PreviewWebSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocationType), TypeInfoPropertyName = "PreviewWebSearchUserLocationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation2), TypeInfoPropertyName = "PreviewWebSearchUserLocation22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchServerTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerToolType), TypeInfoPropertyName = "Preview20250311WebSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerTool))] @@ -3374,13 +3414,13 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerToolRankingOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerToolType), TypeInfoPropertyName = "FileSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfFileSearchServerToolFiltersObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ComputerUseServerToolEnvironment), TypeInfoPropertyName = "ComputerUseServerToolEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ComputerUseServerToolType), TypeInfoPropertyName = "ComputerUseServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ComputerUseServerTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit), TypeInfoPropertyName = "CodeInterpreterServerToolContainerOneOf1MemoryLimit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type), TypeInfoPropertyName = "CodeInterpreterServerToolContainerOneOf1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainer1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfCodeInterpreterServerToolContainerOneOf1MemoryLimitObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainer), TypeInfoPropertyName = "CodeInterpreterServerToolContainer2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolType), TypeInfoPropertyName = "CodeInterpreterServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerTool))] @@ -3395,17 +3435,16 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolRequireApproval), TypeInfoPropertyName = "McpServerToolRequireApproval2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolType), TypeInfoPropertyName = "McpServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMcpServerToolAllowedToolsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMcpServerToolRequireApprovalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolBackground), TypeInfoPropertyName = "ImageGenerationServerToolBackground2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolInputFidelity), TypeInfoPropertyName = "ImageGenerationServerToolInputFidelity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolInputImageMask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolModel), TypeInfoPropertyName = "ImageGenerationServerToolModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolModeration), TypeInfoPropertyName = "ImageGenerationServerToolModeration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOutputFormat), TypeInfoPropertyName = "ImageGenerationServerToolOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolQuality), TypeInfoPropertyName = "ImageGenerationServerToolQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolSize), TypeInfoPropertyName = "ImageGenerationServerToolSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolType), TypeInfoPropertyName = "ImageGenerationServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfImageGenerationServerToolInputFidelityObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodexLocalShellToolType), TypeInfoPropertyName = "CodexLocalShellToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodexLocalShellTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolType), TypeInfoPropertyName = "ShellServerToolType2")] @@ -3420,6 +3459,14 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolFormat), TypeInfoPropertyName = "CustomToolFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolType), TypeInfoPropertyName = "CustomToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolAllowedCallersItems), TypeInfoPropertyName = "NamespaceFunctionToolAllowedCallersItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType), TypeInfoPropertyName = "NamespaceFunctionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolToolsItems), TypeInfoPropertyName = "NamespaceToolToolsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType), TypeInfoPropertyName = "NamespaceToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdvisorReasoningEffort), TypeInfoPropertyName = "AdvisorReasoningEffort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdvisorReasoning))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdvisorNestedTool))] @@ -3451,8 +3498,8 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouterType), TypeInfoPropertyName = "ImageGenerationServerToolOpenRouterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchModelsServerToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerToolType), TypeInfoPropertyName = "ChatSearchModelsServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchModelsServerToolOpenRouterType), TypeInfoPropertyName = "SearchModelsServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchModelsServerToolOpenRouter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchEngineEnum), TypeInfoPropertyName = "WebFetchEngineEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolType), TypeInfoPropertyName = "WebFetchServerToolType2")] @@ -3485,53 +3532,150 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentVariant2Type), TypeInfoPropertyName = "ShellServerToolEnvironmentVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentDiscriminator))] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - typeof(global::OpenRouter.JsonConverters.MetadataLevelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MetadataLevelNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeNullableJsonConverter), - + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType), TypeInfoPropertyName = "ShellServerToolEnvironmentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouterType), TypeInfoPropertyName = "ShellServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItems27))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItems), TypeInfoPropertyName = "AdditionalToolsItemToolsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemType), TypeInfoPropertyName = "AdditionalToolsItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemAgent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail), TypeInfoPropertyName = "AgentMessageItemContentItemsOneOf1Detail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf1Type), TypeInfoPropertyName = "AgentMessageItemContentItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItems1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf2Type), TypeInfoPropertyName = "AgentMessageItemContentItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItems2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItems), TypeInfoPropertyName = "AgentMessageItemContentItems2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemType), TypeInfoPropertyName = "AgentMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAgentMessageItemAgentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items), TypeInfoPropertyName = "InputsOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Inputs), TypeInfoPropertyName = "Inputs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModalityEnum), TypeInfoPropertyName = "OutputModalityEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompressionEngine), TypeInfoPropertyName = "ContextCompressionEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine0), TypeInfoPropertyName = "PdfParserEngine02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine1), TypeInfoPropertyName = "PdfParserEngine12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine), TypeInfoPropertyName = "PDFParserEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine), TypeInfoPropertyName = "WebSearchEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId), TypeInfoPropertyName = "WebSearchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocationType), TypeInfoPropertyName = "WebSearchPluginUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId), TypeInfoPropertyName = "WebFetchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItems), TypeInfoPropertyName = "ResponsesRequestPluginsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant1Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant2Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant3Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant4Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant5Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant6Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant7Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id), TypeInfoPropertyName = "ResponsesRequestPluginsItemsVariant8Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfWebSearchPluginUserLocationObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "ResponsesRequestPluginsItemsDiscriminatorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplateVariables), TypeInfoPropertyName = "StoredPromptTemplateVariables2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptionsMode), TypeInfoPropertyName = "PromptCacheOptionsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection), TypeInfoPropertyName = "ProviderPreferencesDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName), TypeInfoPropertyName = "ProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesIgnoreItems), TypeInfoPropertyName = "ProviderPreferencesIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesMaxPrice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOnlyItems), TypeInfoPropertyName = "ProviderPreferencesOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOrderItems), TypeInfoPropertyName = "ProviderPreferencesOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileLatencyCutoffs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency), TypeInfoPropertyName = "PreferredMaxLatency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileThroughputCutoffs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput), TypeInfoPropertyName = "PreferredMinThroughput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization), TypeInfoPropertyName = "Quantization2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSort), TypeInfoPropertyName = "ProviderSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy), TypeInfoPropertyName = "ProviderSortConfigBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition), TypeInfoPropertyName = "ProviderSortConfigPartition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesSort), TypeInfoPropertyName = "ProviderPreferencesSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferences))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProviderPreferencesSortObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningContext), TypeInfoPropertyName = "ReasoningContext2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort), TypeInfoPropertyName = "ReasoningEffort2")] + internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::OpenRouter.JsonConverters.MetadataLevelJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MetadataLevelNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlDirectiveTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponseIncludesEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningTextContentTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningItemStatus2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryTextTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningItemTypeNullableJsonConverter), @@ -3540,6 +3684,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -3872,345 +4020,169 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2JsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), @@ -4248,9 +4220,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), @@ -4320,89 +4292,321 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole0NullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemRole1JsonConverter), @@ -4612,13 +4816,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -4692,9 +4900,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -4728,6 +4936,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -4836,6 +5052,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -4900,10 +5120,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -4916,6 +5148,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -4956,6 +5192,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -4992,23 +5232,43 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeNullableJsonConverter), @@ -5028,9 +5288,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -5048,10 +5312,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -5072,6 +5332,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -5140,10 +5408,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -5328,6 +5592,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -5408,10 +5676,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -5420,6 +5684,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -5464,21 +5732,21 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -5704,17 +5972,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -5944,18 +6212,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -6154,15 +6410,41 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -6192,24 +6474,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -6256,10 +6520,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -6284,6 +6560,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -6350,7 +6628,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -6368,7 +6648,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -6376,8 +6656,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -6392,86 +6670,140 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType), TypeInfoPropertyName = "ShellServerToolEnvironmentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouterType), TypeInfoPropertyName = "ShellServerToolOpenRouterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningMode), TypeInfoPropertyName = "ReasoningMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity), TypeInfoPropertyName = "ReasoningSummaryVerbosity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestServiceTier), TypeInfoPropertyName = "ResponsesRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenFinishReasonIsType), TypeInfoPropertyName = "StopServerToolsWhenFinishReasonIsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenHasToolCallType), TypeInfoPropertyName = "StopServerToolsWhenHasToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxCostType), TypeInfoPropertyName = "StopServerToolsWhenMaxCostType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxTokensUsedType), TypeInfoPropertyName = "StopServerToolsWhenMaxTokensUsedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenStepCountIsType), TypeInfoPropertyName = "StopServerToolsWhenStepCountIsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenCondition), TypeInfoPropertyName = "StopServerToolsWhenCondition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType), TypeInfoPropertyName = "StopServerToolsWhenConditionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfigType), TypeInfoPropertyName = "FormatTextConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfigType), TypeInfoPropertyName = "FormatJsonObjectConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfigType), TypeInfoPropertyName = "FormatJsonSchemaConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Formats), TypeInfoPropertyName = "Formats2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfigVerbosity), TypeInfoPropertyName = "TextExtendedConfigVerbosity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice0), TypeInfoPropertyName = "OpenAiResponsesToolChoice02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice1), TypeInfoPropertyName = "OpenAiResponsesToolChoice12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice2), TypeInfoPropertyName = "OpenAiResponsesToolChoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode0), TypeInfoPropertyName = "ToolChoiceAllowedMode02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode1), TypeInfoPropertyName = "ToolChoiceAllowedMode12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type), TypeInfoPropertyName = "OpenAiResponsesToolChoiceOneOf7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice), TypeInfoPropertyName = "OpenAIResponsesToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type), TypeInfoPropertyName = "ResponsesRequestToolsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems0))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems), TypeInfoPropertyName = "ResponsesRequestToolsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TraceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesTruncation), TypeInfoPropertyName = "OpenAIResponsesTruncation2")] @@ -6479,7 +6811,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfResponsesRequestServiceTierObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesErrorFieldCode), TypeInfoPropertyName = "ResponsesErrorFieldCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesErrorField))] @@ -6508,6 +6839,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role), TypeInfoPropertyName = "BaseInputsOneOf1ItemsOneOf0Role2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type), TypeInfoPropertyName = "BaseInputsOneOf1ItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1Items0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfBaseInputsOneOf1ItemsOneOf0PhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItems), TypeInfoPropertyName = "OpenAiResponseInputMessageItemContentItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type), TypeInfoPropertyName = "OpenAiResponseInputMessageItemContentItemsVariant1Type2")] @@ -6555,6 +6887,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMessageType), TypeInfoPropertyName = "OutputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfOutputMessagePhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallType), TypeInfoPropertyName = "OpenAiResponseCustomToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponseCustomToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items), TypeInfoPropertyName = "OpenAiResponseCustomToolCallOutputOutputOneOf1Items2")] @@ -6612,6 +6945,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant7))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfOutputMessageItemPhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9Type), TypeInfoPropertyName = "OutputItemsVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant10))] @@ -6632,6 +6966,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant18))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant18Type), TypeInfoPropertyName = "OutputItemsVariant18Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant19))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant19Type), TypeInfoPropertyName = "OutputItemsVariant19Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant20))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant21))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant22))] @@ -6641,20 +6976,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant26))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant27))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant28))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant29))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant30))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminatorType), TypeInfoPropertyName = "OutputItemsDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier2), TypeInfoPropertyName = "ServiceTier22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier), TypeInfoPropertyName = "ServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesResponseStatus), TypeInfoPropertyName = "OpenAIResponsesResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type), TypeInfoPropertyName = "OpenResponsesResultToolsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultToolsItems0))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultToolsItems), TypeInfoPropertyName = "OpenResponsesResultToolsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Truncation), TypeInfoPropertyName = "Truncation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UsageInputTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UsageOutputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesUsageInputTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UsageCostDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServerToolUseDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Usage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiErrorType), TypeInfoPropertyName = "ApiErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RouterAttempt))] @@ -6670,7 +7007,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfServiceTier2Object2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BadRequestResponseErrorData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BadRequestResponse))] @@ -6709,13 +7045,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestOutputFormat), TypeInfoPropertyName = "ImageGenerationRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestProviderOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems), TypeInfoPropertyName = "ImageGenerationProviderPreferencesIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems), TypeInfoPropertyName = "ImageGenerationProviderPreferencesOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesOrderItems), TypeInfoPropertyName = "ImageGenerationProviderPreferencesOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesSort), TypeInfoPropertyName = "ImageGenerationProviderPreferencesSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferences))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfImageGenerationProviderPreferencesSortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestQuality), TypeInfoPropertyName = "ImageGenerationRequestQuality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestResolution), TypeInfoPropertyName = "ImageGenerationRequestResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationResponseDataItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheCreation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsageCompletionTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CostDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicIterationCacheCreation))] @@ -6738,10 +7083,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality), TypeInfoPropertyName = "InputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageInputModality), TypeInfoPropertyName = "ImageInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageOutputModality), TypeInfoPropertyName = "ImageOutputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageModelArchitecture))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EnumCapabilityType), TypeInfoPropertyName = "EnumCapabilityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RangeCapabilityType), TypeInfoPropertyName = "RangeCapabilityType2")] @@ -6769,9 +7114,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SpeechRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTInputAudio))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SttRequestProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SttRequestResponseFormat), TypeInfoPropertyName = "SttRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTTimestampGranularity), TypeInfoPropertyName = "STTTimestampGranularity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTWord))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ActivityItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ActivityResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -6789,6 +7142,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BetaAnalyticsGetAnalyticsMetaResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items), TypeInfoPropertyName = "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue), TypeInfoPropertyName = "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items), TypeInfoPropertyName = "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue), TypeInfoPropertyName = "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue2")] @@ -6817,13 +7178,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksMetaSource), TypeInfoPropertyName = "UnifiedBenchmarksMetaSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksMetaVersion), TypeInfoPropertyName = "UnifiedBenchmarksMetaVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfUnifiedBenchmarksMetaSourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ByokGetParametersProvider), TypeInfoPropertyName = "ByokGetParametersProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKProviderSlug), TypeInfoPropertyName = "BYOKProviderSlug2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListBYOKKeysResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateBYOKKeyRequest))] @@ -6841,11 +7200,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyChatContentVideoType), TypeInfoPropertyName = "LegacyChatContentVideoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentVideoInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyChatContentVideoInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentCacheControlType), TypeInfoPropertyName = "ChatContentCacheControlType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentCacheControl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentTextType), TypeInfoPropertyName = "ChatContentTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentVideoType), TypeInfoPropertyName = "ChatContentVideoType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentVideoInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItems), TypeInfoPropertyName = "ChatContentItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsVariant1Type), TypeInfoPropertyName = "ChatContentItemsVariant1Type2")] @@ -6870,6 +7230,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant2Type), TypeInfoPropertyName = "ReasoningDetailUnionVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant3Type), TypeInfoPropertyName = "ReasoningDetailUnionVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant4Type), TypeInfoPropertyName = "ReasoningDetailUnionVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionDiscriminatorType), TypeInfoPropertyName = "ReasoningDetailUnionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -6888,86 +7250,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessages), TypeInfoPropertyName = "ChatMessages2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant1Role), TypeInfoPropertyName = "ChatMessagesVariant1Role2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatMessagesDiscriminatorMappingAssistantContentObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant2Role), TypeInfoPropertyName = "ChatMessagesVariant2Role2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminatorRole), TypeInfoPropertyName = "ChatMessagesDiscriminatorRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestModalitiesItems), TypeInfoPropertyName = "ChatRequestModalitiesItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItems), TypeInfoPropertyName = "ChatRequestPluginsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant1Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant2Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant3Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant4Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant5Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant6Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant7Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "ChatRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoningEffort), TypeInfoPropertyName = "ChatRequestReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatReasoningSummaryVerbosityEnum), TypeInfoPropertyName = "ChatReasoningSummaryVerbosityEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatRequestReasoningEffortObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatJsonSchemaConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormat), TypeInfoPropertyName = "ChatRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminatorType), TypeInfoPropertyName = "ChatRequestResponseFormatDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestServiceTier), TypeInfoPropertyName = "ChatRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestStop), TypeInfoPropertyName = "ChatRequestStop2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatStreamOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice0), TypeInfoPropertyName = "ChatToolChoice02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice1), TypeInfoPropertyName = "ChatToolChoice12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice2), TypeInfoPropertyName = "ChatToolChoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceType), TypeInfoPropertyName = "ChatNamedToolChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatServerToolChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice), TypeInfoPropertyName = "ChatToolChoice2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Function))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Type), TypeInfoPropertyName = "ChatFunctionToolOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool0))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerToolType), TypeInfoPropertyName = "OpenRouterWebSearchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthandType), TypeInfoPropertyName = "ChatWebSearchShorthandType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthand))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool), TypeInfoPropertyName = "ChatFunctionTool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatRequestServiceTierObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFinishReasonEnum), TypeInfoPropertyName = "ChatFinishReasonEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprobTopLogprobsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprobs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAssistantMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatChoice))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7023,6 +7311,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -7355,201 +7647,21 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), @@ -7643,10 +7755,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), @@ -7659,10 +7767,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), @@ -7695,6 +7799,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), @@ -7731,9 +7847,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), @@ -7803,75 +7919,307 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonJsonConverter), + + typeof(global::OpenRouter.JsonConverters.IncompleteDetailsReasonNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Phase1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3JsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0Role3NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant3TypeNullableJsonConverter), @@ -8095,13 +8443,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -8175,9 +8527,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -8211,6 +8563,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -8319,6 +8679,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -8383,10 +8747,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -8399,6 +8775,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -8439,6 +8819,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -8475,23 +8859,43 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), - typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputAudioTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentPartInputVideoTypeNullableJsonConverter), @@ -8511,9 +8915,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -8531,10 +8939,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -8555,6 +8959,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -8623,10 +9035,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -8811,6 +9219,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -8891,10 +9303,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -8903,6 +9311,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -8947,21 +9359,21 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -9187,17 +9599,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -9427,18 +9839,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -9637,15 +10037,41 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -9675,24 +10101,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -9739,10 +10147,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -9767,6 +10187,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -9833,7 +10255,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -9851,7 +10275,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -9859,8 +10283,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -9875,90 +10297,183 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminatorRole), TypeInfoPropertyName = "ChatMessagesDiscriminatorRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestModalitiesItems), TypeInfoPropertyName = "ChatRequestModalitiesItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItems), TypeInfoPropertyName = "ChatRequestPluginsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant1Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant2Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant3Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant4Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant5Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant6Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant7Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8Id), TypeInfoPropertyName = "ChatRequestPluginsItemsVariant8Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "ChatRequestPluginsItemsDiscriminatorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentTextType), TypeInfoPropertyName = "PredictionContentTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContent), TypeInfoPropertyName = "PredictionContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionType), TypeInfoPropertyName = "PredictionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Prediction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoningEffort), TypeInfoPropertyName = "ChatRequestReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatReasoningSummaryVerbosityEnum), TypeInfoPropertyName = "ChatReasoningSummaryVerbosityEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatJsonSchemaConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormat), TypeInfoPropertyName = "ChatRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant2Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5Type), TypeInfoPropertyName = "ChatRequestResponseFormatVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminatorType), TypeInfoPropertyName = "ChatRequestResponseFormatDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestServiceTier), TypeInfoPropertyName = "ChatRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestStop), TypeInfoPropertyName = "ChatRequestStop2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatStreamOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice0), TypeInfoPropertyName = "ChatToolChoice02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice1), TypeInfoPropertyName = "ChatToolChoice12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice2), TypeInfoPropertyName = "ChatToolChoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceFunction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceType), TypeInfoPropertyName = "ChatNamedToolChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatServerToolChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice), TypeInfoPropertyName = "ChatToolChoice2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Function))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Type), TypeInfoPropertyName = "ChatFunctionToolOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerToolType), TypeInfoPropertyName = "ChatSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerToolType), TypeInfoPropertyName = "OpenRouterWebSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthandType), TypeInfoPropertyName = "ChatWebSearchShorthandType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthand))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool), TypeInfoPropertyName = "ChatFunctionTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatRequestStopObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFinishReasonEnum), TypeInfoPropertyName = "ChatFinishReasonEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprobTopLogprobsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatTokenLogprobs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAssistantMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatChoice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResultObject), TypeInfoPropertyName = "ChatResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsageCompletionTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsagePromptTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsageServerToolUseDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsageCompletionTokensDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsagePromptTokensDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsageServerToolUseDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ClassificationsTaskGetParametersWindow), TypeInfoPropertyName = "ClassificationsTaskGetParametersWindow2")] @@ -9980,6 +10495,11 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMeta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod), TypeInfoPropertyName = "DatasetsRankingsDailyGetParametersPeriod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersModality), TypeInfoPropertyName = "DatasetsRankingsDailyGetParametersModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket), TypeInfoPropertyName = "DatasetsRankingsDailyGetParametersContextBucket2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersCategory), TypeInfoPropertyName = "DatasetsRankingsDailyGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType), TypeInfoPropertyName = "DatasetsRankingsDailyGetParametersLanguageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -10010,25 +10530,24 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelArchitectureInstructType), TypeInfoPropertyName = "ModelArchitectureInstructType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality), TypeInfoPropertyName = "InputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InstructType), TypeInfoPropertyName = "InstructType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModality), TypeInfoPropertyName = "OutputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelGroup), TypeInfoPropertyName = "ModelGroup2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelArchitecture))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfModelArchitectureInstructTypeObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AABenchmarkEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DABenchmarkEntry))] @@ -10037,7 +10556,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DefaultParameters))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelLinks))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PerRequestLimits))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverride))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicPricing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelReasoning))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Parameter), TypeInfoPropertyName = "Parameter2")] @@ -10045,17 +10566,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Model))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponseLinks))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPricing))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointStatus), TypeInfoPropertyName = "EndpointStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointThroughputLast30M))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfQuantizationObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointsListEndpointsZdrResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InstructType2), TypeInfoPropertyName = "InstructType22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListEndpointsResponseArchitecture))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfInstructType2Object2")] [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.FileMetadataType), TypeInfoPropertyName = "FileMetadataType2")] @@ -10067,9 +10588,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType), TypeInfoPropertyName = "GenerationResponseDataApiType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion), TypeInfoPropertyName = "GenerationResponseDataDataRegion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName), TypeInfoPropertyName = "ProviderResponseProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseRoutedServiceTier), TypeInfoPropertyName = "ProviderResponseRoutedServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))] [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.GenerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput0))] @@ -10078,6 +10599,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [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.SubmitGenerationFeedbackRequestCategory), TypeInfoPropertyName = "SubmitGenerationFeedbackRequestCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SubmitGenerationFeedbackRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SubmitGenerationFeedbackResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SubmitGenerationFeedbackResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinAction), TypeInfoPropertyName = "ContentFilterBuiltinAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptInjectionScanScope), TypeInfoPropertyName = "PromptInjectionScanScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinSlug), TypeInfoPropertyName = "ContentFilterBuiltinSlug2")] @@ -10144,6 +10669,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingTurnsType), TypeInfoPropertyName = "AnthropicThinkingTurnsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingTurns))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type2")] @@ -10152,10 +10678,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf1Keep2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf2TriggerType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItemsOneOf2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesRequestContextManagementEditsItemsOneOf2TriggerObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems), TypeInfoPropertyName = "MessagesRequestContextManagementEditsItems2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagement))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -10254,7 +10780,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigTaskBudgetType), TypeInfoPropertyName = "MessagesOutputConfigTaskBudgetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigTaskBudget))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesOutputConfigEffortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesOutputConfigFormatObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesOutputConfigTaskBudgetObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItems), TypeInfoPropertyName = "MessagesRequestPluginsItems2")] @@ -10273,7 +10798,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7Id), TypeInfoPropertyName = "MessagesRequestPluginsItemsVariant7Id2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8Id), TypeInfoPropertyName = "MessagesRequestPluginsItemsVariant8Id2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "MessagesRequestPluginsItemsDiscriminatorId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSystem), TypeInfoPropertyName = "MessagesRequestSystem2")] @@ -10313,11 +10840,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Name), TypeInfoPropertyName = "MessagesRequestToolsItemsOneOf4Name2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Type), TypeInfoPropertyName = "MessagesRequestToolsItemsOneOf4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType), TypeInfoPropertyName = "MessagesRequestToolsItemsOneOf5CachingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Name), TypeInfoPropertyName = "MessagesRequestToolsItemsOneOf5Name2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Type), TypeInfoPropertyName = "MessagesRequestToolsItemsOneOf5Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAnthropicCacheControlDirectiveObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType), TypeInfoPropertyName = "MessagesSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems12))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems), TypeInfoPropertyName = "MessagesRequestToolsItems2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequest))] @@ -10351,106 +10879,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContentVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContentDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType), TypeInfoPropertyName = "AnthropicCodeExecutionContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCaller), TypeInfoPropertyName = "ORAnthropicNullableCaller2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1Type), TypeInfoPropertyName = "ORAnthropicNullableCallerVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2Type), TypeInfoPropertyName = "ORAnthropicNullableCallerVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3Type), TypeInfoPropertyName = "ORAnthropicNullableCallerVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType), TypeInfoPropertyName = "ORAnthropicNullableCallerDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicServerToolUseBlockType), TypeInfoPropertyName = "OrAnthropicServerToolUseBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitation), TypeInfoPropertyName = "AnthropicTextCitation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant1Type), TypeInfoPropertyName = "AnthropicTextCitationVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant2Type), TypeInfoPropertyName = "AnthropicTextCitationVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant3Type), TypeInfoPropertyName = "AnthropicTextCitationVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant4Type), TypeInfoPropertyName = "AnthropicTextCitationVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant5Type), TypeInfoPropertyName = "AnthropicTextCitationVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationDiscriminatorType), TypeInfoPropertyName = "AnthropicTextCitationDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionCreateResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionStrReplaceResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionToolResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionViewResultFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionViewResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContent), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchResultErrorType), TypeInfoPropertyName = "AnthropicToolSearchResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolReferenceType), TypeInfoPropertyName = "AnthropicToolReferenceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolReference))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchResultType), TypeInfoPropertyName = "AnthropicToolSearchResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContent), TypeInfoPropertyName = "AnthropicToolSearchContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentDiscriminatorType), TypeInfoPropertyName = "AnthropicToolSearchContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCaller), TypeInfoPropertyName = "AnthropicCaller2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant1Type), TypeInfoPropertyName = "AnthropicCallerVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant2Type), TypeInfoPropertyName = "AnthropicCallerVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant3Type), TypeInfoPropertyName = "AnthropicCallerVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerDiscriminatorType), TypeInfoPropertyName = "AnthropicCallerDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCitationsConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockSource), TypeInfoPropertyName = "AnthropicDocumentBlockSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockType), TypeInfoPropertyName = "AnthropicDocumentBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlock))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicWebFetchToolResultErrorErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchToolResultErrorType), TypeInfoPropertyName = "AnthropicWebFetchToolResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContent), TypeInfoPropertyName = "AnthropicWebFetchContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant1Type), TypeInfoPropertyName = "AnthropicWebFetchContentVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentDiscriminatorType), TypeInfoPropertyName = "AnthropicWebFetchContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResultType), TypeInfoPropertyName = "AnthropicWebSearchResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicWebSearchToolResultErrorErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultErrorType), TypeInfoPropertyName = "AnthropicWebSearchToolResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent), TypeInfoPropertyName = "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlock), TypeInfoPropertyName = "ORAnthropicContentBlock2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant1Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant2Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant3Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant4Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant5Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant6Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant8Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant8Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant9))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant9Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant9Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant10))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant10Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant10Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant11))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant11Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant11Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant12))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant12Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant12Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCaller), TypeInfoPropertyName = "OrAnthropicNullableCaller2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1Type), TypeInfoPropertyName = "OrAnthropicNullableCallerVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -10506,6 +10938,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -10838,453 +11274,509 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdJsonConverter), - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2JsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.McpServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter), - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + typeof(global::OpenRouter.JsonConverters.SubagentReasoningEffortJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SubagentReasoningEffortNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + typeof(global::OpenRouter.JsonConverters.SubagentServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SubagentServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.FilesServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FilesServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.FusionServerToolConfigReasoningEffortJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FusionServerToolConfigReasoningEffortNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.SearchContextSizeEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchQualityLevelJsonConverter), - typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchQualityLevelNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.Preview20250311WebSearchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.LegacyWebSearchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchEngineEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchEngineEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolRankingOptionsRankerNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolEnvironmentNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ComputerUseServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolConnectorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1JsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2JsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApproval2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.McpServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.CodexLocalShellToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1SyntaxNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), - typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AdvisorServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), - typeof(global::OpenRouter.JsonConverters.AdvisorServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.SubagentReasoningEffortJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), - typeof(global::OpenRouter.JsonConverters.SubagentReasoningEffortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.SubagentServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), - typeof(global::OpenRouter.JsonConverters.SubagentServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FilesServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FilesServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FusionServerToolConfigReasoningEffortJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FusionServerToolConfigReasoningEffortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebFetchServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.SearchQualityLevelJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.SearchQualityLevelNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchUserLocationServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), - typeof(global::OpenRouter.JsonConverters.WebSearchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchEngineEnumJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchEngineEnumNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ApplyPatchServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), @@ -11578,13 +12070,17 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -11658,9 +12154,9 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -11694,6 +12190,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -11802,6 +12306,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -11866,10 +12374,22 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -11882,6 +12402,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -11922,6 +12446,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -11958,6 +12486,26 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), @@ -11994,9 +12542,13 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -12014,10 +12566,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -12038,6 +12586,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -12106,10 +12662,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -12294,6 +12846,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -12374,10 +12930,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -12386,6 +12938,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -12430,21 +12986,21 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -12670,17 +13226,17 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -12910,18 +13466,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -13120,15 +13664,41 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -13158,24 +13728,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -13222,10 +13774,22 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -13250,6 +13814,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -13316,7 +13882,9 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -13334,7 +13902,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -13342,8 +13910,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -13358,82 +13924,189 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2Type), TypeInfoPropertyName = "OrAnthropicNullableCallerVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3Type), TypeInfoPropertyName = "OrAnthropicNullableCallerVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType), TypeInfoPropertyName = "OrAnthropicNullableCallerDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCaller2), TypeInfoPropertyName = "ORAnthropicNullableCaller22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicServerToolUseBlockType), TypeInfoPropertyName = "OrAnthropicServerToolUseBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitation), TypeInfoPropertyName = "AnthropicTextCitation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant1Type), TypeInfoPropertyName = "AnthropicTextCitationVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant2Type), TypeInfoPropertyName = "AnthropicTextCitationVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant3Type), TypeInfoPropertyName = "AnthropicTextCitationVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant4Type), TypeInfoPropertyName = "AnthropicTextCitationVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant5Type), TypeInfoPropertyName = "AnthropicTextCitationVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationDiscriminatorType), TypeInfoPropertyName = "AnthropicTextCitationDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionCreateResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionStrReplaceResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionToolResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionViewResultFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionViewResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContent), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType), TypeInfoPropertyName = "AnthropicTextEditorCodeExecutionContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchResultErrorType), TypeInfoPropertyName = "AnthropicToolSearchResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolReferenceType), TypeInfoPropertyName = "AnthropicToolReferenceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolReference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchResultType), TypeInfoPropertyName = "AnthropicToolSearchResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContent), TypeInfoPropertyName = "AnthropicToolSearchContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolSearchContentDiscriminatorType), TypeInfoPropertyName = "AnthropicToolSearchContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCaller), TypeInfoPropertyName = "AnthropicCaller2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant1Type), TypeInfoPropertyName = "AnthropicCallerVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant2Type), TypeInfoPropertyName = "AnthropicCallerVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerVariant3Type), TypeInfoPropertyName = "AnthropicCallerVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCallerDiscriminatorType), TypeInfoPropertyName = "AnthropicCallerDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCitationsConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockSource), TypeInfoPropertyName = "AnthropicDocumentBlockSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockType), TypeInfoPropertyName = "AnthropicDocumentBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlock))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicWebFetchToolResultErrorErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchToolResultErrorType), TypeInfoPropertyName = "AnthropicWebFetchToolResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContent), TypeInfoPropertyName = "AnthropicWebFetchContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant1Type), TypeInfoPropertyName = "AnthropicWebFetchContentVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebFetchContentDiscriminatorType), TypeInfoPropertyName = "AnthropicWebFetchContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResultType), TypeInfoPropertyName = "AnthropicWebSearchResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode), TypeInfoPropertyName = "AnthropicWebSearchToolResultErrorErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultErrorType), TypeInfoPropertyName = "AnthropicWebSearchToolResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolResultError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent), TypeInfoPropertyName = "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlock), TypeInfoPropertyName = "ORAnthropicContentBlock2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant1Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant2Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant3Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant4Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant5Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant6Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant8Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant9Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant9Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant10Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant10Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant11Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant11Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant12Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant12Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant13))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant13Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant13Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant14))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlockVariant14Type), TypeInfoPropertyName = "ORAnthropicContentBlockVariant14Type2")] @@ -13443,10 +14116,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicRefusalStopDetailsCategory), TypeInfoPropertyName = "AnthropicRefusalStopDetailsCategory2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicRefusalStopDetailsType), TypeInfoPropertyName = "AnthropicRefusalStopDetailsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicRefusalStopDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAnthropicRefusalStopDetailsCategoryObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicStopReason), TypeInfoPropertyName = "ORAnthropicStopReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultType), TypeInfoPropertyName = "MessagesResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheCreation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicOutputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServerToolUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServiceTier), TypeInfoPropertyName = "AnthropicServiceTier2")] @@ -13469,15 +14140,15 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsLogic2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupLogic), TypeInfoPropertyName = "ObservabilityFilterRuleGroupLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRuleGroupRulesItemsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRuleGroupRulesItemsOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue), TypeInfoPropertyName = "ObservabilityFilterRuleGroupRulesItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig))] @@ -13535,6 +14206,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorType), TypeInfoPropertyName = "ObservabilityDestinationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListObservabilityDestinationsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigNullable))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationRequestType), TypeInfoPropertyName = "CreateObservabilityDestinationRequestType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseData), TypeInfoPropertyName = "CreateObservabilityDestinationResponseData2")] @@ -13614,15 +14286,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteObservabilityDestinationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseData), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1))] @@ -13681,7 +14345,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters), TypeInfoPropertyName = "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersListProvidersResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1))] @@ -13693,10 +14356,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderSortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage))] @@ -13733,7 +14396,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSizesItems), TypeInfoPropertyName = "VideoModelSupportedSizesItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -13753,187 +14415,101 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetResetInterval), TypeInfoPropertyName = "WorkspaceBudgetResetInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudget))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfWorkspaceBudgetResetIntervalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListWorkspaceBudgetsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetInterval), TypeInfoPropertyName = "WorkspaceBudgetInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpsertWorkspaceBudgetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval), TypeInfoPropertyName = "UpsertWorkspaceBudgetResponseDataResetInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpsertWorkspaceBudgetResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfUpsertWorkspaceBudgetResponseDataResetIntervalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpsertWorkspaceBudgetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteWorkspaceBudgetResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole), TypeInfoPropertyName = "WorkspaceMemberRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMember))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListWorkspaceMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysPostRequestBodyContentApplicationJsonSchemaLimitResetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel?), TypeInfoPropertyName = "NullableMetadataLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlTtl?), TypeInfoPropertyName = "NullableAnthropicCacheControlTtl2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlDirectiveType?), TypeInfoPropertyName = "NullableAnthropicCacheControlDirectiveType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageConfig?), TypeInfoPropertyName = "NullableImageConfig2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseIncludesEnum?), TypeInfoPropertyName = "NullableResponseIncludesEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningTextContentType?), TypeInfoPropertyName = "NullableReasoningTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus0?), TypeInfoPropertyName = "NullableReasoningItemStatus02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus1?), TypeInfoPropertyName = "NullableReasoningItemStatus12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus2?), TypeInfoPropertyName = "NullableReasoningItemStatus22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus?), TypeInfoPropertyName = "NullableReasoningItemStatus2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryTextType?), TypeInfoPropertyName = "NullableReasoningSummaryTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemType?), TypeInfoPropertyName = "NullableReasoningItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningFormat?), TypeInfoPropertyName = "NullableReasoningFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0ItemsOneOf1Detail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0ItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputVideoType?), TypeInfoPropertyName = "NullableInputVideoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0Items?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContent?), TypeInfoPropertyName = "NullableEasyInputMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase0?), TypeInfoPropertyName = "NullableEasyInputMessagePhase02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase1?), TypeInfoPropertyName = "NullableEasyInputMessagePhase12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase?), TypeInfoPropertyName = "NullableEasyInputMessagePhase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole0?), TypeInfoPropertyName = "NullableEasyInputMessageRole02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole1?), TypeInfoPropertyName = "NullableEasyInputMessageRole12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole2?), TypeInfoPropertyName = "NullableEasyInputMessageRole22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole3?), TypeInfoPropertyName = "NullableEasyInputMessageRole32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole?), TypeInfoPropertyName = "NullableEasyInputMessageRole2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType?), TypeInfoPropertyName = "NullableEasyInputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Detail?), TypeInfoPropertyName = "NullableInputMessageItemContentItemsOneOf1Detail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Type?), TypeInfoPropertyName = "NullableInputMessageItemContentItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItems?), TypeInfoPropertyName = "NullableInputMessageItemContentItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole0?), TypeInfoPropertyName = "NullableInputMessageItemRole02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole1?), TypeInfoPropertyName = "NullableInputMessageItemRole12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole2?), TypeInfoPropertyName = "NullableInputMessageItemRole22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole?), TypeInfoPropertyName = "NullableInputMessageItemRole2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemType?), TypeInfoPropertyName = "NullableInputMessageItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolCallStatus?), TypeInfoPropertyName = "NullableToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallItemType?), TypeInfoPropertyName = "NullableFunctionCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutput?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemType?), TypeInfoPropertyName = "NullableFunctionCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation?), TypeInfoPropertyName = "NullableApplyPatchCallOperation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant1Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant2Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant3Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationDiscriminatorType?), TypeInfoPropertyName = "NullableApplyPatchCallOperationDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallStatus?), TypeInfoPropertyName = "NullableApplyPatchCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemType?), TypeInfoPropertyName = "NullableApplyPatchCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus?), TypeInfoPropertyName = "NullableApplyPatchCallOutputItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemType?), TypeInfoPropertyName = "NullableApplyPatchCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileCitationType?), TypeInfoPropertyName = "NullableFileCitationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UrlCitationType?), TypeInfoPropertyName = "NullableUrlCitationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FilePathType?), TypeInfoPropertyName = "NullableFilePathType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesAnnotation?), TypeInfoPropertyName = "NullableOpenAIResponsesAnnotation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseOutputTextType?), TypeInfoPropertyName = "NullableResponseOutputTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesRefusalContentType?), TypeInfoPropertyName = "NullableOpenAiResponsesRefusalContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items?), TypeInfoPropertyName = "NullableInputsOneOf1ItemsOneOf7ContentOneOf0Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content?), TypeInfoPropertyName = "NullableInputsOneOf1ItemsOneOf7Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus0?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus1?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus2?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemType?), TypeInfoPropertyName = "NullableOutputFunctionCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchSourceType?), TypeInfoPropertyName = "NullableWebSearchSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemAction?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchStatus?), TypeInfoPropertyName = "NullableWebSearchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemType?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFileSearchCallItemType?), TypeInfoPropertyName = "NullableOutputFileSearchCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationStatus?), TypeInfoPropertyName = "NullableImageGenerationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputImageGenerationCallItemType?), TypeInfoPropertyName = "NullableOutputImageGenerationCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemType?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus?), TypeInfoPropertyName = "NullableOutputItemsDiscriminatorMappingComputerCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemActionSourcesItemsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemCommand?), TypeInfoPropertyName = "NullableOutputTextEditorServerToolItemCommand2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemType?), TypeInfoPropertyName = "NullableOutputTextEditorServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebFetchServerToolItemType?), TypeInfoPropertyName = "NullableOutputWebFetchServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemType?), TypeInfoPropertyName = "NullableOutputToolSearchServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemAction?), TypeInfoPropertyName = "NullableOutputMemoryServerToolItemAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemType?), TypeInfoPropertyName = "NullableOutputMemoryServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMcpServerToolItemType?), TypeInfoPropertyName = "NullableOutputMcpServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSearchModelsServerToolItemType?), TypeInfoPropertyName = "NullableOutputSearchModelsServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSubagentServerToolItemType?), TypeInfoPropertyName = "NullableOutputSubagentServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemActionType?), TypeInfoPropertyName = "NullableLocalShellCallItemActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemType?), TypeInfoPropertyName = "NullableLocalShellCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallOutputItemType?), TypeInfoPropertyName = "NullableLocalShellCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallItemType?), TypeInfoPropertyName = "NullableShellCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallOutputItemType?), TypeInfoPropertyName = "NullableShellCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpListToolsItemType?), TypeInfoPropertyName = "NullableMcpListToolsItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalRequestItemType?), TypeInfoPropertyName = "NullableMcpApprovalRequestItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalResponseItemType?), TypeInfoPropertyName = "NullableMcpApprovalResponseItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpCallItemType?), TypeInfoPropertyName = "NullableMcpCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallItemType?), TypeInfoPropertyName = "NullableCustomToolCallItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutput?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemType?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CompactionItemType?), TypeInfoPropertyName = "NullableCompactionItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ItemReferenceItemType?), TypeInfoPropertyName = "NullableItemReferenceItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items?), TypeInfoPropertyName = "NullableInputsOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Inputs?), TypeInfoPropertyName = "NullableInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModalityEnum?), TypeInfoPropertyName = "NullableOutputModalityEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompressionEngine?), TypeInfoPropertyName = "NullableContextCompressionEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine0?), TypeInfoPropertyName = "NullablePdfParserEngine02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine1?), TypeInfoPropertyName = "NullablePdfParserEngine12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine?), TypeInfoPropertyName = "NullablePDFParserEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine?), TypeInfoPropertyName = "NullableWebSearchEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId?), TypeInfoPropertyName = "NullableWebSearchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocationType?), TypeInfoPropertyName = "NullableWebSearchPluginUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId?), TypeInfoPropertyName = "NullableWebFetchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItems?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant1Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant2Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant3Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant4Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant5Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant6Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant7Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplateVariables?), TypeInfoPropertyName = "NullableStoredPromptTemplateVariables2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection?), TypeInfoPropertyName = "NullableProviderPreferencesDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName?), TypeInfoPropertyName = "NullableProviderName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesIgnoreItems?), TypeInfoPropertyName = "NullableProviderPreferencesIgnoreItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOnlyItems?), TypeInfoPropertyName = "NullableProviderPreferencesOnlyItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOrderItems?), TypeInfoPropertyName = "NullableProviderPreferencesOrderItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency?), TypeInfoPropertyName = "NullablePreferredMaxLatency2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput?), TypeInfoPropertyName = "NullablePreferredMinThroughput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel?), TypeInfoPropertyName = "NullableMetadataLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlTtl?), TypeInfoPropertyName = "NullableAnthropicCacheControlTtl2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlDirectiveType?), TypeInfoPropertyName = "NullableAnthropicCacheControlDirectiveType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageConfig?), TypeInfoPropertyName = "NullableImageConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseIncludesEnum?), TypeInfoPropertyName = "NullableResponseIncludesEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningTextContentType?), TypeInfoPropertyName = "NullableReasoningTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus0?), TypeInfoPropertyName = "NullableReasoningItemStatus02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus1?), TypeInfoPropertyName = "NullableReasoningItemStatus12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus2?), TypeInfoPropertyName = "NullableReasoningItemStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemStatus?), TypeInfoPropertyName = "NullableReasoningItemStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryTextType?), TypeInfoPropertyName = "NullableReasoningSummaryTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningItemType?), TypeInfoPropertyName = "NullableReasoningItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningFormat?), TypeInfoPropertyName = "NullableReasoningFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpointMode?), TypeInfoPropertyName = "NullablePromptCacheBreakpointMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0ItemsOneOf1Detail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0ItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputVideoType?), TypeInfoPropertyName = "NullableInputVideoType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0Items?), TypeInfoPropertyName = "NullableEasyInputMessageContentOneOf0Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContent?), TypeInfoPropertyName = "NullableEasyInputMessageContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase0?), TypeInfoPropertyName = "NullableEasyInputMessagePhase02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase1?), TypeInfoPropertyName = "NullableEasyInputMessagePhase12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase?), TypeInfoPropertyName = "NullableEasyInputMessagePhase2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole0?), TypeInfoPropertyName = "NullableEasyInputMessageRole02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole1?), TypeInfoPropertyName = "NullableEasyInputMessageRole12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole2?), TypeInfoPropertyName = "NullableEasyInputMessageRole22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole3?), TypeInfoPropertyName = "NullableEasyInputMessageRole32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageRole?), TypeInfoPropertyName = "NullableEasyInputMessageRole2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType?), TypeInfoPropertyName = "NullableEasyInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfEasyInputMessageContentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfEasyInputMessagePhaseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Detail?), TypeInfoPropertyName = "NullableInputMessageItemContentItemsOneOf1Detail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItemsOneOf1Type?), TypeInfoPropertyName = "NullableInputMessageItemContentItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemContentItems?), TypeInfoPropertyName = "NullableInputMessageItemContentItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole0?), TypeInfoPropertyName = "NullableInputMessageItemRole02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole1?), TypeInfoPropertyName = "NullableInputMessageItemRole12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole2?), TypeInfoPropertyName = "NullableInputMessageItemRole22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemRole?), TypeInfoPropertyName = "NullableInputMessageItemRole2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputMessageItemType?), TypeInfoPropertyName = "NullableInputMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolCallStatus?), TypeInfoPropertyName = "NullableToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallItemType?), TypeInfoPropertyName = "NullableFunctionCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemOutput?), TypeInfoPropertyName = "NullableFunctionCallOutputItemOutput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionCallOutputItemType?), TypeInfoPropertyName = "NullableFunctionCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfToolCallStatusObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperation?), TypeInfoPropertyName = "NullableApplyPatchCallOperation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant1Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant2Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationVariant3Type?), TypeInfoPropertyName = "NullableApplyPatchCallOperationVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOperationDiscriminatorType?), TypeInfoPropertyName = "NullableApplyPatchCallOperationDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallStatus?), TypeInfoPropertyName = "NullableApplyPatchCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallItemType?), TypeInfoPropertyName = "NullableApplyPatchCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemStatus?), TypeInfoPropertyName = "NullableApplyPatchCallOutputItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchCallOutputItemType?), TypeInfoPropertyName = "NullableApplyPatchCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileCitationType?), TypeInfoPropertyName = "NullableFileCitationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UrlCitationType?), TypeInfoPropertyName = "NullableUrlCitationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FilePathType?), TypeInfoPropertyName = "NullableFilePathType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesAnnotation?), TypeInfoPropertyName = "NullableOpenAIResponsesAnnotation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseOutputTextType?), TypeInfoPropertyName = "NullableResponseOutputTextType2")] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -13989,6 +14565,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -14299,223 +14879,43 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), @@ -14609,10 +15009,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), @@ -14625,10 +15021,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), @@ -14661,6 +15053,18 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), @@ -14697,9 +15101,9 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), @@ -14737,37 +15141,269 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), @@ -15061,13 +15697,17 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -15141,9 +15781,9 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -15177,6 +15817,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -15285,6 +15933,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -15349,10 +16001,22 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -15365,6 +16029,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -15405,6 +16073,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -15441,6 +16113,26 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), @@ -15477,9 +16169,13 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -15497,10 +16193,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -15521,6 +16213,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -15589,10 +16289,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -15777,6 +16473,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -15857,10 +16557,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -15869,6 +16565,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -15913,21 +16613,21 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -16153,17 +16853,17 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -16393,18 +17093,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -16603,15 +17291,41 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -16641,24 +17355,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -16705,10 +17401,22 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -16733,6 +17441,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -16799,7 +17509,9 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -16817,7 +17529,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -16825,8 +17537,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -16841,125 +17551,155 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization?), TypeInfoPropertyName = "NullableQuantization2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSort?), TypeInfoPropertyName = "NullableProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy?), TypeInfoPropertyName = "NullableProviderSortConfigBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition?), TypeInfoPropertyName = "NullableProviderSortConfigPartition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfProviderSortConfigByObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfProviderSortConfigPartitionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesSort?), TypeInfoPropertyName = "NullableProviderPreferencesSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfProviderPreferencesDataCollectionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort?), TypeInfoPropertyName = "NullableReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity?), TypeInfoPropertyName = "NullableReasoningSummaryVerbosity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestServiceTier?), TypeInfoPropertyName = "NullableResponsesRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenFinishReasonIsType?), TypeInfoPropertyName = "NullableStopServerToolsWhenFinishReasonIsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenHasToolCallType?), TypeInfoPropertyName = "NullableStopServerToolsWhenHasToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxCostType?), TypeInfoPropertyName = "NullableStopServerToolsWhenMaxCostType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxTokensUsedType?), TypeInfoPropertyName = "NullableStopServerToolsWhenMaxTokensUsedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenStepCountIsType?), TypeInfoPropertyName = "NullableStopServerToolsWhenStepCountIsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenCondition?), TypeInfoPropertyName = "NullableStopServerToolsWhenCondition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType?), TypeInfoPropertyName = "NullableStopServerToolsWhenConditionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfigType?), TypeInfoPropertyName = "NullableFormatTextConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfigType?), TypeInfoPropertyName = "NullableFormatJsonObjectConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfigType?), TypeInfoPropertyName = "NullableFormatJsonSchemaConfigType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Formats?), TypeInfoPropertyName = "NullableFormats2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfigVerbosity?), TypeInfoPropertyName = "NullableTextExtendedConfigVerbosity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfTextExtendedConfigVerbosityObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice0?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice1?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice2?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode0?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode1?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType?), TypeInfoPropertyName = "NullableToolChoiceAllowedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf7Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice?), TypeInfoPropertyName = "NullableOpenAIResponsesToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableResponsesRequestToolsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesRefusalContentType?), TypeInfoPropertyName = "NullableOpenAiResponsesRefusalContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items?), TypeInfoPropertyName = "NullableInputsOneOf1ItemsOneOf7ContentOneOf0Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7Content?), TypeInfoPropertyName = "NullableInputsOneOf1ItemsOneOf7Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfInputsOneOf1ItemsOneOf7ContentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus0?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus1?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus2?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemStatus?), TypeInfoPropertyName = "NullableOutputFunctionCallItemStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFunctionCallItemType?), TypeInfoPropertyName = "NullableOutputFunctionCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchSourceType?), TypeInfoPropertyName = "NullableWebSearchSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemActionOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemAction?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchStatus?), TypeInfoPropertyName = "NullableWebSearchStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchCallItemType?), TypeInfoPropertyName = "NullableOutputWebSearchCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputFileSearchCallItemType?), TypeInfoPropertyName = "NullableOutputFileSearchCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationStatus?), TypeInfoPropertyName = "NullableImageGenerationStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputImageGenerationCallItemType?), TypeInfoPropertyName = "NullableOutputImageGenerationCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemOutputsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputCodeInterpreterCallItemType?), TypeInfoPropertyName = "NullableOutputCodeInterpreterCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus?), TypeInfoPropertyName = "NullableOutputItemsDiscriminatorMappingComputerCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemActionSourcesItemsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemType?), TypeInfoPropertyName = "NullableOutputWebSearchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemCommand?), TypeInfoPropertyName = "NullableOutputTextEditorServerToolItemCommand2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputTextEditorServerToolItemType?), TypeInfoPropertyName = "NullableOutputTextEditorServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebFetchServerToolItemType?), TypeInfoPropertyName = "NullableOutputWebFetchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemType?), TypeInfoPropertyName = "NullableOutputToolSearchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemAction?), TypeInfoPropertyName = "NullableOutputMemoryServerToolItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMemoryServerToolItemType?), TypeInfoPropertyName = "NullableOutputMemoryServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMcpServerToolItemType?), TypeInfoPropertyName = "NullableOutputMcpServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSearchModelsServerToolItemType?), TypeInfoPropertyName = "NullableOutputSearchModelsServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputSubagentServerToolItemType?), TypeInfoPropertyName = "NullableOutputSubagentServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemActionType?), TypeInfoPropertyName = "NullableLocalShellCallItemActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallItemType?), TypeInfoPropertyName = "NullableLocalShellCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LocalShellCallOutputItemType?), TypeInfoPropertyName = "NullableLocalShellCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallItemType?), TypeInfoPropertyName = "NullableShellCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellCallOutputItemType?), TypeInfoPropertyName = "NullableShellCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpListToolsItemType?), TypeInfoPropertyName = "NullableMcpListToolsItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalRequestItemType?), TypeInfoPropertyName = "NullableMcpApprovalRequestItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalResponseItemType?), TypeInfoPropertyName = "NullableMcpApprovalResponseItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpCallItemType?), TypeInfoPropertyName = "NullableMcpCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallItemType?), TypeInfoPropertyName = "NullableCustomToolCallItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemOutput?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemOutput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallOutputItemType?), TypeInfoPropertyName = "NullableCustomToolCallOutputItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CompactionItemType?), TypeInfoPropertyName = "NullableCompactionItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompactionItemType?), TypeInfoPropertyName = "NullableContextCompactionItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ItemReferenceItemType?), TypeInfoPropertyName = "NullableItemReferenceItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemRole?), TypeInfoPropertyName = "NullableAdditionalToolsItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableAdditionalToolsItemToolsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngineEnum?), TypeInfoPropertyName = "NullableWebSearchEngineEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchContextSizeEnum?), TypeInfoPropertyName = "NullableSearchContextSizeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchServerToolType?), TypeInfoPropertyName = "NullablePreviewWebSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocationType?), TypeInfoPropertyName = "NullablePreviewWebSearchUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation2?), TypeInfoPropertyName = "NullablePreviewWebSearchUserLocation22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerToolType?), TypeInfoPropertyName = "NullablePreview20250311WebSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyWebSearchServerToolType?), TypeInfoPropertyName = "NullableLegacyWebSearchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchUserLocationType?), TypeInfoPropertyName = "NullableWebSearchUserLocationType2")] @@ -16971,11 +17711,11 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerToolFilters?), TypeInfoPropertyName = "NullableFileSearchServerToolFilters2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerToolRankingOptionsRanker?), TypeInfoPropertyName = "NullableFileSearchServerToolRankingOptionsRanker2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileSearchServerToolType?), TypeInfoPropertyName = "NullableFileSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfFileSearchServerToolFiltersObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ComputerUseServerToolEnvironment?), TypeInfoPropertyName = "NullableComputerUseServerToolEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ComputerUseServerToolType?), TypeInfoPropertyName = "NullableComputerUseServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit?), TypeInfoPropertyName = "NullableCodeInterpreterServerToolContainerOneOf1MemoryLimit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type?), TypeInfoPropertyName = "NullableCodeInterpreterServerToolContainerOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfCodeInterpreterServerToolContainerOneOf1MemoryLimitObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolContainer?), TypeInfoPropertyName = "NullableCodeInterpreterServerToolContainer2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodeInterpreterServerToolType?), TypeInfoPropertyName = "NullableCodeInterpreterServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolAllowedTools?), TypeInfoPropertyName = "NullableMcpServerToolAllowedTools2")] @@ -16984,15 +17724,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolRequireApproval2?), TypeInfoPropertyName = "NullableMcpServerToolRequireApproval22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolRequireApproval?), TypeInfoPropertyName = "NullableMcpServerToolRequireApproval2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpServerToolType?), TypeInfoPropertyName = "NullableMcpServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMcpServerToolAllowedToolsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMcpServerToolRequireApprovalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolBackground?), TypeInfoPropertyName = "NullableImageGenerationServerToolBackground2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolInputFidelity?), TypeInfoPropertyName = "NullableImageGenerationServerToolInputFidelity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolModel?), TypeInfoPropertyName = "NullableImageGenerationServerToolModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolModeration?), TypeInfoPropertyName = "NullableImageGenerationServerToolModeration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOutputFormat?), TypeInfoPropertyName = "NullableImageGenerationServerToolOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolQuality?), TypeInfoPropertyName = "NullableImageGenerationServerToolQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolSize?), TypeInfoPropertyName = "NullableImageGenerationServerToolSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolType?), TypeInfoPropertyName = "NullableImageGenerationServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfImageGenerationServerToolInputFidelityObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CodexLocalShellToolType?), TypeInfoPropertyName = "NullableCodexLocalShellToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolType?), TypeInfoPropertyName = "NullableShellServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApplyPatchServerToolType?), TypeInfoPropertyName = "NullableApplyPatchServerToolType2")] @@ -17001,6 +17740,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolFormatOneOf1Type?), TypeInfoPropertyName = "NullableCustomToolFormatOneOf1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolFormat?), TypeInfoPropertyName = "NullableCustomToolFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolType?), TypeInfoPropertyName = "NullableCustomToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolAllowedCallersItems?), TypeInfoPropertyName = "NullableNamespaceFunctionToolAllowedCallersItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType?), TypeInfoPropertyName = "NullableNamespaceFunctionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolToolsItems?), TypeInfoPropertyName = "NullableNamespaceToolToolsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType?), TypeInfoPropertyName = "NullableNamespaceToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdvisorReasoningEffort?), TypeInfoPropertyName = "NullableAdvisorReasoningEffort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdvisorServerToolOpenRouterType?), TypeInfoPropertyName = "NullableAdvisorServerToolOpenRouterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SubagentReasoningEffort?), TypeInfoPropertyName = "NullableSubagentReasoningEffort2")] @@ -17010,7 +17753,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoningEffort?), TypeInfoPropertyName = "NullableFusionServerToolConfigReasoningEffort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolOpenRouterType?), TypeInfoPropertyName = "NullableFusionServerToolOpenRouterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouterType?), TypeInfoPropertyName = "NullableImageGenerationServerToolOpenRouterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerToolType?), TypeInfoPropertyName = "NullableChatSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchModelsServerToolOpenRouterType?), TypeInfoPropertyName = "NullableSearchModelsServerToolOpenRouterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchEngineEnum?), TypeInfoPropertyName = "NullableWebFetchEngineEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolType?), TypeInfoPropertyName = "NullableWebFetchServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchQualityLevel?), TypeInfoPropertyName = "NullableSearchQualityLevel2")] @@ -17030,9 +17773,93 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentVariant2Type?), TypeInfoPropertyName = "NullableShellServerToolEnvironmentVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType?), TypeInfoPropertyName = "NullableShellServerToolEnvironmentDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouterType?), TypeInfoPropertyName = "NullableShellServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemToolsItems?), TypeInfoPropertyName = "NullableAdditionalToolsItemToolsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AdditionalToolsItemType?), TypeInfoPropertyName = "NullableAdditionalToolsItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail?), TypeInfoPropertyName = "NullableAgentMessageItemContentItemsOneOf1Detail2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf1Type?), TypeInfoPropertyName = "NullableAgentMessageItemContentItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItemsOneOf2Type?), TypeInfoPropertyName = "NullableAgentMessageItemContentItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemContentItems?), TypeInfoPropertyName = "NullableAgentMessageItemContentItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AgentMessageItemType?), TypeInfoPropertyName = "NullableAgentMessageItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAgentMessageItemAgentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputsOneOf1Items?), TypeInfoPropertyName = "NullableInputsOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Inputs?), TypeInfoPropertyName = "NullableInputs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModalityEnum?), TypeInfoPropertyName = "NullableOutputModalityEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContextCompressionEngine?), TypeInfoPropertyName = "NullableContextCompressionEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine0?), TypeInfoPropertyName = "NullablePdfParserEngine02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PdfParserEngine1?), TypeInfoPropertyName = "NullablePdfParserEngine12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine?), TypeInfoPropertyName = "NullablePDFParserEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine?), TypeInfoPropertyName = "NullableWebSearchEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId?), TypeInfoPropertyName = "NullableWebSearchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginUserLocationType?), TypeInfoPropertyName = "NullableWebSearchPluginUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId?), TypeInfoPropertyName = "NullableWebFetchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItems?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant1Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant2Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant3Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant4Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant5Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant6Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant7Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsVariant8Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfWebSearchPluginUserLocationObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableResponsesRequestPluginsItemsDiscriminatorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StoredPromptTemplateVariables?), TypeInfoPropertyName = "NullableStoredPromptTemplateVariables2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptionsMode?), TypeInfoPropertyName = "NullablePromptCacheOptionsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection?), TypeInfoPropertyName = "NullableProviderPreferencesDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName?), TypeInfoPropertyName = "NullableProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesIgnoreItems?), TypeInfoPropertyName = "NullableProviderPreferencesIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOnlyItems?), TypeInfoPropertyName = "NullableProviderPreferencesOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesOrderItems?), TypeInfoPropertyName = "NullableProviderPreferencesOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency?), TypeInfoPropertyName = "NullablePreferredMaxLatency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput?), TypeInfoPropertyName = "NullablePreferredMinThroughput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization?), TypeInfoPropertyName = "NullableQuantization2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSort?), TypeInfoPropertyName = "NullableProviderSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy?), TypeInfoPropertyName = "NullableProviderSortConfigBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition?), TypeInfoPropertyName = "NullableProviderSortConfigPartition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesSort?), TypeInfoPropertyName = "NullableProviderPreferencesSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfProviderPreferencesSortObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningContext?), TypeInfoPropertyName = "NullableReasoningContext2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort?), TypeInfoPropertyName = "NullableReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningMode?), TypeInfoPropertyName = "NullableReasoningMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity?), TypeInfoPropertyName = "NullableReasoningSummaryVerbosity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestServiceTier?), TypeInfoPropertyName = "NullableResponsesRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenFinishReasonIsType?), TypeInfoPropertyName = "NullableStopServerToolsWhenFinishReasonIsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenHasToolCallType?), TypeInfoPropertyName = "NullableStopServerToolsWhenHasToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxCostType?), TypeInfoPropertyName = "NullableStopServerToolsWhenMaxCostType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenMaxTokensUsedType?), TypeInfoPropertyName = "NullableStopServerToolsWhenMaxTokensUsedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenStepCountIsType?), TypeInfoPropertyName = "NullableStopServerToolsWhenStepCountIsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenCondition?), TypeInfoPropertyName = "NullableStopServerToolsWhenCondition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType?), TypeInfoPropertyName = "NullableStopServerToolsWhenConditionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatTextConfigType?), TypeInfoPropertyName = "NullableFormatTextConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonObjectConfigType?), TypeInfoPropertyName = "NullableFormatJsonObjectConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FormatJsonSchemaConfigType?), TypeInfoPropertyName = "NullableFormatJsonSchemaConfigType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Formats?), TypeInfoPropertyName = "NullableFormats2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfigVerbosity?), TypeInfoPropertyName = "NullableTextExtendedConfigVerbosity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice0?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice1?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoice2?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode0?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode1?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode?), TypeInfoPropertyName = "NullableToolChoiceAllowedMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType?), TypeInfoPropertyName = "NullableToolChoiceAllowedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type?), TypeInfoPropertyName = "NullableOpenAiResponsesToolChoiceOneOf7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice?), TypeInfoPropertyName = "NullableOpenAIResponsesToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableResponsesRequestToolsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems?), TypeInfoPropertyName = "NullableResponsesRequestToolsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesTruncation?), TypeInfoPropertyName = "NullableOpenAIResponsesTruncation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfResponsesRequestServiceTierObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesErrorFieldCode?), TypeInfoPropertyName = "NullableResponsesErrorFieldCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.IncompleteDetailsReason?), TypeInfoPropertyName = "NullableIncompleteDetailsReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items?), TypeInfoPropertyName = "NullableBaseInputsOneOf1ItemsOneOf0ContentOneOf0Items2")] @@ -17051,6 +17878,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3?), TypeInfoPropertyName = "NullableBaseInputsOneOf1ItemsOneOf0Role32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role?), TypeInfoPropertyName = "NullableBaseInputsOneOf1ItemsOneOf0Role2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type?), TypeInfoPropertyName = "NullableBaseInputsOneOf1ItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfBaseInputsOneOf1ItemsOneOf0PhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItems?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type?), TypeInfoPropertyName = "NullableOpenAiResponseInputMessageItemContentItemsVariant2Type2")] @@ -17081,6 +17909,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMessageStatus2?), TypeInfoPropertyName = "NullableOutputMessageStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMessageStatus?), TypeInfoPropertyName = "NullableOutputMessageStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputMessageType?), TypeInfoPropertyName = "NullableOutputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfOutputMessagePhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallType?), TypeInfoPropertyName = "NullableOpenAiResponseCustomToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items?), TypeInfoPropertyName = "NullableOpenAiResponseCustomToolCallOutputOutputOneOf1Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type?), TypeInfoPropertyName = "NullableOpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type2")] @@ -17117,6 +17946,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant1Type?), TypeInfoPropertyName = "NullableOutputItemsVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant3Type?), TypeInfoPropertyName = "NullableOutputItemsVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant4Type?), TypeInfoPropertyName = "NullableOutputItemsVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfOutputMessageItemPhaseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant9Type?), TypeInfoPropertyName = "NullableOutputItemsVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant10Type?), TypeInfoPropertyName = "NullableOutputItemsVariant10Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant11Type?), TypeInfoPropertyName = "NullableOutputItemsVariant11Type2")] @@ -17126,8 +17956,9 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant16Type?), TypeInfoPropertyName = "NullableOutputItemsVariant16Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant17Type?), TypeInfoPropertyName = "NullableOutputItemsVariant17Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant18Type?), TypeInfoPropertyName = "NullableOutputItemsVariant18Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsVariant19Type?), TypeInfoPropertyName = "NullableOutputItemsVariant19Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItemsDiscriminatorType?), TypeInfoPropertyName = "NullableOutputItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier2?), TypeInfoPropertyName = "NullableServiceTier22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier?), TypeInfoPropertyName = "NullableServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesResponseStatus?), TypeInfoPropertyName = "NullableOpenAIResponsesResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableOpenResponsesResultToolsItemsOneOf0Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultToolsItems?), TypeInfoPropertyName = "NullableOpenResponsesResultToolsItems2")] @@ -17135,13 +17966,17 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiErrorType?), TypeInfoPropertyName = "NullableApiErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PipelineStageType?), TypeInfoPropertyName = "NullablePipelineStageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RoutingStrategy?), TypeInfoPropertyName = "NullableRoutingStrategy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfServiceTier2Object2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod?), TypeInfoPropertyName = "NullableAuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod?), TypeInfoPropertyName = "NullableAuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType?), TypeInfoPropertyName = "NullableAuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestAspectRatio?), TypeInfoPropertyName = "NullableImageGenerationRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestBackground?), TypeInfoPropertyName = "NullableImageGenerationRequestBackground2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestOutputFormat?), TypeInfoPropertyName = "NullableImageGenerationRequestOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems?), TypeInfoPropertyName = "NullableImageGenerationProviderPreferencesIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems?), TypeInfoPropertyName = "NullableImageGenerationProviderPreferencesOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesOrderItems?), TypeInfoPropertyName = "NullableImageGenerationProviderPreferencesOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferencesSort?), TypeInfoPropertyName = "NullableImageGenerationProviderPreferencesSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfImageGenerationProviderPreferencesSortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestQuality?), TypeInfoPropertyName = "NullableImageGenerationRequestQuality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestResolution?), TypeInfoPropertyName = "NullableImageGenerationRequestResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCompactionUsageIterationType?), TypeInfoPropertyName = "NullableAnthropicCompactionUsageIterationType2")] @@ -17153,7 +17988,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfImageGenerationUsagePromptTokensDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfImageGenerationUsageServerToolUseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality?), TypeInfoPropertyName = "NullableInputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageInputModality?), TypeInfoPropertyName = "NullableImageInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageOutputModality?), TypeInfoPropertyName = "NullableImageOutputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EnumCapabilityType?), TypeInfoPropertyName = "NullableEnumCapabilityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RangeCapabilityType?), TypeInfoPropertyName = "NullableRangeCapabilityType2")] @@ -17163,10 +17998,15 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntryBillable?), TypeInfoPropertyName = "NullableImagePricingEntryBillable2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntryUnit?), TypeInfoPropertyName = "NullableImagePricingEntryUnit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SpeechRequestResponseFormat?), TypeInfoPropertyName = "NullableSpeechRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SttRequestResponseFormat?), TypeInfoPropertyName = "NullableSttRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.STTTimestampGranularity?), TypeInfoPropertyName = "NullableSTTTimestampGranularity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName?), TypeInfoPropertyName = "NullableAnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat?), TypeInfoPropertyName = "NullableAnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName?), TypeInfoPropertyName = "NullableAnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType?), TypeInfoPropertyName = "NullableAnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items?), TypeInfoPropertyName = "NullableAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue?), TypeInfoPropertyName = "NullableAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items?), TypeInfoPropertyName = "NullableAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue?), TypeInfoPropertyName = "NullableAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection?), TypeInfoPropertyName = "NullableAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection2")] @@ -17180,10 +18020,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorSource?), TypeInfoPropertyName = "NullableUnifiedBenchmarksResponseDataItemsDiscriminatorSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksMetaSource?), TypeInfoPropertyName = "NullableUnifiedBenchmarksMetaSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UnifiedBenchmarksMetaVersion?), TypeInfoPropertyName = "NullableUnifiedBenchmarksMetaVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfUnifiedBenchmarksMetaSourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ByokGetParametersProvider?), TypeInfoPropertyName = "NullableByokGetParametersProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKProviderSlug?), TypeInfoPropertyName = "NullableBYOKProviderSlug2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail?), TypeInfoPropertyName = "NullableChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyChatContentVideoType?), TypeInfoPropertyName = "NullableLegacyChatContentVideoType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentCacheControlType?), TypeInfoPropertyName = "NullableChatContentCacheControlType2")] @@ -17199,6 +18037,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant1Type?), TypeInfoPropertyName = "NullableReasoningDetailUnionVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant2Type?), TypeInfoPropertyName = "NullableReasoningDetailUnionVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant3Type?), TypeInfoPropertyName = "NullableReasoningDetailUnionVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionVariant4Type?), TypeInfoPropertyName = "NullableReasoningDetailUnionVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDetailUnionDiscriminatorType?), TypeInfoPropertyName = "NullableReasoningDetailUnionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolCallType?), TypeInfoPropertyName = "NullableChatToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent?), TypeInfoPropertyName = "NullableChatMessagesDiscriminatorMappingDeveloperContent2")] @@ -17207,216 +18046,97 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolMessageContent?), TypeInfoPropertyName = "NullableChatToolMessageContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolMessageRole?), TypeInfoPropertyName = "NullableChatToolMessageRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUserMessageContent?), TypeInfoPropertyName = "NullableChatUserMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUserMessageRole?), TypeInfoPropertyName = "NullableChatUserMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessages?), TypeInfoPropertyName = "NullableChatMessages2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant1Role?), TypeInfoPropertyName = "NullableChatMessagesVariant1Role2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant2Role?), TypeInfoPropertyName = "NullableChatMessagesVariant2Role2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminatorRole?), TypeInfoPropertyName = "NullableChatMessagesDiscriminatorRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestModalitiesItems?), TypeInfoPropertyName = "NullableChatRequestModalitiesItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItems?), TypeInfoPropertyName = "NullableChatRequestPluginsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant1Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant2Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant3Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant4Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant5Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant6Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant7Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoningEffort?), TypeInfoPropertyName = "NullableChatRequestReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatReasoningSummaryVerbosityEnum?), TypeInfoPropertyName = "NullableChatReasoningSummaryVerbosityEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatRequestReasoningEffortObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormat?), TypeInfoPropertyName = "NullableChatRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminatorType?), TypeInfoPropertyName = "NullableChatRequestResponseFormatDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestServiceTier?), TypeInfoPropertyName = "NullableChatRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestStop?), TypeInfoPropertyName = "NullableChatRequestStop2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice0?), TypeInfoPropertyName = "NullableChatToolChoice02")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice1?), TypeInfoPropertyName = "NullableChatToolChoice12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice2?), TypeInfoPropertyName = "NullableChatToolChoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceType?), TypeInfoPropertyName = "NullableChatNamedToolChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice?), TypeInfoPropertyName = "NullableChatToolChoice2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Type?), TypeInfoPropertyName = "NullableChatFunctionToolOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerToolType?), TypeInfoPropertyName = "NullableOpenRouterWebSearchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthandType?), TypeInfoPropertyName = "NullableChatWebSearchShorthandType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool?), TypeInfoPropertyName = "NullableChatFunctionTool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatRequestServiceTierObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFinishReasonEnum?), TypeInfoPropertyName = "NullableChatFinishReasonEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResultObject?), TypeInfoPropertyName = "NullableChatResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatUsageCompletionTokensDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatUsagePromptTokensDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatUsageServerToolUseDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ClassificationsTaskGetParametersWindow?), TypeInfoPropertyName = "NullableClassificationsTaskGetParametersWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersCategory?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersSubcategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSort?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion?), TypeInfoPropertyName = "NullableRankingsDailyMetaVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudioType?), TypeInfoPropertyName = "NullableContentPartInputAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideoType?), TypeInfoPropertyName = "NullableContentPartInputVideoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFileType?), TypeInfoPropertyName = "NullableContentPartInputFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfEmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelArchitectureInstructType?), TypeInfoPropertyName = "NullableModelArchitectureInstructType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModality?), TypeInfoPropertyName = "NullableOutputModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelGroup?), TypeInfoPropertyName = "NullableModelGroup2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfModelArchitectureInstructTypeObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Parameter?), TypeInfoPropertyName = "NullableParameter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointStatus?), TypeInfoPropertyName = "NullableEndpointStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InstructType2?), TypeInfoPropertyName = "NullableInstructType22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfInstructType2Object2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileMetadataType?), TypeInfoPropertyName = "NullableFileMetadataType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileDeleteResponseType?), TypeInfoPropertyName = "NullableFileDeleteResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType?), TypeInfoPropertyName = "NullableGenerationResponseDataApiType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion?), TypeInfoPropertyName = "NullableGenerationResponseDataDataRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName?), TypeInfoPropertyName = "NullableProviderResponseProviderName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfGenerationResponseDataApiTypeObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput?), TypeInfoPropertyName = "NullableGenerationContentDataInput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinAction?), TypeInfoPropertyName = "NullableContentFilterBuiltinAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptInjectionScanScope?), TypeInfoPropertyName = "NullablePromptInjectionScanScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinSlug?), TypeInfoPropertyName = "NullableContentFilterBuiltinSlug2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterAction?), TypeInfoPropertyName = "NullableContentFilterAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GuardrailInterval?), TypeInfoPropertyName = "NullableGuardrailInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset?), TypeInfoPropertyName = "NullableKeysPostRequestBodyContentApplicationJsonSchemaLimitReset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset?), TypeInfoPropertyName = "NullableKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicInputTokensClearAtLeastType?), TypeInfoPropertyName = "NullableAnthropicInputTokensClearAtLeastType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolUsesKeepType?), TypeInfoPropertyName = "NullableAnthropicToolUsesKeepType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0Trigger2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingTurnsType?), TypeInfoPropertyName = "NullableAnthropicThinkingTurnsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Keep22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Keep2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf2TriggerType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItems?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamType?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageMimeType?), TypeInfoPropertyName = "NullableAnthropicImageMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlImageSourceType?), TypeInfoPropertyName = "NullableAnthropicUrlImageSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSource?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSourceVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSourceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamType?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceMediaType?), TypeInfoPropertyName = "NullableAnthropicBase64PdfSourceMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceType?), TypeInfoPropertyName = "NullableAnthropicBase64PdfSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceMediaType?), TypeInfoPropertyName = "NullableAnthropicPlainTextSourceMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceType?), TypeInfoPropertyName = "NullableAnthropicPlainTextSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlPdfSourceType?), TypeInfoPropertyName = "NullableAnthropicUrlPdfSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicFileDocumentSourceType?), TypeInfoPropertyName = "NullableAnthropicFileDocumentSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSource?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamType?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAnthropicDocumentBlockParamCitationsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamType?), TypeInfoPropertyName = "NullableAnthropicSearchResultBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf7Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResultBlockParamType?), TypeInfoPropertyName = "NullableAnthropicWebSearchResultBlockParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8Content2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf10Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesAdvisorToolResultBlockType?), TypeInfoPropertyName = "NullableMessagesAdvisorToolResultBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1Items?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1Items2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContent?), TypeInfoPropertyName = "NullableMessagesMessageParamContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamRole?), TypeInfoPropertyName = "NullableMessagesMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigEffort?), TypeInfoPropertyName = "NullableMessagesOutputConfigEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigFormatType?), TypeInfoPropertyName = "NullableMessagesOutputConfigFormatType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigTaskBudgetType?), TypeInfoPropertyName = "NullableMessagesOutputConfigTaskBudgetType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesOutputConfigEffortObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesOutputConfigFormatObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesOutputConfigTaskBudgetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItems?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant1Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant2Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant3Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant4Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant5Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant6Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant7Id2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSystem?), TypeInfoPropertyName = "NullableMessagesRequestSystem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingDisplay?), TypeInfoPropertyName = "NullableAnthropicThinkingDisplay2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinking?), TypeInfoPropertyName = "NullableMessagesRequestThinking2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf3Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoice?), TypeInfoPropertyName = "NullableMessagesRequestToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf1Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf1Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf2Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf2Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf3Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf3Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf3Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolUserLocationType?), TypeInfoPropertyName = "NullableAnthropicWebSearchToolUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAllowedCallersItems?), TypeInfoPropertyName = "NullableAnthropicAllowedCallersItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf4Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf5CachingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf5Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems?), TypeInfoPropertyName = "NullableMessagesRequestToolsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesRequestContextManagementObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionOutputType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionToolResultErrorErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionToolResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionContent?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionOutputType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServerToolErrorCode?), TypeInfoPropertyName = "NullableAnthropicServerToolErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionToolResultErrorType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionToolResultErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicEncryptedCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicEncryptedCodeExecutionResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContent?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionContentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCaller?), TypeInfoPropertyName = "NullableORAnthropicNullableCaller2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1Type?), TypeInfoPropertyName = "NullableORAnthropicNullableCallerVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2Type?), TypeInfoPropertyName = "NullableORAnthropicNullableCallerVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3Type?), TypeInfoPropertyName = "NullableORAnthropicNullableCallerVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType?), TypeInfoPropertyName = "NullableORAnthropicNullableCallerDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicServerToolUseBlockType?), TypeInfoPropertyName = "NullableOrAnthropicServerToolUseBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitation?), TypeInfoPropertyName = "NullableAnthropicTextCitation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUserMessageRole?), TypeInfoPropertyName = "NullableChatUserMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessages?), TypeInfoPropertyName = "NullableChatMessages2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant1Role?), TypeInfoPropertyName = "NullableChatMessagesVariant1Role2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatMessagesDiscriminatorMappingAssistantContentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesVariant2Role?), TypeInfoPropertyName = "NullableChatMessagesVariant2Role2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatMessagesDiscriminatorRole?), TypeInfoPropertyName = "NullableChatMessagesDiscriminatorRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestModalitiesItems?), TypeInfoPropertyName = "NullableChatRequestModalitiesItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItems?), TypeInfoPropertyName = "NullableChatRequestPluginsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant1Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant2Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant3Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant4Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant5Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant6Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant7Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8Id?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsVariant8Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableChatRequestPluginsItemsDiscriminatorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentTextType?), TypeInfoPropertyName = "NullablePredictionContentTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContent?), TypeInfoPropertyName = "NullablePredictionContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionType?), TypeInfoPropertyName = "NullablePredictionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestReasoningEffort?), TypeInfoPropertyName = "NullableChatRequestReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatReasoningSummaryVerbosityEnum?), TypeInfoPropertyName = "NullableChatReasoningSummaryVerbosityEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormat?), TypeInfoPropertyName = "NullableChatRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant1Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant2Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant3Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant4Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatVariant5Type?), TypeInfoPropertyName = "NullableChatRequestResponseFormatVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestResponseFormatDiscriminatorType?), TypeInfoPropertyName = "NullableChatRequestResponseFormatDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestServiceTier?), TypeInfoPropertyName = "NullableChatRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestStop?), TypeInfoPropertyName = "NullableChatRequestStop2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice0?), TypeInfoPropertyName = "NullableChatToolChoice02")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice1?), TypeInfoPropertyName = "NullableChatToolChoice12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice2?), TypeInfoPropertyName = "NullableChatToolChoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatNamedToolChoiceType?), TypeInfoPropertyName = "NullableChatNamedToolChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatToolChoice?), TypeInfoPropertyName = "NullableChatToolChoice2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionToolOneOf0Type?), TypeInfoPropertyName = "NullableChatFunctionToolOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerToolType?), TypeInfoPropertyName = "NullableChatSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterWebSearchServerToolType?), TypeInfoPropertyName = "NullableOpenRouterWebSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatWebSearchShorthandType?), TypeInfoPropertyName = "NullableChatWebSearchShorthandType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFunctionTool?), TypeInfoPropertyName = "NullableChatFunctionTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatRequestStopObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFinishReasonEnum?), TypeInfoPropertyName = "NullableChatFinishReasonEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResultObject?), TypeInfoPropertyName = "NullableChatResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatUsageCompletionTokensDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfChatUsagePromptTokensDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ClassificationsTaskGetParametersWindow?), TypeInfoPropertyName = "NullableClassificationsTaskGetParametersWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersCategory?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersSubcategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSort?), TypeInfoPropertyName = "NullableDatasetsAppRankingsGetParametersSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion?), TypeInfoPropertyName = "NullableRankingsDailyMetaVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod?), TypeInfoPropertyName = "NullableDatasetsRankingsDailyGetParametersPeriod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersModality?), TypeInfoPropertyName = "NullableDatasetsRankingsDailyGetParametersModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket?), TypeInfoPropertyName = "NullableDatasetsRankingsDailyGetParametersContextBucket2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersCategory?), TypeInfoPropertyName = "NullableDatasetsRankingsDailyGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType?), TypeInfoPropertyName = "NullableDatasetsRankingsDailyGetParametersLanguageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudioType?), TypeInfoPropertyName = "NullableContentPartInputAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideoType?), TypeInfoPropertyName = "NullableContentPartInputVideoType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFileType?), TypeInfoPropertyName = "NullableContentPartInputFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort?), TypeInfoPropertyName = "NullableEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject?), TypeInfoPropertyName = "NullableEmbeddingsPostResponsesContentApplicationJsonSchemaObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality?), TypeInfoPropertyName = "NullableInputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InstructType?), TypeInfoPropertyName = "NullableInstructType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModality?), TypeInfoPropertyName = "NullableOutputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelGroup?), TypeInfoPropertyName = "NullableModelGroup2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Parameter?), TypeInfoPropertyName = "NullableParameter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointStatus?), TypeInfoPropertyName = "NullableEndpointStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfQuantizationObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileMetadataType?), TypeInfoPropertyName = "NullableFileMetadataType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileDeleteResponseType?), TypeInfoPropertyName = "NullableFileDeleteResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType?), TypeInfoPropertyName = "NullableGenerationResponseDataApiType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion?), TypeInfoPropertyName = "NullableGenerationResponseDataDataRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName?), TypeInfoPropertyName = "NullableProviderResponseProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseRoutedServiceTier?), TypeInfoPropertyName = "NullableProviderResponseRoutedServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput?), TypeInfoPropertyName = "NullableGenerationContentDataInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SubmitGenerationFeedbackRequestCategory?), TypeInfoPropertyName = "NullableSubmitGenerationFeedbackRequestCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinAction?), TypeInfoPropertyName = "NullableContentFilterBuiltinAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptInjectionScanScope?), TypeInfoPropertyName = "NullablePromptInjectionScanScope2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterBuiltinSlug?), TypeInfoPropertyName = "NullableContentFilterBuiltinSlug2")] internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -17472,6 +18192,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter), typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter), @@ -17782,223 +18506,43 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), - - typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter), - typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter), @@ -18092,10 +18636,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter), @@ -18108,10 +18648,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter), @@ -18144,6 +18680,18 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter), @@ -18180,9 +18728,9 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter), @@ -18220,37 +18768,269 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter), - typeof(global::OpenRouter.JsonConverters.BashServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEngineNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter), @@ -18544,13 +19324,17 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2JsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter), - typeof(global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter), @@ -18624,9 +19408,9 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), @@ -18660,6 +19444,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), @@ -18768,6 +19560,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter), @@ -18832,10 +19628,22 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter), @@ -18848,6 +19656,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter), @@ -18888,6 +19700,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter), @@ -18924,6 +19740,26 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter), @@ -18960,9 +19796,13 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputModalityJsonConverter), @@ -18980,10 +19820,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InstructType2JsonConverter), - - typeof(global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter), @@ -19004,6 +19840,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter), typeof(global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter), @@ -19072,10 +19916,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter), @@ -19260,6 +20100,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), @@ -19340,10 +20184,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter), @@ -19352,6 +20192,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter), @@ -19396,21 +20240,21 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter), @@ -19636,17 +20480,17 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), @@ -19876,18 +20720,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), - - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -20086,15 +20918,41 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter), + typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.InputsJsonConverter), typeof(global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter), + typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter), typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter), @@ -20124,24 +20982,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter), - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter), - - typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter), - - typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter), - - typeof(global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter), - - typeof(global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter), - - typeof(global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter), @@ -20188,10 +21028,22 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -20216,6 +21068,8 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter), @@ -20282,7 +21136,9 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter), - typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter), @@ -20300,7 +21156,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -20308,8 +21164,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), - typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter), @@ -20324,82 +21178,223 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::OpenRouter.JsonConverters.InputReferenceJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), - typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentFilterAction?), TypeInfoPropertyName = "NullableContentFilterAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GuardrailInterval?), TypeInfoPropertyName = "NullableGuardrailInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset?), TypeInfoPropertyName = "NullableKeysPostRequestBodyContentApplicationJsonSchemaLimitReset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset?), TypeInfoPropertyName = "NullableKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicInputTokensClearAtLeastType?), TypeInfoPropertyName = "NullableAnthropicInputTokensClearAtLeastType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicToolUsesKeepType?), TypeInfoPropertyName = "NullableAnthropicToolUsesKeepType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0Trigger2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingTurnsType?), TypeInfoPropertyName = "NullableAnthropicThinkingTurnsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Keep22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Keep2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesRequestContextManagementEditsItemsOneOf2TriggerObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestContextManagementEditsItems?), TypeInfoPropertyName = "NullableMessagesRequestContextManagementEditsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItems?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamCitationsItemsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextBlockParamType?), TypeInfoPropertyName = "NullableAnthropicTextBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageMimeType?), TypeInfoPropertyName = "NullableAnthropicImageMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlImageSourceType?), TypeInfoPropertyName = "NullableAnthropicUrlImageSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSource?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSourceVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamSourceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamType?), TypeInfoPropertyName = "NullableAnthropicImageBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceMediaType?), TypeInfoPropertyName = "NullableAnthropicBase64PdfSourceMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceType?), TypeInfoPropertyName = "NullableAnthropicBase64PdfSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceMediaType?), TypeInfoPropertyName = "NullableAnthropicPlainTextSourceMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceType?), TypeInfoPropertyName = "NullableAnthropicPlainTextSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSourceOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUrlPdfSourceType?), TypeInfoPropertyName = "NullableAnthropicUrlPdfSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicFileDocumentSourceType?), TypeInfoPropertyName = "NullableAnthropicFileDocumentSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSource?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamType?), TypeInfoPropertyName = "NullableAnthropicDocumentBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAnthropicDocumentBlockParamCitationsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSearchResultBlockParamType?), TypeInfoPropertyName = "NullableAnthropicSearchResultBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchResultBlockParamType?), TypeInfoPropertyName = "NullableAnthropicWebSearchResultBlockParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8Content2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1ItemsOneOf10Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesAdvisorToolResultBlockType?), TypeInfoPropertyName = "NullableMessagesAdvisorToolResultBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContentOneOf1Items?), TypeInfoPropertyName = "NullableMessagesMessageParamContentOneOf1Items2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamContent?), TypeInfoPropertyName = "NullableMessagesMessageParamContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesMessageParamRole?), TypeInfoPropertyName = "NullableMessagesMessageParamRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigEffort?), TypeInfoPropertyName = "NullableMessagesOutputConfigEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigFormatType?), TypeInfoPropertyName = "NullableMessagesOutputConfigFormatType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesOutputConfigTaskBudgetType?), TypeInfoPropertyName = "NullableMessagesOutputConfigTaskBudgetType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesOutputConfigFormatObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesOutputConfigTaskBudgetObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItems?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant1Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant2Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant3Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant4Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant5Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant6Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant7Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8Id?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsVariant8Id2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId?), TypeInfoPropertyName = "NullableMessagesRequestPluginsItemsDiscriminatorId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSystem?), TypeInfoPropertyName = "NullableMessagesRequestSystem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingDisplay?), TypeInfoPropertyName = "NullableAnthropicThinkingDisplay2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestThinkingOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinking?), TypeInfoPropertyName = "NullableMessagesRequestThinking2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceOneOf3Type?), TypeInfoPropertyName = "NullableMessagesRequestToolChoiceOneOf3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoice?), TypeInfoPropertyName = "NullableMessagesRequestToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf0Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf1Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf1Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf1Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf2Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf2Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf2Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf3Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf3Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf3Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicWebSearchToolUserLocationType?), TypeInfoPropertyName = "NullableAnthropicWebSearchToolUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAllowedCallersItems?), TypeInfoPropertyName = "NullableAnthropicAllowedCallersItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf4Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf4Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Name?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf5Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Type?), TypeInfoPropertyName = "NullableMessagesRequestToolsItemsOneOf5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAnthropicCacheControlDirectiveObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType?), TypeInfoPropertyName = "NullableMessagesSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolsItems?), TypeInfoPropertyName = "NullableMessagesRequestToolsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfMessagesRequestContextManagementObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionOutputType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionToolResultErrorErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionToolResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionContent?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicBashCodeExecutionContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionOutputType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServerToolErrorCode?), TypeInfoPropertyName = "NullableAnthropicServerToolErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionToolResultErrorType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionToolResultErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicEncryptedCodeExecutionResultType?), TypeInfoPropertyName = "NullableAnthropicEncryptedCodeExecutionResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContent?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType?), TypeInfoPropertyName = "NullableAnthropicCodeExecutionContentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCaller?), TypeInfoPropertyName = "NullableOrAnthropicNullableCaller2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1Type?), TypeInfoPropertyName = "NullableOrAnthropicNullableCallerVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2Type?), TypeInfoPropertyName = "NullableOrAnthropicNullableCallerVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3Type?), TypeInfoPropertyName = "NullableOrAnthropicNullableCallerVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType?), TypeInfoPropertyName = "NullableOrAnthropicNullableCallerDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicNullableCaller2?), TypeInfoPropertyName = "NullableORAnthropicNullableCaller22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrAnthropicServerToolUseBlockType?), TypeInfoPropertyName = "NullableOrAnthropicServerToolUseBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitation?), TypeInfoPropertyName = "NullableAnthropicTextCitation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant1Type?), TypeInfoPropertyName = "NullableAnthropicTextCitationVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant2Type?), TypeInfoPropertyName = "NullableAnthropicTextCitationVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicTextCitationVariant3Type?), TypeInfoPropertyName = "NullableAnthropicTextCitationVariant3Type2")] @@ -20453,7 +21448,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultRole?), TypeInfoPropertyName = "NullableMessagesResultRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicRefusalStopDetailsCategory?), TypeInfoPropertyName = "NullableAnthropicRefusalStopDetailsCategory2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicRefusalStopDetailsType?), TypeInfoPropertyName = "NullableAnthropicRefusalStopDetailsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAnthropicRefusalStopDetailsCategoryObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicStopReason?), TypeInfoPropertyName = "NullableORAnthropicStopReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultType?), TypeInfoPropertyName = "NullableMessagesResultType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServiceTier?), TypeInfoPropertyName = "NullableAnthropicServiceTier2")] @@ -20464,10 +21458,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersDistillable?), TypeInfoPropertyName = "NullableModelsGetParametersDistillable2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersZdr?), TypeInfoPropertyName = "NullableModelsGetParametersZdr2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersRegion?), TypeInfoPropertyName = "NullableModelsGetParametersRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic?), TypeInfoPropertyName = "NullableObservabilityFilterRulesConfigGroupsItemsLogic2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField?), TypeInfoPropertyName = "NullableObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator?), TypeInfoPropertyName = "NullableObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue?), TypeInfoPropertyName = "NullableObservabilityFilterRulesConfigGroupsItemsRulesItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupLogic?), TypeInfoPropertyName = "NullableObservabilityFilterRuleGroupLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField?), TypeInfoPropertyName = "NullableObservabilityFilterRuleGroupRulesItemsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator?), TypeInfoPropertyName = "NullableObservabilityFilterRuleGroupRulesItemsOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue?), TypeInfoPropertyName = "NullableObservabilityFilterRuleGroupRulesItemsValue2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestination?), TypeInfoPropertyName = "NullableObservabilityDestination2")] @@ -20528,10 +21522,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type?), TypeInfoPropertyName = "NullableGetObservabilityDestinationResponseDataVariant16Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type?), TypeInfoPropertyName = "NullableGetObservabilityDestinationResponseDataVariant17Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType?), TypeInfoPropertyName = "NullableGetObservabilityDestinationResponseDataDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseData?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationResponseDataVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type?), TypeInfoPropertyName = "NullableUpdateObservabilityDestinationResponseDataVariant2Type2")] @@ -20555,14 +21545,13 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetStatus?), TypeInfoPropertyName = "NullablePresetStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems?), TypeInfoPropertyName = "NullableProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters?), TypeInfoPropertyName = "NullableProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort?), TypeInfoPropertyName = "NullableRerankPostRequestBodyContentApplicationJsonSchemaProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderSortObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestAspectRatio?), TypeInfoPropertyName = "NullableVideoGenerationRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageType?), TypeInfoPropertyName = "NullableFrameImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageFrameType?), TypeInfoPropertyName = "NullableFrameImageFrameType2")] @@ -20578,14 +21567,9 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedResolutionsItems?), TypeInfoPropertyName = "NullableVideoModelSupportedResolutionsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSizesItems?), TypeInfoPropertyName = "NullableVideoModelSupportedSizesItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetResetInterval?), TypeInfoPropertyName = "NullableWorkspaceBudgetResetInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfWorkspaceBudgetResetIntervalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetInterval?), TypeInfoPropertyName = "NullableWorkspaceBudgetInterval2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval?), TypeInfoPropertyName = "NullableUpsertWorkspaceBudgetResponseDataResetInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfUpsertWorkspaceBudgetResponseDataResetIntervalObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole?), TypeInfoPropertyName = "NullableWorkspaceMemberRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfAuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfKeysPostRequestBodyContentApplicationJsonSchemaLimitResetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "NullableOneOfKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetObject2")] [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))] @@ -20612,18 +21596,22 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] + [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>))] [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))] - [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))] @@ -20641,19 +21629,28 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] [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))] [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))] [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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -20663,6 +21660,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] @@ -20683,8 +21681,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] [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))] @@ -20717,11 +21717,9 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] [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))] @@ -20734,7 +21732,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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))] @@ -20816,6 +21813,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningFormatNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PromptCacheBreakpointModeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1DetailNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EasyInputMessageContentOneOf0ItemsOneOf1TypeJsonConverter()); @@ -20982,104 +21981,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolCallOutputItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CompactionItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CompactionItemTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompactionItemTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ItemReferenceItemTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ItemReferenceItemTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderNameJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.QuantizationJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemRoleNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineEnumJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineEnumNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SearchContextSizeEnumJsonConverter()); @@ -21126,16 +22035,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolBackgroundNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolModelNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolModerationNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolOutputFormatNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolQualityNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CodexLocalShellToolTypeJsonConverter()); @@ -21152,6 +22057,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolFormatOneOf1TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceFunctionToolAllowedCallersItemsNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AdvisorReasoningEffortJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AdvisorReasoningEffortNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AdvisorServerToolOpenRouterTypeJsonConverter()); @@ -21170,8 +22081,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.FusionServerToolOpenRouterTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchEngineEnumNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchServerToolTypeJsonConverter()); @@ -21206,6 +22117,122 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ShellServerToolEnvironmentDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ShellServerToolOpenRouterTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityEnumJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityEnumNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ContextCompressionEngineNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine0JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine0NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine1JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PdfParserEngine1NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchEngineNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginIdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebSearchPluginUserLocationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.WebFetchPluginIdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorIdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PromptCacheOptionsModeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderNameJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderNameNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.QuantizationJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.QuantizationNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigByNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderSortConfigPartitionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningContextJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningContextNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningEffortNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningModeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningModeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningSummaryVerbosityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestServiceTierNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenFinishReasonIsTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenHasToolCallTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxCostTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenMaxTokensUsedTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenStepCountIsTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.StopServerToolsWhenConditionDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatTextConfigTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatTextConfigTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FormatJsonSchemaConfigTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice0NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice1NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoice2NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type0NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4Type1NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode0NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedMode1NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf7TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsOneOf0TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesTruncationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesTruncationNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeJsonConverter()); @@ -21352,10 +22379,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant17TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant18TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant18TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsVariant19TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsDiscriminatorTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ServiceTier2JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ServiceTier2NullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ServiceTierJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ServiceTierNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesResponseStatusNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsOneOf0TypeJsonConverter()); @@ -21392,8 +22421,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageInputModalityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageInputModalityNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter()); @@ -21410,6 +22439,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SttRequestResponseFormatNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.STTTimestampGranularityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.STTTimestampGranularityNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormatJsonConverter()); @@ -21464,6 +22497,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant2TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatToolCallTypeJsonConverter()); @@ -21496,14 +22531,22 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant6IdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsDiscriminatorIdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PredictionContentTextTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PredictionTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PredictionTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestReasoningEffortNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatReasoningSummaryVerbosityEnumJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatReasoningSummaryVerbosityEnumNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant3TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant4TypeJsonConverter()); @@ -21524,6 +22567,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ChatNamedToolChoiceTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatFunctionToolOneOf0TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenRouterWebSearchServerToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatWebSearchShorthandTypeJsonConverter()); @@ -21542,6 +22587,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersPeriodNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersModalityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersContextBucketNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersCategoryNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsRankingsDailyGetParametersLanguageTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0TypeJsonConverter()); @@ -21560,8 +22615,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObjectNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InstructTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InstructTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelGroupJsonConverter()); @@ -21570,8 +22627,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ParameterNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EndpointStatusJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EndpointStatusNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InstructType2JsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InstructType2NullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileMetadataTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileMetadataTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileDeleteResponseTypeJsonConverter()); @@ -21582,6 +22637,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.GenerationResponseDataDataRegionNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderResponseProviderNameJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderResponseProviderNameNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ContentFilterBuiltinActionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ContentFilterBuiltinActionNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.PromptInjectionScanScopeJsonConverter()); @@ -21616,8 +22675,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep2NullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItemsVariant1TypeJsonConverter()); @@ -21710,6 +22767,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant6IdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter()); @@ -21750,12 +22809,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4NameNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf4TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5NameNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionOutputTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionResultTypeJsonConverter()); @@ -21778,14 +22837,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicEncryptedCodeExecutionResultTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentDiscriminatorTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicServerToolUseBlockTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicTextCitationVariant1TypeJsonConverter()); @@ -21898,12 +22957,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersZdrNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersRegionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersRegionNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter()); @@ -22018,12 +23077,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter()); @@ -22123,11 +23176,24 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputCodeInterpreterCallItemOutputsItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.NamespaceToolToolsItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AgentMessageItemContentItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.InputsOneOf1ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.InputsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.PDFParserEngineJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5JsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4JsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.StoredPromptTemplateVariablesJsonConverter()); @@ -22142,15 +23208,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAiResponsesToolChoiceOneOf4TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ToolChoiceAllowedModeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenAIResponsesToolChoiceJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueOneOf3ItemsJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersOneOf0ValueJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.CustomToolFormatJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.BashServerToolEnvironmentJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ShellServerToolEnvironmentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ResponsesRequestToolsItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentJsonConverter()); @@ -22174,8 +23231,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputShellCallOutputItemOutputItemsOutcomeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesIgnoreItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOnlyItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesOrderItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationProviderPreferencesSortJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsJsonConverter()); @@ -22188,6 +23251,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ChatUserMessageContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatMessagesJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestPluginsItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PredictionContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestResponseFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatToolChoiceJsonConverter()); @@ -22221,7 +23285,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestToolsItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicBashCodeExecutionContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCodeExecutionContentJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicNullableCallerJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicTextCitationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicToolSearchContentJsonConverter()); @@ -22230,11 +23295,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicWebFetchContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter()); @@ -22242,43 +23306,48 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.InputReferenceJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UnixTimestampJsonConverter()); return options; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index a2721490..105775dd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -128,7295 +128,7623 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.InputText? Type25 { get; set; } + public global::OpenRouter.PromptCacheBreakpointMode? Type25 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail? Type26 { get; set; } + public global::OpenRouter.PromptCacheBreakpoint? Type26 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type? Type27 { get; set; } + public global::OpenRouter.InputText? Type27 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type28 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail? Type28 { get; set; } /// /// /// - public global::OpenRouter.InputFile? Type29 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type? Type29 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat? Type30 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type30 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio? Type31 { get; set; } + public global::OpenRouter.InputFile? Type31 { get; set; } /// /// /// - public global::OpenRouter.InputAudio? Type32 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat? Type32 { get; set; } /// /// /// - public global::OpenRouter.InputVideoType? Type33 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio? Type33 { get; set; } /// /// /// - public global::OpenRouter.InputVideo? Type34 { get; set; } + public global::OpenRouter.InputAudio? Type34 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type35 { get; set; } + public global::OpenRouter.InputVideoType? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::OpenRouter.InputVideo? Type36 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContent? Type37 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type37 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase0? Type38 { get; set; } + public global::System.Collections.Generic.IList? Type38 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase1? Type39 { get; set; } + public global::OpenRouter.EasyInputMessageContent? Type39 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase? Type40 { get; set; } + public global::OpenRouter.EasyInputMessagePhase0? Type40 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole0? Type41 { get; set; } + public global::OpenRouter.EasyInputMessagePhase1? Type41 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole1? Type42 { get; set; } + public global::OpenRouter.EasyInputMessagePhase? Type42 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole2? Type43 { get; set; } + public global::OpenRouter.EasyInputMessageRole0? Type43 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole3? Type44 { get; set; } + public global::OpenRouter.EasyInputMessageRole1? Type44 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole? Type45 { get; set; } + public global::OpenRouter.EasyInputMessageRole2? Type45 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageType? Type46 { get; set; } + public global::OpenRouter.EasyInputMessageRole3? Type46 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessage? Type47 { get; set; } + public global::OpenRouter.EasyInputMessageRole? Type47 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItemsOneOf1Detail? Type48 { get; set; } + public global::OpenRouter.EasyInputMessageType? Type48 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItemsOneOf1Type? Type49 { get; set; } + public global::OpenRouter.EasyInputMessage? Type49 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems1? Type50 { get; set; } + public global::OpenRouter.OneOf? Type50 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems? Type51 { get; set; } + public global::OpenRouter.OneOf? Type51 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole0? Type52 { get; set; } + public global::OpenRouter.InputMessageItemContentItemsOneOf1Detail? Type52 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole1? Type53 { get; set; } + public global::OpenRouter.InputMessageItemContentItemsOneOf1Type? Type53 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole2? Type54 { get; set; } + public global::OpenRouter.InputMessageItemContentItems1? Type54 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole? Type55 { get; set; } + public global::OpenRouter.InputMessageItemContentItems? Type55 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemType? Type56 { get; set; } + public global::OpenRouter.InputMessageItemRole0? Type56 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItem? Type57 { get; set; } + public global::OpenRouter.InputMessageItemRole1? Type57 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type58 { get; set; } + public global::OpenRouter.InputMessageItemRole2? Type58 { get; set; } /// /// /// - public global::OpenRouter.ToolCallStatus? Type59 { get; set; } + public global::OpenRouter.InputMessageItemRole? Type59 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItemType? Type60 { get; set; } + public global::OpenRouter.InputMessageItemType? Type60 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItem? Type61 { get; set; } + public global::OpenRouter.InputMessageItem? Type61 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type63 { get; set; } + public global::OpenRouter.ToolCallStatus? Type63 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1? Type64 { get; set; } + public global::OpenRouter.FunctionCallItemType? Type64 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type? Type65 { get; set; } + public global::OpenRouter.FunctionCallItem? Type65 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2? Type66 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail? Type66 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type? Type67 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type67 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3? Type68 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1? Type68 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type? Type69 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type? Type69 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminator? Type70 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2? Type70 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type71 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type? Type71 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type72 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3? Type72 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutput? Type73 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type? Type73 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemType? Type74 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminator? Type74 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItem? Type75 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type75 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperation? Type76 { get; set; } + public global::System.Collections.Generic.IList? Type76 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant1? Type77 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutput? Type77 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant1Type? Type78 { get; set; } + public global::OpenRouter.FunctionCallOutputItemType? Type78 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant2? Type79 { get; set; } + public global::OpenRouter.FunctionCallOutputItem? Type79 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant2Type? Type80 { get; set; } + public global::OpenRouter.OneOf? Type80 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant3? Type81 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation? Type81 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant3Type? Type82 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant1? Type82 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationDiscriminator? Type83 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant1Type? Type83 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationDiscriminatorType? Type84 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant2? Type84 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallStatus? Type85 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant2Type? Type85 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemType? Type86 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant3? Type86 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItem? Type87 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant3Type? Type87 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type88 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationDiscriminator? Type88 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemType? Type89 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationDiscriminatorType? Type89 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItem? Type90 { get; set; } + public global::OpenRouter.ApplyPatchCallStatus? Type90 { get; set; } /// /// /// - public global::OpenRouter.FileCitationType? Type91 { get; set; } + public global::OpenRouter.ApplyPatchCallItemType? Type91 { get; set; } /// /// /// - public global::OpenRouter.FileCitation? Type92 { get; set; } + public global::OpenRouter.ApplyPatchCallItem? Type92 { get; set; } /// /// /// - public int? Type93 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type93 { get; set; } /// /// /// - public global::OpenRouter.UrlCitationType? Type94 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemType? Type94 { get; set; } /// /// /// - public global::OpenRouter.URLCitation? Type95 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItem? Type95 { get; set; } /// /// /// - public global::OpenRouter.FilePathType? Type96 { get; set; } + public global::OpenRouter.FileCitationType? Type96 { get; set; } /// /// /// - public global::OpenRouter.FilePath? Type97 { get; set; } + public global::OpenRouter.FileCitation? Type97 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesAnnotation? Type98 { get; set; } + public int? Type98 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type99 { get; set; } + public global::OpenRouter.UrlCitationType? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::OpenRouter.URLCitation? Type100 { get; set; } /// /// /// - public long? Type101 { get; set; } + public global::OpenRouter.FilePathType? Type101 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItems? Type102 { get; set; } + public global::OpenRouter.FilePath? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::OpenRouter.OpenAIResponsesAnnotation? Type103 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextType? Type104 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type104 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputText? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public long? Type106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type107 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItems? Type107 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesRefusalContentType? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesRefusalContent? Type109 { get; set; } + public global::OpenRouter.ResponseOutputTextType? Type109 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? Type110 { get; set; } + public global::OpenRouter.ResponseOutputText? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items7? Type113 { get; set; } + public global::OpenRouter.OpenAiResponsesRefusalContentType? Type113 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items8? Type114 { get; set; } + public global::OpenRouter.OpenAIResponsesRefusalContent? Type114 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus0? Type115 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? Type115 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus1? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus2? Type117 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Type117 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus? Type118 { get; set; } + public global::OpenRouter.InputsOneOf1Items7? Type118 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemType? Type119 { get; set; } + public global::OpenRouter.OneOf? Type119 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItem? Type120 { get; set; } + public global::OpenRouter.InputsOneOf1Items8? Type120 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItem? Type121 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus0? Type121 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSourceType? Type122 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus1? Type122 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSource? Type123 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus2? Type123 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type124 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus? Type124 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction0? Type125 { get; set; } + public global::OpenRouter.OutputFunctionCallItemType? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::OpenRouter.OutputFunctionCallItem? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::OpenRouter.OutputCustomToolCallItem? Type127 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type128 { get; set; } + public global::OpenRouter.WebSearchSourceType? Type128 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction1? Type129 { get; set; } + public global::OpenRouter.WebSearchSource? Type129 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type130 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type130 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction2? Type131 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction0? Type131 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::OpenRouter.WebSearchStatus? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemType? Type134 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type134 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItem? Type135 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction1? Type135 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItemType? Type136 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type136 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItem? Type137 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction2? Type137 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationStatus? Type138 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction? Type138 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItemType? Type139 { get; set; } + public global::OpenRouter.WebSearchStatus? Type139 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItem? Type140 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemType? Type140 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type141 { get; set; } + public global::OpenRouter.OutputWebSearchCallItem? Type141 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type142 { get; set; } + public global::OpenRouter.OutputFileSearchCallItemType? Type142 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type143 { get; set; } + public global::OpenRouter.OutputFileSearchCallItem? Type143 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type144 { get; set; } + public global::OpenRouter.ImageGenerationStatus? Type144 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type145 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItemType? Type145 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemType? Type146 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItem? Type146 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItem? Type147 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type148 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type149 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type149 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type150 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type150 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItem? Type151 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemType? Type152 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItem? Type153 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItem? Type153 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type155 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type155 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type156 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type156 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemAction? Type157 { get; set; } + public global::OpenRouter.OutputComputerCallItem? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemType? Type159 { get; set; } + public global::OpenRouter.OutputDatetimeItem? Type159 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItem? Type160 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type160 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type161 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type161 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItem? Type162 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type162 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItem? Type163 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemAction? Type163 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItem? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItem? Type165 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemType? Type165 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type166 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItem? Type166 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemType? Type167 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type167 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItem? Type168 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItem? Type168 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItem? Type169 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItem? Type169 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItemType? Type170 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItem? Type170 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItem? Type171 { get; set; } + public global::OpenRouter.OutputBashServerToolItem? Type171 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemType? Type172 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type172 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItem? Type173 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type173 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemAction? Type174 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItem? Type174 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemType? Type175 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItem? Type175 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItem? Type176 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type176 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItemType? Type177 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItem? Type177 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItem? Type178 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type178 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItemType? Type179 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItem? Type179 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItem? Type180 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type180 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradictionsItemsStancesItems? Type181 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type181 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradictionsItems? Type182 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItem? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type183 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultPartialCoverageItems? Type184 { get; set; } + public global::OpenRouter.OutputMcpServerToolItem? Type184 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultUniqueInsightsItems? Type185 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItemType? Type185 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResult? Type186 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItem? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradictionsItemsStancesItems? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradictionsItems? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionFailedModelsItems? Type190 { get; set; } + public global::OpenRouter.FusionAnalysisResultPartialCoverageItems? Type190 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type191 { get; set; } + public global::OpenRouter.FusionAnalysisResultUniqueInsightsItems? Type191 { get; set; } /// /// /// - public global::OpenRouter.FusionSource? Type192 { get; set; } + public global::OpenRouter.FusionAnalysisResult? Type192 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItem? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionFailedModelsItems? Type196 { get; set; } /// /// /// - public global::OpenRouter.OutputAdvisorServerToolItem? Type197 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type197 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItemType? Type198 { get; set; } + public global::OpenRouter.FusionSource? Type198 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItem? Type199 { get; set; } + public global::OpenRouter.OutputFusionServerToolItem? Type199 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemActionType? Type200 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemAction? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemType? Type203 { get; set; } + public global::OpenRouter.OutputAdvisorServerToolItem? Type203 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItem? Type204 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItemType? Type204 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItemType? Type205 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItem? Type205 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItem? Type206 { get; set; } + public global::OpenRouter.OutputFilesServerToolItem? Type206 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemAction? Type207 { get; set; } + public global::OpenRouter.LocalShellCallItemActionType? Type207 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemType? Type208 { get; set; } + public global::OpenRouter.LocalShellCallItemAction? Type208 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItem? Type209 { get; set; } + public global::System.Collections.Generic.Dictionary? Type209 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemOutputItems? Type210 { get; set; } + public global::OpenRouter.LocalShellCallItemType? Type210 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemType? Type211 { get; set; } + public global::OpenRouter.LocalShellCallItem? Type211 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItem? Type212 { get; set; } + public global::OpenRouter.LocalShellCallOutputItemType? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::OpenRouter.LocalShellCallOutputItem? Type213 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemToolsItems? Type214 { get; set; } + public global::OpenRouter.ShellCallItemAction? Type214 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemType? Type215 { get; set; } + public global::OpenRouter.ShellCallItemType? Type215 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItem? Type216 { get; set; } + public global::OpenRouter.ShellCallItem? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::OpenRouter.ShellCallOutputItemOutputItems? Type217 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItemType? Type218 { get; set; } + public global::OpenRouter.ShellCallOutputItemType? Type218 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItem? Type219 { get; set; } + public global::OpenRouter.ShellCallOutputItem? Type219 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItemType? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItem? Type221 { get; set; } + public global::OpenRouter.McpListToolsItemToolsItems? Type221 { get; set; } /// /// /// - public global::OpenRouter.McpCallItemType? Type222 { get; set; } + public global::OpenRouter.McpListToolsItemType? Type222 { get; set; } /// /// /// - public global::OpenRouter.McpCallItem? Type223 { get; set; } + public global::OpenRouter.McpListToolsItem? Type223 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItemType? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type224 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItem? Type225 { get; set; } + public global::OpenRouter.McpApprovalRequestItemType? Type225 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type226 { get; set; } + public global::OpenRouter.McpApprovalRequestItem? Type226 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type227 { get; set; } + public global::OpenRouter.McpApprovalResponseItemType? Type227 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type228 { get; set; } + public global::OpenRouter.McpApprovalResponseItem? Type228 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type229 { get; set; } + public global::OpenRouter.McpCallItemType? Type229 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type230 { get; set; } + public global::OpenRouter.McpCallItem? Type230 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type231 { get; set; } + public global::OpenRouter.CustomToolCallItemType? Type231 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type232 { get; set; } + public global::OpenRouter.CustomToolCallItem? Type232 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type233 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type233 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type234 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type235 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutput? Type236 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type236 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemType? Type237 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type237 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItem? Type238 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type238 { get; set; } /// /// /// - public global::OpenRouter.CompactionItemType? Type239 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type239 { get; set; } /// /// /// - public global::OpenRouter.CompactionItem? Type240 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type240 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItemType? Type241 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type241 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItem? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items? Type243 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutput? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemType? Type244 { get; set; } /// /// /// - public global::OpenRouter.Inputs? Type245 { get; set; } + public global::OpenRouter.CustomToolCallOutputItem? Type245 { get; set; } /// /// /// - public global::OpenRouter.OutputModalityEnum? Type246 { get; set; } + public global::OpenRouter.CompactionItemType? Type246 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionEngine? Type247 { get; set; } + public global::OpenRouter.CompactionItem? Type247 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine0? Type248 { get; set; } + public global::OpenRouter.ContextCompactionItemType? Type248 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine1? Type249 { get; set; } + public global::OpenRouter.ContextCompactionItem? Type249 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngine? Type250 { get; set; } + public global::OpenRouter.ItemReferenceItemType? Type250 { get; set; } /// /// /// - public global::OpenRouter.PDFParserOptions? Type251 { get; set; } + public global::OpenRouter.ItemReferenceItem? Type251 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Type252 { get; set; } + public global::OpenRouter.AdditionalToolsItemRole? Type252 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? Type253 { get; set; } + public global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::OpenRouter.AdditionalToolsItemToolsItems0? Type254 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? Type255 { get; set; } + public global::OpenRouter.WebSearchEngineEnum? Type255 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? Type256 { get; set; } + public global::OpenRouter.WebSearchDomainFilter? Type256 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters? Type257 { get; set; } + public global::OpenRouter.SearchContextSizeEnum? Type257 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems? Type258 { get; set; } + public global::OpenRouter.PreviewWebSearchServerToolType? Type258 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngine? Type259 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocationType? Type259 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginId? Type260 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocation? Type260 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocationType? Type261 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocation2? Type261 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocation? Type262 { get; set; } + public global::OpenRouter.PreviewWebSearchServerTool? Type262 { get; set; } /// /// /// - public global::OpenRouter.WebFetchPluginId? Type263 { get; set; } + public global::OpenRouter.Preview20250311WebSearchServerToolType? Type263 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItems? Type264 { get; set; } + public global::OpenRouter.Preview20250311WebSearchServerTool? Type264 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type265 { get; set; } + public global::OpenRouter.LegacyWebSearchServerToolType? Type265 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type266 { get; set; } + public global::OpenRouter.WebSearchUserLocationType? Type266 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type267 { get; set; } + public global::OpenRouter.WebSearchUserLocation? Type267 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type268 { get; set; } + public global::OpenRouter.LegacyWebSearchServerTool? Type268 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type269 { get; set; } + public global::OpenRouter.WebSearchServerToolType? Type269 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type270 { get; set; } + public global::OpenRouter.WebSearchServerTool? Type270 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type271 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0Type? Type271 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type272 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0ValueOneOf3Items? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type274 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0Value? Type274 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type275 { get; set; } + public global::OpenRouter.FileSearchServerToolFilters0? Type275 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type276 { get; set; } + public global::OpenRouter.CompoundFilterType? Type276 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type277 { get; set; } + public global::OpenRouter.CompoundFilter? Type277 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type278 { get; set; } + public global::OpenRouter.FileSearchServerToolFilters? Type278 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type279 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type279 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type280 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptions? Type280 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Type281 { get; set; } + public global::OpenRouter.FileSearchServerToolType? Type281 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type282 { get; set; } + public global::OpenRouter.FileSearchServerTool? Type282 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type283 { get; set; } + public global::OpenRouter.OneOf? Type283 { get; set; } /// /// /// - public global::OpenRouter.InputImage? Type284 { get; set; } + public global::OpenRouter.ComputerUseServerToolEnvironment? Type284 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplateVariables? Type285 { get; set; } + public global::OpenRouter.ComputerUseServerToolType? Type285 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplate? Type286 { get; set; } + public global::OpenRouter.ComputerUseServerTool? Type286 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesDataCollection? Type287 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? Type287 { get; set; } /// /// /// - public global::OpenRouter.ProviderName? Type288 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type? Type288 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesIgnoreItems? Type289 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainer1? Type289 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPrice? Type290 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainer? Type290 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOnlyItems? Type291 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolType? Type291 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOrderItems? Type292 { get; set; } + public global::OpenRouter.CodeInterpreterServerTool? Type292 { get; set; } /// /// /// - public global::OpenRouter.PercentileLatencyCutoffs? Type293 { get; set; } + public global::OpenRouter.McpServerToolAllowedTools1? Type293 { get; set; } /// /// /// - public global::OpenRouter.PreferredMaxLatency? Type294 { get; set; } + public global::OpenRouter.McpServerToolAllowedTools? Type294 { get; set; } /// /// /// - public global::OpenRouter.PercentileThroughputCutoffs? Type295 { get; set; } + public global::OpenRouter.McpServerToolConnectorId? Type295 { get; set; } /// /// /// - public global::OpenRouter.PreferredMinThroughput? Type296 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalOneOf0Always? Type296 { get; set; } /// /// /// - public global::OpenRouter.Quantization? Type297 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalOneOf0Never? Type297 { get; set; } /// /// /// - public global::OpenRouter.ProviderSort? Type298 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval0? Type298 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigBy? Type299 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval1? Type299 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigPartition? Type300 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval2? Type300 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfig? Type301 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval? Type301 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type302 { get; set; } + public global::OpenRouter.McpServerToolType? Type302 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type303 { get; set; } + public global::OpenRouter.McpServerTool? Type303 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesSort? Type304 { get; set; } + public global::OpenRouter.OneOf? Type304 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferences? Type305 { get; set; } + public global::OpenRouter.OneOf? Type305 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type306 { get; set; } + public global::OpenRouter.ImageGenerationServerToolBackground? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type308 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type309 { get; set; } + public global::OpenRouter.ImageGenerationServerToolModeration? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type310 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type310 { get; set; } /// /// /// - public global::OpenRouter.ReasoningEffort? Type311 { get; set; } + public global::OpenRouter.ImageGenerationServerToolQuality? Type311 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryVerbosity? Type312 { get; set; } + public global::OpenRouter.ImageGenerationServerToolType? Type312 { get; set; } /// /// /// - public global::OpenRouter.ReasoningConfig? Type313 { get; set; } + public global::OpenRouter.ImageGenerationServerTool? Type313 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestServiceTier? Type314 { get; set; } + public global::OpenRouter.CodexLocalShellToolType? Type314 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type315 { get; set; } + public global::OpenRouter.CodexLocalShellTool? Type315 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type316 { get; set; } + public global::OpenRouter.ShellServerToolType? Type316 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxCostType? Type317 { get; set; } + public global::OpenRouter.ShellServerTool? Type317 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type318 { get; set; } + public global::OpenRouter.ApplyPatchServerToolType? Type318 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type319 { get; set; } + public global::OpenRouter.ApplyPatchServerTool? Type319 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenCondition? Type320 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf0Type? Type320 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant1? Type321 { get; set; } + public global::OpenRouter.CustomToolFormat0? Type321 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant2? Type322 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf1Syntax? Type322 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant3? Type323 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf1Type? Type323 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant4? Type324 { get; set; } + public global::OpenRouter.CustomToolFormat1? Type324 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant5? Type325 { get; set; } + public global::OpenRouter.CustomToolFormat? Type325 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type326 { get; set; } + public global::OpenRouter.CustomToolType? Type326 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type327 { get; set; } + public global::OpenRouter.CustomTool? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::OpenRouter.NamespaceFunctionToolAllowedCallersItems? Type328 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfigType? Type329 { get; set; } + public global::OpenRouter.NamespaceFunctionToolType? Type329 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfig? Type330 { get; set; } + public global::OpenRouter.NamespaceFunctionTool? Type330 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfigType? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfig? Type332 { get; set; } + public global::OpenRouter.NamespaceToolToolsItems? Type332 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfigType? Type333 { get; set; } + public global::OpenRouter.NamespaceToolType? Type333 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfig? Type334 { get; set; } + public global::OpenRouter.NamespaceTool? Type334 { get; set; } /// /// /// - public global::OpenRouter.Formats? Type335 { get; set; } + public global::System.Collections.Generic.IList? Type335 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfigVerbosity? Type336 { get; set; } + public global::OpenRouter.AdvisorReasoningEffort? Type336 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfig? Type337 { get; set; } + public global::OpenRouter.AdvisorReasoning? Type337 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type338 { get; set; } + public global::OpenRouter.AdvisorNestedTool? Type338 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice0? Type339 { get; set; } + public global::OpenRouter.AdvisorServerToolConfig? Type339 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice1? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice2? Type341 { get; set; } + public global::OpenRouter.AdvisorServerToolOpenRouterType? Type341 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type342 { get; set; } + public global::OpenRouter.AdvisorServerToolOpenRouter? Type342 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice3? Type343 { get; set; } + public global::OpenRouter.SubagentReasoningEffort? Type343 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type344 { get; set; } + public global::OpenRouter.SubagentReasoning? Type344 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type345 { get; set; } + public global::OpenRouter.SubagentNestedTool? Type345 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type346 { get; set; } + public global::OpenRouter.SubagentServerToolConfig? Type346 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice4? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode0? Type348 { get; set; } + public global::OpenRouter.SubagentServerToolOpenRouterType? Type348 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode1? Type349 { get; set; } + public global::OpenRouter.SubagentServerToolOpenRouter? Type349 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode? Type350 { get; set; } + public global::OpenRouter.DatetimeServerToolConfig? Type350 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedType? Type351 { get; set; } + public global::OpenRouter.DatetimeServerToolType? Type351 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowed? Type352 { get; set; } + public global::OpenRouter.DatetimeServerTool? Type352 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? Type353 { get; set; } + public global::OpenRouter.FilesServerToolConfig? Type353 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice6? Type354 { get; set; } + public global::OpenRouter.FilesServerToolType? Type354 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? Type355 { get; set; } + public global::OpenRouter.FilesServerTool? Type355 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice7? Type356 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type356 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoice? Type357 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoning? Type357 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type? Type358 { get; set; } + public global::OpenRouter.FusionServerToolConfigToolsItems? Type358 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems0? Type359 { get; set; } + public global::OpenRouter.FusionServerToolConfig? Type359 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngineEnum? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::OpenRouter.WebSearchDomainFilter? Type361 { get; set; } + public global::OpenRouter.FusionServerToolOpenRouterType? Type361 { get; set; } /// /// /// - public global::OpenRouter.SearchContextSizeEnum? Type362 { get; set; } + public global::OpenRouter.FusionServerToolOpenRouter? Type362 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchServerToolType? Type363 { get; set; } + public global::OpenRouter.ImageGenerationServerToolConfig? Type363 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocationType? Type364 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type364 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocation? Type365 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouter? Type365 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchServerTool? Type366 { get; set; } + public global::OpenRouter.SearchModelsServerToolConfig? Type366 { get; set; } /// /// /// - public global::OpenRouter.Preview20250311WebSearchServerToolType? Type367 { get; set; } + public global::OpenRouter.SearchModelsServerToolOpenRouterType? Type367 { get; set; } /// /// /// - public global::OpenRouter.Preview20250311WebSearchServerTool? Type368 { get; set; } + public global::OpenRouter.SearchModelsServerToolOpenRouter? Type368 { get; set; } /// /// /// - public global::OpenRouter.LegacyWebSearchServerToolType? Type369 { get; set; } + public global::OpenRouter.WebFetchEngineEnum? Type369 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationType? Type370 { get; set; } + public global::OpenRouter.WebFetchServerToolConfig? Type370 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocation? Type371 { get; set; } + public global::OpenRouter.WebFetchServerToolType? Type371 { get; set; } /// /// /// - public global::OpenRouter.LegacyWebSearchServerTool? Type372 { get; set; } + public global::OpenRouter.WebFetchServerTool? Type372 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolType? Type373 { get; set; } + public global::OpenRouter.SearchQualityLevel? Type373 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerTool? Type374 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerToolType? Type374 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0Type? Type375 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerTool? Type375 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0ValueOneOf3Items? Type376 { get; set; } + public global::OpenRouter.WebSearchServerToolConfig? Type376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type377 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouterType? Type377 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0Value? Type378 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouter? Type378 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFilters0? Type379 { get; set; } + public global::OpenRouter.ApplyPatchEngineEnum? Type379 { get; set; } /// /// /// - public global::OpenRouter.CompoundFilterType? Type380 { get; set; } + public global::OpenRouter.ApplyPatchServerToolConfig? Type380 { get; set; } /// /// /// - public global::OpenRouter.CompoundFilter? Type381 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouterType? Type381 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFilters? Type382 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouter? Type382 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type383 { get; set; } + public global::OpenRouter.BashServerToolEngine? Type383 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptions? Type384 { get; set; } + public global::OpenRouter.BashServerToolEnvironment? Type384 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolType? Type385 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant1? Type385 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerTool? Type386 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant1Type? Type386 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerToolEnvironment? Type387 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant2? Type387 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerToolType? Type388 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant2Type? Type388 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerTool? Type389 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentDiscriminator? Type389 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? Type390 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentDiscriminatorType? Type390 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type? Type391 { get; set; } + public global::OpenRouter.BashServerToolConfig? Type391 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainer1? Type392 { get; set; } + public global::OpenRouter.BashServerToolType? Type392 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type393 { get; set; } + public global::OpenRouter.BashServerTool? Type393 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainer? Type394 { get; set; } + public global::OpenRouter.ShellServerToolEngine? Type394 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolType? Type395 { get; set; } + public global::OpenRouter.ShellServerToolEnvironment? Type395 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerTool? Type396 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant1? Type396 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolAllowedTools1? Type397 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant1Type? Type397 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolAllowedTools? Type398 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant2? Type398 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolConnectorId? Type399 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant2Type? Type399 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalOneOf0Always? Type400 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type400 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalOneOf0Never? Type401 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type401 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval0? Type402 { get; set; } + public global::OpenRouter.ShellServerToolConfig? Type402 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval1? Type403 { get; set; } + public global::OpenRouter.ShellServerToolOpenRouterType? Type403 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval2? Type404 { get; set; } + public global::OpenRouter.ShellServerToolOpenRouter? Type404 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval? Type405 { get; set; } + public global::OpenRouter.AdditionalToolsItemToolsItems27? Type405 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolType? Type406 { get; set; } + public global::OpenRouter.AdditionalToolsItemToolsItems? Type406 { get; set; } /// /// /// - public global::OpenRouter.McpServerTool? Type407 { get; set; } + public global::OpenRouter.AdditionalToolsItemType? Type407 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolBackground? Type408 { get; set; } + public global::OpenRouter.AdditionalToolsItem? Type408 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type409 { get; set; } + public global::System.Collections.Generic.IList? Type409 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type410 { get; set; } + public global::OpenRouter.AgentMessageItemAgent? Type410 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolModel? Type411 { get; set; } + public global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail? Type411 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolModeration? Type412 { get; set; } + public global::OpenRouter.AgentMessageItemContentItemsOneOf1Type? Type412 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type413 { get; set; } + public global::OpenRouter.AgentMessageItemContentItems1? Type413 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolQuality? Type414 { get; set; } + public global::OpenRouter.AgentMessageItemContentItemsOneOf2Type? Type414 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolSize? Type415 { get; set; } + public global::OpenRouter.AgentMessageItemContentItems2? Type415 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolType? Type416 { get; set; } + public global::OpenRouter.AgentMessageItemContentItems? Type416 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerTool? Type417 { get; set; } + public global::OpenRouter.AgentMessageItemType? Type417 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type418 { get; set; } + public global::OpenRouter.AgentMessageItem? Type418 { get; set; } /// /// /// - public global::OpenRouter.CodexLocalShellToolType? Type419 { get; set; } + public global::OpenRouter.OneOf? Type419 { get; set; } /// /// /// - public global::OpenRouter.CodexLocalShellTool? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolType? Type421 { get; set; } + public global::OpenRouter.InputsOneOf1Items? Type421 { get; set; } /// /// /// - public global::OpenRouter.ShellServerTool? Type422 { get; set; } + public global::System.Collections.Generic.IList? Type422 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolType? Type423 { get; set; } + public global::OpenRouter.Inputs? Type423 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerTool? Type424 { get; set; } + public global::OpenRouter.OutputModalityEnum? Type424 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf0Type? Type425 { get; set; } + public global::OpenRouter.ContextCompressionEngine? Type425 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat0? Type426 { get; set; } + public global::OpenRouter.PdfParserEngine0? Type426 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf1Syntax? Type427 { get; set; } + public global::OpenRouter.PdfParserEngine1? Type427 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf1Type? Type428 { get; set; } + public global::OpenRouter.PDFParserEngine? Type428 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat1? Type429 { get; set; } + public global::OpenRouter.PDFParserOptions? Type429 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat? Type430 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Type430 { get; set; } /// /// /// - public global::OpenRouter.CustomToolType? Type431 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items? Type431 { get; set; } /// /// /// - public global::OpenRouter.CustomTool? Type432 { get; set; } + public global::System.Collections.Generic.IList>? Type432 { get; set; } /// /// /// - public global::OpenRouter.AdvisorReasoningEffort? Type433 { get; set; } + public global::OpenRouter.OneOf? Type433 { get; set; } /// /// /// - public global::OpenRouter.AdvisorReasoning? Type434 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4? Type434 { get; set; } /// /// /// - public global::OpenRouter.AdvisorNestedTool? Type435 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? Type435 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolConfig? Type436 { get; set; } + public global::OpenRouter.OneOf? Type436 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type437 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters? Type437 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolOpenRouterType? Type438 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems? Type438 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolOpenRouter? Type439 { get; set; } + public global::OpenRouter.OneOf? Type439 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoningEffort? Type440 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? Type440 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoning? Type441 { get; set; } + public global::OpenRouter.WebSearchEngine? Type441 { get; set; } /// /// /// - public global::OpenRouter.SubagentNestedTool? Type442 { get; set; } + public global::OpenRouter.WebSearchPluginId? Type442 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolConfig? Type443 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocationType? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocation? Type444 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolOpenRouterType? Type445 { get; set; } + public global::OpenRouter.WebFetchPluginId? Type445 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolOpenRouter? Type446 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItems? Type446 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerToolConfig? Type447 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type447 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerToolType? Type448 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type448 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerTool? Type449 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type449 { get; set; } /// /// /// - public global::OpenRouter.FilesServerToolConfig? Type450 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type450 { get; set; } /// /// /// - public global::OpenRouter.FilesServerToolType? Type451 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type451 { get; set; } /// /// /// - public global::OpenRouter.FilesServerTool? Type452 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type452 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type453 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type453 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoning? Type454 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type454 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigToolsItems? Type455 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type455 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfig? Type456 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::System.Collections.Generic.IList? Type457 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolOpenRouterType? Type458 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type458 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolOpenRouter? Type459 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type459 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolConfig? Type460 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type460 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type461 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type461 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOpenRouter? Type462 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type462 { get; set; } /// /// /// - public global::OpenRouter.SearchModelsServerToolConfig? Type463 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id? Type463 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerToolType? Type464 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Type464 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerTool? Type465 { get; set; } + public global::OpenRouter.OneOf? Type465 { get; set; } /// /// /// - public global::OpenRouter.WebFetchEngineEnum? Type466 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant10? Type466 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolConfig? Type467 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type467 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolType? Type468 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type468 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerTool? Type469 { get; set; } + public global::OpenRouter.InputImage? Type469 { get; set; } /// /// /// - public global::OpenRouter.SearchQualityLevel? Type470 { get; set; } + public global::OpenRouter.StoredPromptTemplateVariables? Type470 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerToolType? Type471 { get; set; } + public global::OpenRouter.StoredPromptTemplate? Type471 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerTool? Type472 { get; set; } + public global::OpenRouter.PromptCacheOptionsMode? Type472 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolConfig? Type473 { get; set; } + public global::OpenRouter.PromptCacheOptions? Type473 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouterType? Type474 { get; set; } + public global::OpenRouter.ProviderPreferencesDataCollection? Type474 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouter? Type475 { get; set; } + public global::OpenRouter.ProviderName? Type475 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchEngineEnum? Type476 { get; set; } + public global::OpenRouter.ProviderPreferencesIgnoreItems? Type476 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolConfig? Type477 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPrice? Type477 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolOpenRouterType? Type478 { get; set; } + public global::OpenRouter.ProviderPreferencesOnlyItems? Type478 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolOpenRouter? Type479 { get; set; } + public global::OpenRouter.ProviderPreferencesOrderItems? Type479 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEngine? Type480 { get; set; } + public global::OpenRouter.PercentileLatencyCutoffs? Type480 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironment? Type481 { get; set; } + public global::OpenRouter.PreferredMaxLatency? Type481 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant1? Type482 { get; set; } + public global::OpenRouter.PercentileThroughputCutoffs? Type482 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant1Type? Type483 { get; set; } + public global::OpenRouter.PreferredMinThroughput? Type483 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant2? Type484 { get; set; } + public global::OpenRouter.Quantization? Type484 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant2Type? Type485 { get; set; } + public global::OpenRouter.ProviderSort? Type485 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentDiscriminator? Type486 { get; set; } + public global::OpenRouter.ProviderSortConfigBy? Type486 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentDiscriminatorType? Type487 { get; set; } + public global::OpenRouter.ProviderSortConfigPartition? Type487 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolConfig? Type488 { get; set; } + public global::OpenRouter.ProviderSortConfig? Type488 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolType? Type489 { get; set; } + public global::OpenRouter.ProviderPreferencesSort? Type489 { get; set; } /// /// /// - public global::OpenRouter.BashServerTool? Type490 { get; set; } + public global::OpenRouter.ProviderPreferences? Type490 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEngine? Type491 { get; set; } + public global::System.Collections.Generic.IList? Type491 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironment? Type492 { get; set; } + public global::System.Collections.Generic.IList? Type492 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant1? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant1Type? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant2? Type495 { get; set; } + public global::OpenRouter.OneOf? Type495 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant2Type? Type496 { get; set; } + public global::OpenRouter.ReasoningContext? Type496 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type497 { get; set; } + public global::OpenRouter.ReasoningEffort? Type497 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type498 { get; set; } + public global::OpenRouter.ReasoningMode? Type498 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolConfig? Type499 { get; set; } + public global::OpenRouter.ReasoningSummaryVerbosity? Type499 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolOpenRouterType? Type500 { get; set; } + public global::OpenRouter.ReasoningConfig? Type500 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolOpenRouter? Type501 { get; set; } + public global::OpenRouter.ResponsesRequestServiceTier? Type501 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems? Type502 { get; set; } + public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type502 { get; set; } /// /// /// - public global::OpenRouter.TraceConfig? Type503 { get; set; } + public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type503 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesTruncation? Type504 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxCostType? Type504 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequest? Type505 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type505 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type506 { get; set; } + public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type506 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type507 { get; set; } + public global::OpenRouter.StopServerToolsWhenCondition? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant1? Type508 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type509 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant2? Type509 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type510 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant3? Type510 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorFieldCode? Type511 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant4? Type511 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorField? Type512 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant5? Type512 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetailsReason? Type513 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type513 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetails? Type514 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type514 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type515 { get; set; } + public global::System.Collections.Generic.IList? Type515 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type516 { get; set; } + public global::OpenRouter.FormatTextConfigType? Type516 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type517 { get; set; } + public global::OpenRouter.FormatTextConfig? Type517 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type518 { get; set; } + public global::OpenRouter.FormatJsonObjectConfigType? Type518 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type519 { get; set; } + public global::OpenRouter.FormatJsonObjectConfig? Type519 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type520 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfigType? Type520 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type521 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfig? Type521 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type522 { get; set; } + public global::OpenRouter.Formats? Type522 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type523 { get; set; } + public global::OpenRouter.TextExtendedConfigVerbosity? Type523 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type524 { get; set; } + public global::OpenRouter.TextExtendedConfig? Type524 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type525 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice0? Type525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type526 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice1? Type526 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type527 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice2? Type527 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type528 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type528 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type529 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice3? Type529 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type530 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type530 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type531 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type531 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type532 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type532 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type533 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice4? Type533 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type534 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode0? Type534 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type535 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode1? Type535 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type536 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode? Type536 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items0? Type537 { get; set; } + public global::OpenRouter.ToolChoiceAllowedType? Type537 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type538 { get; set; } + public global::OpenRouter.ToolChoiceAllowed? Type538 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type539 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? Type539 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type540 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice6? Type540 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type541 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? Type541 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type542 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice7? Type542 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type543 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoice? Type543 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type544 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type? Type544 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type545 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems0? Type545 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type546 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems? Type546 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type547 { get; set; } + public global::OpenRouter.TraceConfig? Type547 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type548 { get; set; } + public global::OpenRouter.OpenAIResponsesTruncation? Type548 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type549 { get; set; } + public global::OpenRouter.ResponsesRequest? Type549 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type550 { get; set; } + public global::System.Collections.Generic.IList? Type550 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type551 { get; set; } + public global::System.Collections.Generic.IList? Type551 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type552 { get; set; } + public global::System.Collections.Generic.IList? Type552 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemType? Type553 { get; set; } + public global::System.Collections.Generic.IList? Type553 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItem? Type554 { get; set; } + public global::OpenRouter.ResponsesErrorFieldCode? Type554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type555 { get; set; } + public global::OpenRouter.ResponsesErrorField? Type555 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type556 { get; set; } + public global::OpenRouter.IncompleteDetailsReason? Type556 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type557 { get; set; } + public global::OpenRouter.IncompleteDetails? Type557 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type558 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type558 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type559 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type559 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type560 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type560 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type561 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type561 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type562 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type562 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type563 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type563 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type564 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type564 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type565 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type565 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type566 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type566 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type567 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type567 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type568 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type568 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type569 { get; set; } + public global::System.Collections.Generic.IList? Type569 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCall? Type570 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type570 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCallType? Type571 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type571 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCall? Type572 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type572 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageContentItems? Type573 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type573 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase0? Type574 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type574 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase1? Type575 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type575 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase? Type576 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type576 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageRole? Type577 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type577 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus0? Type578 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type578 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus1? Type579 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type579 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus2? Type580 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items0? Type580 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus? Type581 { get; set; } + public global::OpenRouter.OneOf? Type581 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageType? Type582 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type582 { get; set; } /// /// /// - public global::OpenRouter.OutputMessage? Type583 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type583 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type584 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type584 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallType? Type585 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type585 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCall? Type586 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type586 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type587 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type587 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type588 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type588 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type589 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type589 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type590 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type590 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type591 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type591 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type592 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type592 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type593 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type593 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type594 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type594 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type595 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type596 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type596 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type597 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemType? Type597 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type598 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItem? Type598 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type599 { get; set; } + public global::System.Collections.Generic.IList? Type599 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items? Type600 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type601 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type601 { get; set; } /// /// /// - public global::OpenRouter.BaseInputs? Type602 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type602 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultObject? Type603 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type603 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemContentItems? Type604 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type604 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase0? Type605 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type605 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase1? Type606 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type606 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase? Type607 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type607 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemRole? Type608 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type608 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus0? Type609 { get; set; } + public global::System.Collections.Generic.IList? Type609 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus1? Type610 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type610 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus2? Type611 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type611 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus? Type612 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type612 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemType? Type613 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type613 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus0? Type614 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCall? Type614 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus1? Type615 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCallType? Type615 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus2? Type616 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCall? Type616 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus? Type617 { get; set; } + public global::OpenRouter.OutputMessageContentItems? Type617 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemType? Type618 { get; set; } + public global::OpenRouter.OutputMessagePhase0? Type618 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemAction? Type619 { get; set; } + public global::OpenRouter.OutputMessagePhase1? Type619 { get; set; } /// /// /// - public global::OpenRouter.ShellCallStatus? Type620 { get; set; } + public global::OpenRouter.OutputMessagePhase? Type620 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemType? Type621 { get; set; } + public global::OpenRouter.OutputMessageRole? Type621 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf0Type? Type622 { get; set; } + public global::OpenRouter.OutputMessageStatus0? Type622 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome0? Type623 { get; set; } + public global::OpenRouter.OutputMessageStatus1? Type623 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf1Type? Type624 { get; set; } + public global::OpenRouter.OutputMessageStatus2? Type624 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome1? Type625 { get; set; } + public global::OpenRouter.OutputMessageStatus? Type625 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome? Type626 { get; set; } + public global::OpenRouter.OutputMessageType? Type626 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItems? Type627 { get; set; } + public global::OpenRouter.OutputMessage? Type627 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemType? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::OpenRouter.OutputItems? Type629 { get; set; } + public global::OpenRouter.OneOf? Type629 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1? Type630 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallType? Type630 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1Type? Type631 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCall? Type631 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2? Type632 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type632 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3? Type633 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type633 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3Type? Type634 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type634 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4? Type635 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type635 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4Type? Type636 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type636 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant5? Type637 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type637 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant6? Type638 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type638 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant7? Type639 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type639 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8? Type640 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type640 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type641 { get; set; } + public global::System.Collections.Generic.IList? Type641 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9? Type642 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type642 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9Type? Type643 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type643 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10? Type644 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type644 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10Type? Type645 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items? Type645 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11? Type646 { get; set; } + public global::System.Collections.Generic.IList? Type646 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11Type? Type647 { get; set; } + public global::OpenRouter.BaseInputs? Type647 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12? Type648 { get; set; } + public global::OpenRouter.OpenResponsesResultObject? Type648 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12Type? Type649 { get; set; } + public global::OpenRouter.OutputMessageItemContentItems? Type649 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13? Type650 { get; set; } + public global::OpenRouter.OutputMessageItemPhase0? Type650 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13Type? Type651 { get; set; } + public global::OpenRouter.OutputMessageItemPhase1? Type651 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14? Type652 { get; set; } + public global::OpenRouter.OutputMessageItemPhase? Type652 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14Type? Type653 { get; set; } + public global::OpenRouter.OutputMessageItemRole? Type653 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant15? Type654 { get; set; } + public global::OpenRouter.OutputMessageItemStatus0? Type654 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16? Type655 { get; set; } + public global::OpenRouter.OutputMessageItemStatus1? Type655 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16Type? Type656 { get; set; } + public global::OpenRouter.OutputMessageItemStatus2? Type656 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17? Type657 { get; set; } + public global::OpenRouter.OutputMessageItemStatus? Type657 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17Type? Type658 { get; set; } + public global::OpenRouter.OutputMessageItemType? Type658 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18? Type659 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus0? Type659 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18Type? Type660 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus1? Type660 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant19? Type661 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus2? Type661 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant20? Type662 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus? Type662 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant21? Type663 { get; set; } + public global::OpenRouter.OutputReasoningItemType? Type663 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant22? Type664 { get; set; } + public global::OpenRouter.OutputShellCallItemAction? Type664 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant23? Type665 { get; set; } + public global::OpenRouter.ShellCallStatus? Type665 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant24? Type666 { get; set; } + public global::OpenRouter.OutputShellCallItemType? Type666 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant25? Type667 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf0Type? Type667 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant26? Type668 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome0? Type668 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant27? Type669 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf1Type? Type669 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant28? Type670 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome1? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome? Type671 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant29? Type672 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItems? Type672 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type673 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemType? Type673 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorType? Type674 { get; set; } + public global::OpenRouter.OutputItems? Type674 { get; set; } /// /// /// - public global::OpenRouter.BaseReasoningConfig? Type675 { get; set; } + public global::OpenRouter.OutputItemsVariant1? Type675 { get; set; } /// /// /// - public global::OpenRouter.ServiceTier2? Type676 { get; set; } + public global::OpenRouter.OutputItemsVariant1Type? Type676 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesResponseStatus? Type677 { get; set; } + public global::OpenRouter.OutputItemsVariant2? Type677 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type678 { get; set; } + public global::OpenRouter.OutputItemsVariant3? Type678 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems0? Type679 { get; set; } + public global::OpenRouter.OutputItemsVariant3Type? Type679 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems? Type680 { get; set; } + public global::OpenRouter.OutputItemsVariant4? Type680 { get; set; } /// /// /// - public global::OpenRouter.Truncation? Type681 { get; set; } + public global::OpenRouter.OutputItemsVariant4Type? Type681 { get; set; } /// /// /// - public global::OpenRouter.UsageInputTokensDetails? Type682 { get; set; } + public global::OpenRouter.OutputItemsVariant5? Type682 { get; set; } /// /// /// - public global::OpenRouter.UsageOutputTokensDetails? Type683 { get; set; } + public global::OpenRouter.OutputItemsVariant6? Type683 { get; set; } /// /// /// - public global::OpenRouter.UsageCostDetails? Type684 { get; set; } + public global::OpenRouter.OutputItemsVariant7? Type684 { get; set; } /// /// /// - public global::OpenRouter.Usage? Type685 { get; set; } + public global::OpenRouter.OutputItemsVariant8? Type685 { get; set; } /// /// /// - public global::OpenRouter.ApiErrorType? Type686 { get; set; } + public global::System.Collections.Generic.IList? Type686 { get; set; } /// /// /// - public global::OpenRouter.RouterAttempt? Type687 { get; set; } + public global::OpenRouter.OneOf? Type687 { get; set; } /// /// /// - public global::OpenRouter.EndpointInfo? Type688 { get; set; } + public global::OpenRouter.OutputItemsVariant9? Type688 { get; set; } /// /// /// - public global::OpenRouter.EndpointsMetadata? Type689 { get; set; } + public global::OpenRouter.OutputItemsVariant9Type? Type689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type690 { get; set; } + public global::OpenRouter.OutputItemsVariant10? Type690 { get; set; } /// /// /// - public global::OpenRouter.RouterParams? Type691 { get; set; } + public global::OpenRouter.OutputItemsVariant10Type? Type691 { get; set; } /// /// /// - public global::OpenRouter.PipelineStageType? Type692 { get; set; } + public global::OpenRouter.OutputItemsVariant11? Type692 { get; set; } /// /// /// - public global::OpenRouter.PipelineStage? Type693 { get; set; } + public global::OpenRouter.OutputItemsVariant11Type? Type693 { get; set; } /// /// /// - public global::OpenRouter.RoutingStrategy? Type694 { get; set; } + public global::OpenRouter.OutputItemsVariant12? Type694 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterMetadata? Type695 { get; set; } + public global::OpenRouter.OutputItemsVariant12Type? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::OpenRouter.OutputItemsVariant13? Type696 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type697 { get; set; } + public global::OpenRouter.OutputItemsVariant13Type? Type697 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResult? Type698 { get; set; } + public global::OpenRouter.OutputItemsVariant14? Type698 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type699 { get; set; } + public global::OpenRouter.OutputItemsVariant14Type? Type699 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type700 { get; set; } + public global::OpenRouter.OutputItemsVariant15? Type700 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type701 { get; set; } + public global::OpenRouter.OutputItemsVariant16? Type701 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponseErrorData? Type702 { get; set; } + public global::OpenRouter.OutputItemsVariant16Type? Type702 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponse? Type703 { get; set; } + public global::OpenRouter.OutputItemsVariant17? Type703 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type704 { get; set; } + public global::OpenRouter.OutputItemsVariant17Type? Type704 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type705 { get; set; } + public global::OpenRouter.OutputItemsVariant18? Type705 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type706 { get; set; } + public global::OpenRouter.OutputItemsVariant18Type? Type706 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type707 { get; set; } + public global::OpenRouter.OutputItemsVariant19? Type707 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type708 { get; set; } + public global::OpenRouter.OutputItemsVariant19Type? Type708 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type709 { get; set; } + public global::OpenRouter.OutputItemsVariant20? Type709 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type710 { get; set; } + public global::OpenRouter.OutputItemsVariant21? Type710 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type711 { get; set; } + public global::OpenRouter.OutputItemsVariant22? Type711 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type712 { get; set; } + public global::OpenRouter.OutputItemsVariant23? Type712 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type713 { get; set; } + public global::OpenRouter.OutputItemsVariant24? Type713 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type714 { get; set; } + public global::OpenRouter.OutputItemsVariant25? Type714 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type715 { get; set; } + public global::OpenRouter.OutputItemsVariant26? Type715 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type716 { get; set; } + public global::OpenRouter.OutputItemsVariant27? Type716 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type717 { get; set; } + public global::OpenRouter.OutputItemsVariant28? Type717 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type718 { get; set; } + public global::OpenRouter.OutputItemsVariant29? Type718 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type719 { get; set; } + public global::System.Collections.Generic.IList? Type719 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type720 { get; set; } + public global::OpenRouter.OutputItemsVariant30? Type720 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type721 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type721 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponseErrorData? Type722 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorType? Type722 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponse? Type723 { get; set; } + public global::OpenRouter.BaseReasoningConfig? Type723 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type724 { get; set; } + public global::OpenRouter.ServiceTier? Type724 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type725 { get; set; } + public global::OpenRouter.OpenAIResponsesResponseStatus? Type725 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type726 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type726 { get; set; } /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type727 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems0? Type727 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type728 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems? Type728 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type729 { get; set; } + public global::OpenRouter.Truncation? Type729 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type730 { get; set; } + public global::OpenRouter.OpenAiResponsesUsageInputTokensDetails? Type730 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type731 { get; set; } + public global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails? Type731 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponseErrorData? Type732 { get; set; } + public global::OpenRouter.UsageCostDetails? Type732 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponse? Type733 { get; set; } + public global::OpenRouter.ServerToolUseDetails? Type733 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestAspectRatio? Type734 { get; set; } + public global::OpenRouter.Usage? Type734 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestBackground? Type735 { get; set; } + public global::OpenRouter.ApiErrorType? Type735 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type736 { get; set; } + public global::OpenRouter.RouterAttempt? Type736 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type737 { get; set; } + public global::OpenRouter.EndpointInfo? Type737 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestOutputFormat? Type738 { get; set; } + public global::OpenRouter.EndpointsMetadata? Type738 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestProviderOptions? Type739 { get; set; } + public global::System.Collections.Generic.IList? Type739 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestProvider? Type740 { get; set; } + public global::OpenRouter.RouterParams? Type740 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestQuality? Type741 { get; set; } + public global::OpenRouter.PipelineStageType? Type741 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestResolution? Type742 { get; set; } + public global::OpenRouter.PipelineStage? Type742 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequest? Type743 { get; set; } + public global::OpenRouter.RoutingStrategy? Type743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type744 { get; set; } + public global::OpenRouter.OpenRouterMetadata? Type744 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationResponseDataItems? Type745 { get; set; } + public global::System.Collections.Generic.IList? Type745 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? Type746 { get; set; } + public global::System.Collections.Generic.IList? Type746 { get; set; } /// /// /// - public global::OpenRouter.CostDetails? Type747 { get; set; } + public global::OpenRouter.OpenResponsesResult? Type747 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type748 { get; set; } + public global::System.Collections.Generic.IList? Type748 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type749 { get; set; } + public global::System.Collections.Generic.IList? Type749 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type750 { get; set; } + public global::OpenRouter.BadRequestResponseErrorData? Type750 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type751 { get; set; } + public global::OpenRouter.BadRequestResponse? Type751 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type752 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type752 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type753 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type753 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type754 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type754 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type755 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type755 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type756 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type756 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsagePromptTokensDetails? Type757 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type757 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsageServerToolUse? Type758 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type758 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type759 { get; set; } + public global::OpenRouter.NotFoundResponse? Type759 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsage? Type760 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type760 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type761 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type762 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type762 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type763 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type763 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type764 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type764 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationResponse? Type765 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type765 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type766 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type767 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type767 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type768 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type768 { get; set; } /// /// /// - public global::OpenRouter.ImageOutputModality? Type769 { get; set; } + public global::OpenRouter.InternalServerResponse? Type769 { get; set; } /// /// /// - public global::OpenRouter.ImageModelArchitecture? Type770 { get; set; } + public global::OpenRouter.BadGatewayResponseErrorData? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::OpenRouter.BadGatewayResponse? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type772 { get; set; } /// /// /// - public global::OpenRouter.EnumCapabilityType? Type773 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type773 { get; set; } /// /// /// - public global::OpenRouter.RangeCapabilityType? Type774 { get; set; } + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type774 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptor? Type775 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type775 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorVariant1? Type776 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type776 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorVariant1Type? Type777 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type777 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorVariant2? Type778 { get; set; } + public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type778 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorVariant3? Type779 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type779 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorDiscriminator? Type780 { get; set; } + public global::OpenRouter.ConflictResponseErrorData? Type780 { get; set; } /// /// /// - public global::OpenRouter.CapabilityDescriptorDiscriminatorType? Type781 { get; set; } + public global::OpenRouter.ConflictResponse? Type781 { get; set; } /// /// /// - public global::OpenRouter.SupportedParameters? Type782 { get; set; } + public global::OpenRouter.ImageGenerationRequestAspectRatio? Type782 { get; set; } /// /// /// - public global::OpenRouter.ImageModelListItem? Type783 { get; set; } + public global::OpenRouter.ImageGenerationRequestBackground? Type783 { get; set; } /// /// /// - public global::OpenRouter.ImageModelsListResponse? Type784 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::OpenRouter.ContentPartImage? Type785 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntryBillable? Type786 { get; set; } + public global::OpenRouter.ImageGenerationRequestOutputFormat? Type786 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntryUnit? Type787 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems? Type787 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntry? Type788 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems? Type788 { get; set; } /// /// /// - public global::OpenRouter.ImageEndpoint? Type789 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferencesOptions? Type789 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type790 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferencesOrderItems? Type790 { get; set; } /// /// /// - public global::OpenRouter.ImageModelEndpointsResponse? Type791 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferencesSort? Type791 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type792 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferences? Type792 { get; set; } /// /// /// - public global::OpenRouter.ProviderOptions? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestProvider? Type794 { get; set; } + public global::System.Collections.Generic.IList? Type794 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestResponseFormat? Type795 { get; set; } + public global::System.Collections.Generic.IList? Type795 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequest? Type796 { get; set; } + public global::OpenRouter.OneOf? Type796 { get; set; } /// /// /// - public global::OpenRouter.STTInputAudio? Type797 { get; set; } + public global::OpenRouter.ImageGenerationRequestQuality? Type797 { get; set; } /// /// /// - public global::OpenRouter.SttRequestProvider? Type798 { get; set; } + public global::OpenRouter.ImageGenerationRequestResolution? Type798 { get; set; } /// /// /// - public global::OpenRouter.STTRequest? Type799 { get; set; } + public global::OpenRouter.ImageGenerationRequest? Type799 { get; set; } /// /// /// - public global::OpenRouter.STTUsage? Type800 { get; set; } + public global::System.Collections.Generic.IList? Type800 { get; set; } /// /// /// - public global::OpenRouter.STTResponse? Type801 { get; set; } + public global::OpenRouter.ImageGenerationResponseDataItems? Type801 { get; set; } /// /// /// - public global::OpenRouter.ActivityItem? Type802 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type802 { get; set; } /// /// /// - public global::OpenRouter.ActivityResponse? Type803 { get; set; } + public global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::OpenRouter.CostDetails? Type804 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataDimensionsItems? Type805 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type805 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName? Type806 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type806 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItems? Type807 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type807 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat? Type808 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type808 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItems? Type809 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type809 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName? Type810 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type810 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType? Type811 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type811 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItems? Type812 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type812 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaData? Type813 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::OpenRouter.ImageGenerationUsagePromptTokensDetails? Type814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type815 { get; set; } + public global::OpenRouter.ImageGenerationUsageServerToolUse? Type815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type816 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type817 { get; set; } + public global::OpenRouter.ImageGenerationUsage? Type817 { get; set; } /// /// /// - public global::OpenRouter.BetaAnalyticsGetAnalyticsMetaResponse200? Type818 { get; set; } + public global::OpenRouter.OneOf? Type818 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items? Type819 { get; set; } + public global::System.Collections.Generic.IList? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::OpenRouter.OneOf? Type820 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue? Type821 { get; set; } + public global::OpenRouter.OneOf? Type821 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItems? Type822 { get; set; } + public global::OpenRouter.ImageGenerationResponse? Type822 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection? Type823 { get; set; } + public global::System.DateTimeOffset? Type823 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy? Type824 { get; set; } + public global::System.Collections.Generic.IList? Type824 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaTimeRange? Type825 { get; set; } + public global::OpenRouter.ImageInputModality? Type825 { get; set; } /// /// /// - public global::System.DateTime? Type826 { get; set; } + public global::OpenRouter.ImageOutputModality? Type826 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataDataItems? Type827 { get; set; } + public global::OpenRouter.ImageModelArchitecture? Type827 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataMetadata? Type828 { get; set; } + public global::System.Collections.Generic.IList? Type828 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaData? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type830 { get; set; } + public global::OpenRouter.EnumCapabilityType? Type830 { get; set; } /// /// /// - public global::OpenRouter.BetaAnalyticsQueryAnalyticsResponse200? Type831 { get; set; } + public global::OpenRouter.RangeCapabilityType? Type831 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersSource? Type832 { get; set; } + public global::OpenRouter.CapabilityDescriptor? Type832 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersTaskType? Type833 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant1? Type833 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersArena? Type834 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant1Type? Type834 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarkPricing? Type835 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant2? Type835 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorMappingDesignArenaTournamentStats? Type836 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant3? Type836 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItems? Type837 { get; set; } + public global::OpenRouter.CapabilityDescriptorDiscriminator? Type837 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1? Type838 { get; set; } + public global::OpenRouter.CapabilityDescriptorDiscriminatorType? Type838 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1Source? Type839 { get; set; } + public global::OpenRouter.SupportedParameters? Type839 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2? Type840 { get; set; } + public global::OpenRouter.ImageModelListItem? Type840 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2Source? Type841 { get; set; } + public global::OpenRouter.ImageModelsListResponse? Type841 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminator? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorSource? Type843 { get; set; } + public global::OpenRouter.ImagePricingEntryBillable? Type843 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaSource? Type844 { get; set; } + public global::OpenRouter.ImagePricingEntryUnit? Type844 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type845 { get; set; } + public global::OpenRouter.ImagePricingEntry? Type845 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMeta? Type846 { get; set; } + public global::OpenRouter.ImageEndpoint? Type846 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponse? Type848 { get; set; } + public global::OpenRouter.ImageModelEndpointsResponse? Type848 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type849 { get; set; } + public global::System.Collections.Generic.IList? Type849 { get; set; } /// /// /// - public global::OpenRouter.ByokGetParametersProvider? Type850 { get; set; } + public global::OpenRouter.ProviderOptions? Type850 { get; set; } /// /// /// - public global::OpenRouter.BYOKProviderSlug? Type851 { get; set; } + public global::OpenRouter.SpeechRequestProvider? Type851 { get; set; } /// /// /// - public global::OpenRouter.BYOKKey? Type852 { get; set; } + public global::OpenRouter.SpeechRequestResponseFormat? Type852 { get; set; } /// /// /// - public global::System.Guid? Type853 { get; set; } + public global::OpenRouter.SpeechRequest? Type853 { get; set; } /// /// /// - public global::OpenRouter.ListBYOKKeysResponse? Type854 { get; set; } + public global::OpenRouter.STTInputAudio? Type854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type855 { get; set; } + public global::OpenRouter.SttRequestProvider? Type855 { get; set; } /// /// /// - public global::OpenRouter.CreateBYOKKeyRequest? Type856 { get; set; } + public global::OpenRouter.SttRequestResponseFormat? Type856 { get; set; } /// /// /// - public global::OpenRouter.CreateByokKeyResponseData? Type857 { get; set; } + public global::OpenRouter.STTTimestampGranularity? Type857 { get; set; } /// /// /// - public global::OpenRouter.CreateBYOKKeyResponse? Type858 { get; set; } + public global::OpenRouter.STTRequest? Type858 { get; set; } /// /// /// - public global::OpenRouter.GetByokKeyResponseData? Type859 { get; set; } + public global::System.Collections.Generic.IList? Type859 { get; set; } /// /// /// - public global::OpenRouter.GetBYOKKeyResponse? Type860 { get; set; } + public global::OpenRouter.STTSegment? Type860 { get; set; } /// /// /// - public global::OpenRouter.DeleteBYOKKeyResponse? Type861 { get; set; } + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyRequest? Type862 { get; set; } + public global::OpenRouter.STTUsage? Type862 { get; set; } /// /// /// - public global::OpenRouter.UpdateByokKeyResponseData? Type863 { get; set; } + public global::OpenRouter.STTWord? Type863 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyResponse? Type864 { get; set; } + public global::OpenRouter.STTResponse? Type864 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type865 { get; set; } + public global::System.Collections.Generic.IList? Type865 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type866 { get; set; } + public global::System.Collections.Generic.IList? Type866 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type867 { get; set; } + public global::OpenRouter.ActivityItem? Type867 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type868 { get; set; } + public global::OpenRouter.ActivityResponse? Type868 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type869 { get; set; } + public global::System.Collections.Generic.IList? Type869 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type870 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataDimensionsItems? Type870 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type871 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName? Type871 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControlType? Type872 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItems? Type872 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type873 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat? Type873 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type874 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItems? Type874 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type875 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName? Type875 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type876 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType? Type876 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1? Type877 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItems? Type877 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1Type? Type878 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaData? Type878 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2? Type879 { get; set; } + public global::System.Collections.Generic.IList? Type879 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2Type? Type880 { get; set; } + public global::System.Collections.Generic.IList? Type880 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3? Type881 { get; set; } + public global::System.Collections.Generic.IList? Type881 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3Type? Type882 { get; set; } + public global::System.Collections.Generic.IList? Type882 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant4? Type883 { get; set; } + public global::OpenRouter.BetaAnalyticsGetAnalyticsMetaResponse200? Type883 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant5? Type884 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? Type884 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant6? Type885 { get; set; } + public global::System.Guid? Type885 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminator? Type886 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items? Type886 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorType? Type887 { get; set; } + public global::System.Collections.Generic.IList? Type887 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type888 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue? Type888 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type889 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems? Type889 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type890 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? Type890 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type891 { get; set; } + public global::System.Collections.Generic.IList? Type891 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type892 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items? Type892 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type893 { get; set; } + public global::System.Collections.Generic.IList? Type893 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1? Type894 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue? Type894 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type895 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItems? Type895 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2? Type896 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection? Type896 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type897 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy? Type897 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3? Type898 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaTimeRange? Type898 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type899 { get; set; } + public global::System.DateTime? Type899 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type900 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataDataItems? Type900 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type901 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataMetadata? Type901 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type902 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaData? Type902 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type903 { get; set; } + public global::System.Collections.Generic.IList? Type903 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type904 { get; set; } + public global::OpenRouter.BetaAnalyticsQueryAnalyticsResponse200? Type904 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type905 { get; set; } + public global::OpenRouter.BenchmarksGetParametersSource? Type905 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type906 { get; set; } + public global::OpenRouter.BenchmarksGetParametersTaskType? Type906 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type907 { get; set; } + public global::OpenRouter.BenchmarksGetParametersArena? Type907 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type908 { get; set; } + public global::OpenRouter.UnifiedBenchmarkPricing? Type908 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type909 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorMappingDesignArenaTournamentStats? Type909 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type910 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItems? Type910 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type911 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1? Type911 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type912 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1Source? Type912 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type913 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2? Type913 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type914 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2Source? Type914 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type915 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminator? Type915 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1? Type916 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorSource? Type916 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1Role? Type917 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaSource? Type917 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type918 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type918 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2? Type919 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMeta? Type919 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2Role? Type920 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponse? Type920 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant3? Type921 { get; set; } + public global::System.Collections.Generic.IList? Type921 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant4? Type922 { get; set; } + public global::OpenRouter.ByokGetParametersProvider? Type922 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant5? Type923 { get; set; } + public global::OpenRouter.BYOKProviderSlug? Type923 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminator? Type924 { get; set; } + public global::OpenRouter.BYOKKey? Type924 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorRole? Type925 { get; set; } + public global::OpenRouter.ListBYOKKeysResponse? Type925 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type926 { get; set; } + public global::System.Collections.Generic.IList? Type926 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type927 { get; set; } + public global::OpenRouter.CreateBYOKKeyRequest? Type927 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type928 { get; set; } + public global::OpenRouter.CreateByokKeyResponseData? Type928 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type929 { get; set; } + public global::OpenRouter.CreateBYOKKeyResponse? Type929 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type930 { get; set; } + public global::OpenRouter.GetByokKeyResponseData? Type930 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type931 { get; set; } + public global::OpenRouter.GetBYOKKeyResponse? Type931 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type932 { get; set; } + public global::OpenRouter.DeleteBYOKKeyResponse? Type932 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type933 { get; set; } + public global::OpenRouter.UpdateBYOKKeyRequest? Type933 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type934 { get; set; } + public global::OpenRouter.UpdateByokKeyResponseData? Type934 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type935 { get; set; } + public global::OpenRouter.UpdateBYOKKeyResponse? Type935 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type936 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type936 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type937 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type937 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type938 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type938 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type939 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type939 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type940 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type940 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type941 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type941 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type942 { get; set; } + public global::OpenRouter.LegacyChatContentVideoInput? Type942 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant9? Type943 { get; set; } + public global::OpenRouter.ChatContentCacheControlType? Type943 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type944 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type944 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type945 { get; set; } + public global::OpenRouter.ChatContentTextType? Type945 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type946 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type946 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type947 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type947 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type948 { get; set; } + public global::OpenRouter.ChatContentItems? Type948 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type949 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1? Type949 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type950 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1Type? Type950 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type951 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2? Type951 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1? Type952 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2Type? Type952 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type953 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3? Type953 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant2? Type954 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3Type? Type954 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3? Type955 { get; set; } + public global::OpenRouter.ChatContentItemsVariant4? Type955 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type956 { get; set; } + public global::OpenRouter.ChatContentItemsVariant5? Type956 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4? Type957 { get; set; } + public global::OpenRouter.ChatContentItemsVariant6? Type957 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type958 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminator? Type958 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5? Type959 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorType? Type959 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type960 { get; set; } + public global::System.Collections.Generic.IList? Type960 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type961 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type961 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type962 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type962 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type963 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type963 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type964 { get; set; } + public global::System.Collections.Generic.IList? Type964 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type965 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type965 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type966 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1? Type966 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type967 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type967 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type968 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2? Type968 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type969 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type969 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type970 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3? Type970 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type971 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type971 { get; set; } /// /// /// - public global::OpenRouter.ChatServerToolChoice? Type972 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant4? Type972 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type973 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant4Type? Type973 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type974 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type974 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type975 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type975 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type976 { get; set; } + public global::System.Collections.Generic.IList? Type976 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type977 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type977 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type978 { get; set; } + public global::OpenRouter.ChatToolCallType? Type978 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type979 { get; set; } + public global::OpenRouter.ChatToolCall? Type979 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type980 { get; set; } + public global::OpenRouter.ChatContentText? Type980 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type982 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type982 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type983 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type983 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type984 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type984 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type985 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type986 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type986 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type987 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type987 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type988 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type988 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type989 { get; set; } + public global::OpenRouter.ChatMessages? Type989 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type990 { get; set; } + public global::OpenRouter.ChatMessagesVariant1? Type990 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type991 { get; set; } + public global::OpenRouter.ChatMessagesVariant1Role? Type991 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type992 { get; set; } + public global::OpenRouter.OneOf? Type992 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type993 { get; set; } + public global::System.Collections.Generic.IList? Type993 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type994 { get; set; } + public global::OpenRouter.ChatMessagesVariant2? Type994 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type995 { get; set; } + public global::OpenRouter.ChatMessagesVariant2Role? Type995 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type996 { get; set; } + public global::OpenRouter.ChatMessagesVariant3? Type996 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type997 { get; set; } + public global::OpenRouter.ChatMessagesVariant4? Type997 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type998 { get; set; } + public global::OpenRouter.ChatMessagesVariant5? Type998 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type999 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminator? Type999 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type1000 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorRole? Type1000 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageServerToolUseDetails? Type1001 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type1001 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type1002 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type1002 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1003 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type1003 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1004 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type1004 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1005 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type1005 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type1006 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type1006 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1007 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type1007 { get; set; } /// /// /// - public global::OpenRouter.ClassificationsTaskGetParametersWindow? Type1008 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type1008 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationModel? Type1009 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type1009 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationItem? Type1010 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type1010 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1011 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type1011 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationMacroCategory? Type1012 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type1012 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationResponseData? Type1013 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type1013 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1014 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type1014 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1015 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type1015 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationResponse? Type1016 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type1016 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type1017 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type1017 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type1018 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8Id? Type1018 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Type1019 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant9? Type1019 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Type1020 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant10? Type1020 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersSort? Type1021 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type1021 { get; set; } /// /// /// - public global::OpenRouter.AppRankingsItem? Type1022 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type1022 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMetaVersion? Type1023 { get; set; } + public global::OpenRouter.PredictionContentTextType? Type1023 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMeta? Type1024 { get; set; } + public global::OpenRouter.PredictionContentText? Type1024 { get; set; } /// /// /// - public global::OpenRouter.AppRankingsResponse? Type1025 { get; set; } + public global::System.Collections.Generic.IList? Type1025 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1026 { get; set; } + public global::OpenRouter.PredictionContent? Type1026 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyItem? Type1027 { get; set; } + public global::OpenRouter.PredictionType? Type1027 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyResponse? Type1028 { get; set; } + public global::OpenRouter.Prediction? Type1028 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1029 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type1029 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type1030 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type1030 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type1031 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type1031 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type1032 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type1032 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type1033 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type1033 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type1034 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1? Type1034 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type1035 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type1035 { get; set; } /// /// /// - public global::OpenRouter.MultimodalMedia? Type1036 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2? Type1036 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudioType? Type1037 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2Type? Type1037 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudio? Type1038 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3? Type1038 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideoType? Type1039 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type1039 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideo? Type1040 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4? Type1040 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFileType? Type1041 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type1041 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFile? Type1042 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5? Type1042 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type1043 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type1043 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type1044 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type1044 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1045 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type1045 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1046 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type1046 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type1047 { get; set; } + public global::OpenRouter.ChatRequestStop? Type1047 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1048 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type1048 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1049 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type1049 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1050 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type1050 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1051 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type1051 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1052 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type1052 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1053 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type1053 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1054 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type1054 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1055 { get; set; } + public global::OpenRouter.ChatServerToolChoice? Type1055 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type1056 { get; set; } + public global::OpenRouter.ChatToolChoice? Type1056 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1057 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type1057 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1058 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type1058 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1059 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type1059 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1060 { get; set; } + public global::OpenRouter.ChatSearchModelsServerToolType? Type1060 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type1061 { get; set; } + public global::OpenRouter.ChatSearchModelsServerTool? Type1061 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type1062 { get; set; } + public global::OpenRouter.WebSearchConfig? Type1062 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type1063 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type1063 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type1064 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type1064 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? Type1065 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type1065 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type1066 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type1066 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type1067 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type1067 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1068 { get; set; } + public global::OpenRouter.ChatRequest? Type1068 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type1069 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1069 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1070 { get; set; } + public global::System.Collections.Generic.IList? Type1070 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type1071 { get; set; } + public global::System.Collections.Generic.IList? Type1071 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type1072 { get; set; } + public global::System.Collections.Generic.IList? Type1072 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type1073 { get; set; } + public global::OpenRouter.OneOf? Type1073 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type1074 { get; set; } + public global::System.Collections.Generic.IList? Type1074 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1075 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type1075 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1076 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type1076 { get; set; } /// /// /// - public global::OpenRouter.AABenchmarkEntry? Type1077 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type1077 { get; set; } /// /// /// - public global::OpenRouter.DABenchmarkEntry? Type1078 { get; set; } + public global::System.Collections.Generic.IList? Type1078 { get; set; } /// /// /// - public global::OpenRouter.ModelBenchmarks? Type1079 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type1079 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1080 { get; set; } + public global::System.Collections.Generic.IList? Type1080 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type1081 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type1081 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type1082 { get; set; } + public global::OpenRouter.ChatChoice? Type1082 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type1083 { get; set; } + public global::OpenRouter.ChatResultObject? Type1083 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type1084 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type1084 { get; set; } /// /// /// - public global::OpenRouter.ModelReasoning? Type1085 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type1085 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1086 { get; set; } + public global::OpenRouter.ChatUsage? Type1086 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type1087 { get; set; } + public global::OpenRouter.OneOf? Type1087 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type1088 { get; set; } + public global::OpenRouter.OneOf? Type1088 { get; set; } /// /// /// - public global::OpenRouter.Model? Type1089 { get; set; } + public global::OpenRouter.ChatResult? Type1089 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1090 { get; set; } + public global::System.Collections.Generic.IList? Type1090 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1091 { get; set; } + public global::OpenRouter.ClassificationsTaskGetParametersWindow? Type1091 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type1092 { get; set; } + public global::OpenRouter.TaskClassificationModel? Type1092 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type1093 { get; set; } + public global::OpenRouter.TaskClassificationItem? Type1093 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type1094 { get; set; } + public global::System.Collections.Generic.IList? Type1094 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type1095 { get; set; } + public global::OpenRouter.TaskClassificationMacroCategory? Type1095 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type1096 { get; set; } + public global::OpenRouter.TaskClassificationResponseData? Type1096 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type1097 { get; set; } + public global::System.Collections.Generic.IList? Type1097 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type1098 { get; set; } + public global::System.Collections.Generic.IList? Type1098 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1099 { get; set; } + public global::OpenRouter.TaskClassificationResponse? Type1099 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type1100 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type1100 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type1101 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type1101 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1102 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Type1102 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type1103 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Type1103 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type1104 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSort? Type1104 { get; set; } /// /// /// - public global::OpenRouter.FileMetadataType? Type1105 { get; set; } + public global::OpenRouter.AppRankingsItem? Type1105 { get; set; } /// /// /// - public global::OpenRouter.FileMetadata? Type1106 { get; set; } + public global::OpenRouter.RankingsDailyMetaVersion? Type1106 { get; set; } /// /// /// - public global::OpenRouter.FileListResponse? Type1107 { get; set; } + public global::OpenRouter.RankingsDailyMeta? Type1107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1108 { get; set; } + public global::OpenRouter.AppRankingsResponse? Type1108 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponseType? Type1109 { get; set; } + public global::System.Collections.Generic.IList? Type1109 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponse? Type1110 { get; set; } + public global::OpenRouter.DatasetsRankingsDailyGetParametersPeriod? Type1110 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type1111 { get; set; } + public global::OpenRouter.DatasetsRankingsDailyGetParametersModality? Type1111 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataDataRegion? Type1112 { get; set; } + public global::OpenRouter.DatasetsRankingsDailyGetParametersContextBucket? Type1112 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type1113 { get; set; } + public global::OpenRouter.DatasetsRankingsDailyGetParametersCategory? Type1113 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type1114 { get; set; } + public global::OpenRouter.DatasetsRankingsDailyGetParametersLanguageType? Type1114 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type1115 { get; set; } + public global::OpenRouter.RankingsDailyItem? Type1115 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1116 { get; set; } + public global::OpenRouter.RankingsDailyResponse? Type1116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1117 { get; set; } + public global::System.Collections.Generic.IList? Type1117 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type1118 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type1118 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type1119 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type1119 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type1120 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type1120 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type1121 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type1121 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type1122 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type1122 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type1123 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type1123 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type1124 { get; set; } + public global::OpenRouter.MultimodalMedia? Type1124 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type1125 { get; set; } + public global::OpenRouter.ContentPartInputAudioType? Type1125 { get; set; } /// /// /// - public global::OpenRouter.PromptInjectionScanScope? Type1126 { get; set; } + public global::OpenRouter.ContentPartInputAudio? Type1126 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type1127 { get; set; } + public global::OpenRouter.ContentPartInputVideoType? Type1127 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type1128 { get; set; } + public global::OpenRouter.ContentPartInputVideo? Type1128 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type1129 { get; set; } + public global::OpenRouter.ContentPartInputFileType? Type1129 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type1130 { get; set; } + public global::OpenRouter.ContentPartInputFile? Type1130 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type1131 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type1131 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type1132 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type1132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1133 { get; set; } + public global::System.Collections.Generic.IList? Type1133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1134 { get; set; } + public global::System.Collections.Generic.IList? Type1134 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type1135 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type1135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1136 { get; set; } + public global::System.Collections.Generic.IList? Type1136 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1137 { get; set; } + public global::System.Collections.Generic.IList>? Type1137 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type1138 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1139 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1139 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type1140 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1140 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type1141 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1141 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type1142 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1142 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type1143 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1143 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type1144 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type1144 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type1145 { get; set; } + public global::System.Collections.Generic.IList? Type1145 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type1146 { get; set; } + public global::System.Collections.Generic.IList? Type1146 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type1147 { get; set; } + public global::System.Collections.Generic.IList? Type1147 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type1148 { get; set; } + public global::OpenRouter.OneOf? Type1148 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type1149 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type1149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1150 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type1150 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type1151 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type1151 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type1152 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type1152 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type1153 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type1153 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type1154 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type1154 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type1155 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type1155 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type1156 { get; set; } + public global::System.Collections.Generic.IList? Type1156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1157 { get; set; } + public global::OpenRouter.InputModality? Type1157 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type1158 { get; set; } + public global::OpenRouter.InstructType? Type1158 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type1159 { get; set; } + public global::OpenRouter.OutputModality? Type1159 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type1160 { get; set; } + public global::OpenRouter.ModelGroup? Type1160 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type1161 { get; set; } + public global::OpenRouter.ModelArchitecture? Type1161 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1162 { get; set; } + public global::System.Collections.Generic.IList? Type1162 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1163 { get; set; } + public global::System.Collections.Generic.IList? Type1163 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1164 { get; set; } + public global::OpenRouter.AABenchmarkEntry? Type1164 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1165 { get; set; } + public global::OpenRouter.DABenchmarkEntry? Type1165 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type1166 { get; set; } + public global::OpenRouter.ModelBenchmarks? Type1166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1167 { get; set; } + public global::System.Collections.Generic.IList? Type1167 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1168 { get; set; } + public global::OpenRouter.DefaultParameters? Type1168 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1169 { get; set; } + public global::OpenRouter.ModelLinks? Type1169 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1170 { get; set; } + public global::OpenRouter.PerRequestLimits? Type1170 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1171 { get; set; } + public global::OpenRouter.PricingOverride? Type1171 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type1172 { get; set; } + public global::OpenRouter.PublicPricing? Type1172 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1173 { get; set; } + public global::System.Collections.Generic.IList? Type1173 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1174 { get; set; } + public global::OpenRouter.ModelReasoning? Type1174 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1175 { get; set; } + public global::System.Collections.Generic.IList? Type1175 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1176 { get; set; } + public global::OpenRouter.Parameter? Type1176 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1177 { get; set; } + public global::OpenRouter.TopProviderInfo? Type1177 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1178 { get; set; } + public global::OpenRouter.Model? Type1178 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1179 { get; set; } + public global::System.Collections.Generic.IList? Type1179 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type1180 { get; set; } + public global::System.Collections.Generic.IList? Type1180 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type1181 { get; set; } + public global::OpenRouter.ModelsListResponseLinks? Type1181 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1182 { get; set; } + public global::OpenRouter.ModelsListResponse? Type1182 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1183 { get; set; } + public global::OpenRouter.PercentileStats? Type1183 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1184 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type1184 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1185 { get; set; } + public global::OpenRouter.EndpointStatus? Type1185 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1186 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type1186 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1187 { get; set; } + public global::OpenRouter.PublicEndpoint? Type1187 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1188 { get; set; } + public global::OpenRouter.OneOf? Type1188 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1189 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type1189 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1190 { get; set; } + public global::System.Collections.Generic.IList? Type1190 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type1191 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type1191 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type1192 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type1192 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1193 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type1193 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1194 { get; set; } + public global::OpenRouter.FileMetadataType? Type1194 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1195 { get; set; } + public global::OpenRouter.FileMetadata? Type1195 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1196 { get; set; } + public global::OpenRouter.FileListResponse? Type1196 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1197 { get; set; } + public global::System.Collections.Generic.IList? Type1197 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1198 { get; set; } + public global::OpenRouter.FileDeleteResponseType? Type1198 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type1199 { get; set; } + public global::OpenRouter.FileDeleteResponse? Type1199 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1200 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type1200 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1201 { get; set; } + public global::OpenRouter.GenerationResponseDataDataRegion? Type1201 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1202 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type1202 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1203 { get; set; } + public global::OpenRouter.ProviderResponseRoutedServiceTier? Type1203 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type1204 { get; set; } + public global::OpenRouter.ProviderResponse? Type1204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1205 { get; set; } + public global::OpenRouter.GenerationResponseData? Type1205 { get; set; } /// /// /// - public global::OpenRouter.MessagesFallbackParam? Type1206 { get; set; } + public global::System.Collections.Generic.IList? Type1206 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1207 { get; set; } + public global::OpenRouter.GenerationResponse? Type1207 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1208 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type1208 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1209 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type1209 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1210 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type1210 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1211 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type1211 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1212 { get; set; } + public global::OpenRouter.GenerationContentData? Type1212 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1213 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type1213 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1214 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackRequestCategory? Type1214 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1215 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackRequest? Type1215 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1216 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackResponseData? Type1216 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1217 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackResponse? Type1217 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1218 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type1218 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1219 { get; set; } + public global::OpenRouter.PromptInjectionScanScope? Type1219 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type1220 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type1220 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type1221 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type1221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1222 { get; set; } + public global::OpenRouter.ContentFilterAction? Type1222 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type1223 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type1223 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type1224 { get; set; } + public global::OpenRouter.GuardrailInterval? Type1224 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type1225 { get; set; } + public global::OpenRouter.Guardrail? Type1225 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1226 { get; set; } + public global::System.Collections.Generic.IList? Type1226 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1227 { get; set; } + public global::System.Collections.Generic.IList? Type1227 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1228 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type1228 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1229 { get; set; } + public global::System.Collections.Generic.IList? Type1229 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1230 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1230 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type1231 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type1231 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type1232 { get; set; } + public global::System.Collections.Generic.IList? Type1232 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1233 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type1233 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1234 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type1234 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type1235 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type1235 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type1236 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type1236 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1237 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type1237 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type1238 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type1238 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type1239 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type1239 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1240 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type1240 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1241 { get; set; } + public global::OpenRouter.KeyAssignment? Type1241 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1242 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type1242 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1243 { get; set; } + public global::System.Collections.Generic.IList? Type1243 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1244 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type1244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1245 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type1245 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1246 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type1246 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1247 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type1247 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1248 { get; set; } + public global::OpenRouter.MemberAssignment? Type1248 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type1249 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type1249 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type1250 { get; set; } + public global::System.Collections.Generic.IList? Type1250 { get; set; } /// /// /// - public global::OpenRouter.AnthropicFileDocumentSourceType? Type1251 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type1251 { get; set; } /// /// /// - public global::OpenRouter.AnthropicFileDocumentSource? Type1252 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type1252 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1253 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type1253 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type1254 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type1254 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type1255 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1255 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1256 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1256 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1257 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1257 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1258 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1258 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1259 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type1259 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1260 { get; set; } + public global::System.Collections.Generic.IList? Type1260 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1261 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1261 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1262 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1262 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type1263 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1264 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1264 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1265 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type1265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1266 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1266 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1267 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1267 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1268 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1268 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1269 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1269 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1270 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1270 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1271 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1271 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1272 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1272 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1273 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type1273 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1274 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type1274 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1275 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1275 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1276 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1276 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1277 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1278 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1278 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1279 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1279 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1280 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1280 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1281 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1281 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1282 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1282 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1283 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1283 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1284 { get; set; } + public global::OpenRouter.OneOf? Type1284 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1285 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type1285 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1286 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type1286 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1287 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1287 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1288 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1288 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1289 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1290 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1290 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1291 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1291 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1292 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1292 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1293 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1293 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1294 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1294 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1295 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1295 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1296 { get; set; } + public global::OpenRouter.OneOf? Type1296 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1297 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1297 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1298 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type1298 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1299 { get; set; } + public global::System.Collections.Generic.IList? Type1299 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1300 { get; set; } + public global::OpenRouter.MessagesFallbackParam? Type1300 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1301 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1301 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1302 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1302 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1303 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1303 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1304 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1304 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1305 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1305 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1306 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1306 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1307 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1307 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1308 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1308 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1309 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1309 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1310 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1310 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1311 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1311 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1312 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1312 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1313 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1313 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1314 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type1314 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1315 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type1315 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1316 { get; set; } + public global::System.Collections.Generic.IList? Type1316 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1317 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type1317 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1318 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type1318 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1319 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type1319 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1320 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1320 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1321 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1321 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1322 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1322 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1323 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1323 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1324 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1324 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1325 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type1325 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1326 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type1326 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1327 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1327 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1328 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1328 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1329 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type1329 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1330 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type1330 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1331 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1331 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1332 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type1332 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1333 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type1333 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1334 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1334 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1335 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1335 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1336 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1336 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1337 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1337 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1338 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1338 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1339 { get; set; } + public global::System.Collections.Generic.IList? Type1339 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1340 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1340 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1341 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1341 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1342 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1342 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1343 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type1343 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1344 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type1344 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1345 { get; set; } + public global::OpenRouter.AnthropicFileDocumentSourceType? Type1345 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1346 { get; set; } + public global::OpenRouter.AnthropicFileDocumentSource? Type1346 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1347 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1347 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1348 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type1348 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1349 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type1349 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1350 { get; set; } + public global::OpenRouter.OneOf? Type1350 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1351 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1351 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1352 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1352 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1353 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1353 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1354 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1354 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1355 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1356 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1356 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1357 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1357 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1358 { get; set; } + public global::System.Collections.Generic.IList? Type1358 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1359 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1359 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1360 { get; set; } + public global::System.Collections.Generic.IList? Type1360 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1361 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1361 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1362 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1362 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1363 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1363 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1364 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1364 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems12? Type1365 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1365 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1366 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1366 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1367 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1367 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1368 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1369 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1370 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1371 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1371 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1372 { get; set; } + public global::System.Collections.Generic.IList? Type1372 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1373 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1373 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1374 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1374 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1375 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1375 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1376 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1376 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1377 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1377 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1378 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1378 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1379 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1379 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1380 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1380 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1381 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1381 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1382 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1382 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1383 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1383 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1384 { get; set; } + public global::System.Collections.Generic.IList? Type1384 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1385 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1385 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1386 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1386 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1387 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1387 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1388 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1388 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1389 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1389 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1390 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1390 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1391 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1391 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1392 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1393 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1393 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1394 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1394 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1395 { get; set; } + public global::OpenRouter.OneOf? Type1395 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1396 { get; set; } + public global::OpenRouter.OneOf? Type1396 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1397 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1397 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1398 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1398 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1399 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1399 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1400 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1400 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1401 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1401 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1402 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1402 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1403 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1403 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1404 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1404 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1405 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1405 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1406 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1406 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1407 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1407 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1408 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1408 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1409 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1409 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1410 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1410 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1411 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1411 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1412 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1412 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1413 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8Id? Type1413 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1414 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1414 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1415 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant10? Type1415 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1416 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1416 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1417 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1417 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1418 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1418 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1419 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1419 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1420 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1420 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1421 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1421 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1422 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1422 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1423 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1423 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1424 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1424 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1425 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1425 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1426 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1426 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1427 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1427 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1428 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1428 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1429 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1429 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1430 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1430 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1431 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1431 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1432 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1432 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1433 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1433 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1434 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1434 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1435 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1435 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1436 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1436 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1437 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1437 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1438 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1438 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1439 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1439 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1440 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1441 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1441 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1442 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1442 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1443 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1443 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1444 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1444 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1445 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1445 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1446 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1446 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1447 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1447 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1448 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1448 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1449 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1449 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1450 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1450 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1451 { get; set; } + public global::System.Collections.Generic.IList? Type1451 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1452 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1452 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1453 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1453 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1454 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1454 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1455 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1455 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1456 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1456 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1457 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1457 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1458 { get; set; } + public global::OpenRouter.OneOf? Type1458 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1459 { get; set; } + public global::OpenRouter.MessagesSearchModelsServerToolType? Type1459 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1460 { get; set; } + public global::OpenRouter.MessagesSearchModelsServerTool? Type1460 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1461 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems12? Type1461 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1462 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1462 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1463 { get; set; } + public global::OpenRouter.MessagesRequest? Type1463 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1464 { get; set; } + public global::OpenRouter.OneOf? Type1464 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1465 { get; set; } + public global::System.Collections.Generic.IList? Type1465 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1466 { get; set; } + public global::System.Collections.Generic.IList? Type1466 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1467 { get; set; } + public global::System.Collections.Generic.IList? Type1467 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1468 { get; set; } + public global::System.Collections.Generic.IList? Type1468 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1469 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1469 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1470 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1470 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1471 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1471 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1472 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1472 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1473 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1473 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1474 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1474 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1475 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1475 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1476 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1476 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1477 { get; set; } + public global::System.Collections.Generic.IList? Type1477 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1478 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1478 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1479 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1479 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1480 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1480 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1481 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1481 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1482 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1482 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1483 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1483 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1484 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1484 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1485 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1485 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1486 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1486 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1487 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1488 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1488 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1489 { get; set; } + public global::System.Collections.Generic.IList? Type1489 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1490 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1490 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1491 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1491 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1492 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1492 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1493 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1493 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1494 { get; set; } + public global::OpenRouter.OrAnthropicNullableCaller? Type1494 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1495 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant1? Type1495 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1496 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant1Type? Type1496 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1497 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant2? Type1497 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1498 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant2Type? Type1498 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1499 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant3? Type1499 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1500 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerVariant3Type? Type1500 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1501 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerDiscriminator? Type1501 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1502 { get; set; } + public global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? Type1502 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1503 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller2? Type1503 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1504 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1504 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1505 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1505 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1506 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1506 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1507 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1507 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1508 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1508 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1509 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1509 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1510 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1510 { get; set; } /// /// /// - public global::OpenRouter.AnthropicOutputTokensDetails? Type1511 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1511 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1512 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1512 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1513 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1513 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1514 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1514 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1515 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1515 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1516 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1517 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1517 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1518 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1518 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1519 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1519 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1520 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1520 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1521 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1521 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1522 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1522 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1523 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1523 { get; set; } /// /// /// - public global::OpenRouter.ModelResponse? Type1524 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1524 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1525 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1525 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersSort? Type1526 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1526 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersDistillable? Type1527 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1527 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersZdr? Type1528 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1528 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersRegion? Type1529 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1529 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1530 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1530 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1531 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1531 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1532 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1532 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1533 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1533 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1534 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1534 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1535 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1535 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1536 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1536 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1537 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1537 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1538 { get; set; } + public global::System.Collections.Generic.IList? Type1538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1539 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1539 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfig? Type1540 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1540 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1541 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1541 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1542 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1542 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1543 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1543 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1544 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1544 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1545 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1545 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1546 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1546 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1547 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1547 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1548 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1548 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1549 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1549 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1550 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1550 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1551 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1551 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1552 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1552 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1553 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1553 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1554 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1554 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1555 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1555 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1556 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1556 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1557 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1557 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1558 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1558 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1559 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1559 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestination? Type1560 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1560 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1? Type1561 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1561 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1562 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1562 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2? Type1563 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1563 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1564 { get; set; } + public global::System.Collections.Generic.IList? Type1564 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3? Type1565 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1565 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1566 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1566 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4? Type1567 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1567 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1568 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1568 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5? Type1569 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1569 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1570 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1570 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6? Type1571 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1571 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1572 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1572 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7? Type1573 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1573 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1574 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1574 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8? Type1575 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1575 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1576 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1576 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9? Type1577 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1577 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1578 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1578 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10? Type1579 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1579 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1580 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1580 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11? Type1581 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1581 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1582 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1582 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12? Type1583 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1583 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1584 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1584 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13? Type1585 { get; set; } + public global::System.Collections.Generic.IList? Type1585 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1586 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1586 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14? Type1587 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1587 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1588 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1588 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15? Type1589 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1589 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1590 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1590 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16? Type1591 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1591 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1592 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1592 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17? Type1593 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1593 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1594 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1594 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1595 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1595 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1596 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1596 { get; set; } /// /// /// - public global::OpenRouter.ListObservabilityDestinationsResponse? Type1597 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1598 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1598 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1599 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1599 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequest? Type1600 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1600 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1601 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1601 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1602 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1602 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1603 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1603 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1604 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1604 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1605 { get; set; } + public global::OpenRouter.MessagesResultType? Type1605 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1606 { get; set; } + public global::OpenRouter.AnthropicOutputTokensDetails? Type1606 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1607 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1607 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1608 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1608 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1609 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1609 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1610 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1610 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1611 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1611 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1612 { get; set; } + public global::System.Collections.Generic.IList? Type1612 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1613 { get; set; } + public global::OpenRouter.MessagesResult? Type1613 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1614 { get; set; } + public global::System.Collections.Generic.IList? Type1614 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1615 { get; set; } + public global::OpenRouter.OneOf? Type1615 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1616 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1616 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1617 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1617 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1618 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1618 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1619 { get; set; } + public global::OpenRouter.ModelResponse? Type1619 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1620 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1620 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1621 { get; set; } + public global::OpenRouter.ModelsGetParametersSort? Type1621 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1622 { get; set; } + public global::OpenRouter.ModelsGetParametersDistillable? Type1622 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1623 { get; set; } + public global::OpenRouter.ModelsGetParametersZdr? Type1623 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1624 { get; set; } + public global::OpenRouter.ModelsGetParametersRegion? Type1624 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1625 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1625 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1626 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1626 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1627 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1627 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1628 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupLogic? Type1628 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1629 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField? Type1629 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1630 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator? Type1630 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1631 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue? Type1631 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1632 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRulesItems? Type1632 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1633 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroup? Type1633 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1634 { get; set; } + public global::System.Collections.Generic.IList? Type1634 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1635 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1635 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1636 { get; set; } + public global::System.Collections.Generic.IList? Type1636 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1637 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1637 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponse? Type1638 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1638 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseData? Type1639 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1639 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1640 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1640 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1641 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1641 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1642 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1642 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1643 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1643 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1644 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1644 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1645 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1645 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1646 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1646 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1647 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1647 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1648 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1648 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1649 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1649 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1650 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1650 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1651 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1651 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1652 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1652 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1653 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1653 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1654 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1654 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1655 { get; set; } + public global::OpenRouter.ObservabilityDestination? Type1655 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1656 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1? Type1656 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1657 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1657 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1658 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2? Type1658 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1659 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1659 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1660 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3? Type1660 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1661 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1661 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1662 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4? Type1662 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1663 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1663 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1664 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5? Type1664 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1665 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1665 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1666 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6? Type1666 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1667 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1667 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1668 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7? Type1668 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1669 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1669 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1670 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8? Type1670 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1671 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1671 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1672 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9? Type1672 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1673 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1673 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1674 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10? Type1674 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1675 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1675 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponse? Type1676 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11? Type1676 { get; set; } /// /// /// - public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1677 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1677 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1678 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12? Type1678 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1679 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1679 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1680 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13? Type1680 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1681 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1681 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1682 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14? Type1682 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1683 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1683 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1684 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15? Type1684 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1685 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1686 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16? Type1686 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1687 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1687 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1688 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17? Type1688 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1689 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1689 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1690 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1690 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1691 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1691 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1692 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1692 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1693 { get; set; } + public global::System.Collections.Generic.IList? Type1693 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1694 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigNullable? Type1694 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1695 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1695 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1696 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequest? Type1696 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1697 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1697 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1698 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1698 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1699 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1699 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1700 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1700 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1701 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1701 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1702 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1702 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1703 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1703 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1704 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1704 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1705 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1705 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1706 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1706 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1707 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1707 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1708 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1708 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1709 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1709 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1710 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1710 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1711 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1711 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1712 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1712 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1713 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1713 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1714 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1714 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1715 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1715 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1716 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1716 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1717 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1717 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1718 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1718 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1719 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1719 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1720 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1720 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1721 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1721 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1722 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1722 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1723 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1723 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1724 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1724 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1725 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1725 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1726 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1726 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1727 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1727 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1728 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1729 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1729 { get; set; } /// /// /// - public global::OpenRouter.PresetStatus? Type1730 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1730 { get; set; } /// /// /// - public global::OpenRouter.Preset? Type1731 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1731 { get; set; } /// /// /// - public global::OpenRouter.ListPresetsResponse? Type1732 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1732 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1733 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1733 { get; set; } /// /// /// - public global::OpenRouter.PresetDesignatedVersion? Type1734 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponse? Type1734 { get; set; } /// /// /// - public global::OpenRouter.PresetWithDesignatedVersion? Type1735 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseData? Type1735 { get; set; } /// /// /// - public global::OpenRouter.GetPresetResponse? Type1736 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1736 { get; set; } /// /// /// - public global::OpenRouter.CreatePresetFromInferenceResponse? Type1737 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1737 { get; set; } /// /// /// - public global::OpenRouter.ListPresetVersionsResponse? Type1738 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1739 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1739 { get; set; } /// /// /// - public global::OpenRouter.GetPresetVersionResponse? Type1740 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1740 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1741 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1741 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1742 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1742 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1743 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1744 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1744 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1745 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1745 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1746 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1746 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1747 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1747 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1748 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1748 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1749 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1749 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1750 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1750 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1751 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1751 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1752 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1752 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1753 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1753 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1754 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1754 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1755 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1755 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1756 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1756 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1757 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1757 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1758 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1758 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1759 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1760 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1760 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1761 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1761 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1762 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1762 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1763 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1763 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1764 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1765 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1765 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1766 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1766 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1767 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1767 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1768 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1768 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1769 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1769 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1770 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1770 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1771 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1771 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1772 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponse? Type1772 { get; set; } /// /// /// - public global::OpenRouter.InputReference? Type1773 { get; set; } + public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1773 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1? Type1774 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1774 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1Type? Type1775 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1775 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2? Type1776 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1776 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2Type? Type1777 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1777 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3? Type1778 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1778 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3Type? Type1779 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1779 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminator? Type1780 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1780 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorType? Type1781 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1781 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1782 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1782 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1783 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1783 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1784 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1784 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1785 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1785 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1786 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1787 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1787 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1788 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1788 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1789 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1789 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1790 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1790 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1791 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1791 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1792 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1792 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1793 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1793 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1794 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1794 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1795 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1795 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1796 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1796 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1797 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1797 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1798 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1798 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1799 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1800 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1800 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1801 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1802 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1802 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1803 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1803 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1804 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1804 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1805 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1805 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1806 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1806 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1807 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1807 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1808 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1808 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1809 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1809 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1810 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1810 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1811 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1811 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1812 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1812 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1813 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1813 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1814 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1814 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetResetInterval? Type1815 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1815 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudget? Type1816 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1816 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1817 { get; set; } + public global::System.Collections.Generic.IList? Type1817 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1818 { get; set; } + public global::OpenRouter.PresetStatus? Type1818 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1819 { get; set; } + public global::OpenRouter.Preset? Type1819 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetInterval? Type1820 { get; set; } + public global::OpenRouter.ListPresetsResponse? Type1820 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type1821 { get; set; } + public global::System.Collections.Generic.IList? Type1821 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval? Type1822 { get; set; } + public global::OpenRouter.PresetDesignatedVersion? Type1822 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponseData? Type1823 { get; set; } + public global::OpenRouter.PresetWithDesignatedVersion? Type1823 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1824 { get; set; } + public global::OpenRouter.GetPresetResponse? Type1824 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type1825 { get; set; } + public global::OpenRouter.CreatePresetFromInferenceResponse? Type1825 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1826 { get; set; } + public global::OpenRouter.ListPresetVersionsResponse? Type1826 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1827 { get; set; } + public global::System.Collections.Generic.IList? Type1827 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1828 { get; set; } + public global::OpenRouter.GetPresetVersionResponse? Type1828 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1829 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1829 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1830 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1830 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1831 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1831 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1832 { get; set; } + public global::System.Collections.Generic.IList? Type1832 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1833 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type1833 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1834 { get; set; } + public global::System.Collections.Generic.IList? Type1834 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1835 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1835 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1836 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1836 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequest? Type1837 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1837 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1838 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1838 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1839 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1839 { get; set; } /// /// /// - public global::OpenRouter.UploadFileRequest? Type1840 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1840 { get; set; } /// /// /// - public byte[]? Type1841 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1841 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1842 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1842 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1843 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1843 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1844 { get; set; } + public global::System.Collections.Generic.IList? Type1844 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1845 { get; set; } + public global::System.Collections.Generic.IList? Type1845 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1846 { get; set; } + public global::System.Collections.Generic.IList? Type1846 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1847 { get; set; } + public global::OpenRouter.OneOf? Type1847 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1848 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1849 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1850 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankCreateRerankResponse200? Type1851 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1852 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1853 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageImageUrl? Type1854 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageType? Type1855 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageFrameType? Type1856 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImage? Type1857 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1858 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1859 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReference? Type1860 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant1? Type1861 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant1Type? Type1862 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant2? Type1863 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant2Type? Type1864 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant3? Type1865 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceVariant3Type? Type1866 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceDiscriminator? Type1867 { get; set; } + /// + /// + /// + public global::OpenRouter.InputReferenceDiscriminatorType? Type1868 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1869 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProvider? Type1870 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestResolution? Type1871 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequest? Type1872 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1873 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1874 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponseStatus? Type1875 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationUsage? Type1876 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponse? Type1877 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1878 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1879 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1880 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedSizesItems? Type1881 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModel? Type1882 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1883 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1884 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1885 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1886 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelsListResponse? Type1887 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1888 { get; set; } + /// + /// + /// + public global::OpenRouter.Workspace? Type1889 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspacesResponse? Type1890 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1891 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceRequest? Type1892 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponseData? Type1893 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponse? Type1894 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponseData? Type1895 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponse? Type1896 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceResponse? Type1897 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceRequest? Type1898 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponseData? Type1899 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponse? Type1900 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudgetResetInterval? Type1901 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudget? Type1902 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1903 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1904 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudgetInterval? Type1905 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type1906 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval? Type1907 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponseData? Type1908 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type1909 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1910 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMemberRole? Type1911 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMember? Type1912 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspaceMembersResponse? Type1913 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1914 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1915 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1916 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1917 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1918 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1919 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1920 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsRequest? Type1921 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1922 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1923 { get; set; } + /// + /// + /// + public global::OpenRouter.UploadFileRequest? Type1924 { get; set; } + /// + /// + /// + public byte[]? Type1925 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1926 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1927 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1928 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1929 { get; set; } /// /// @@ -7525,530 +7853,582 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType27 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType29 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType35 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType36 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType37 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType38 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List>? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType141 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType142 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType143 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType144 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType145 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType146 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType147 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType148 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType149 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType150 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType151 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType152 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType140 { get; set; } + public global::System.Collections.Generic.List? ListType153 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType141 { get; set; } + public global::System.Collections.Generic.List? ListType154 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType142 { get; set; } + public global::System.Collections.Generic.List? ListType155 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType143 { get; set; } + public global::System.Collections.Generic.List? ListType156 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType157 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType145 { get; set; } + public global::System.Collections.Generic.List? ListType158 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType159 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType147 { get; set; } + public global::System.Collections.Generic.List? ListType160 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType148 { get; set; } + public global::System.Collections.Generic.List? ListType161 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType149 { get; set; } + public global::System.Collections.Generic.List? ListType162 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType150 { get; set; } + public global::System.Collections.Generic.List? ListType163 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType151 { get; set; } + public global::System.Collections.Generic.List? ListType164 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType152 { get; set; } + public global::System.Collections.Generic.List? ListType165 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType153 { get; set; } + public global::System.Collections.Generic.List? ListType166 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType154 { get; set; } + public global::System.Collections.Generic.List? ListType167 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType155 { get; set; } + public global::System.Collections.Generic.List? ListType168 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType156 { get; set; } + public global::System.Collections.Generic.List? ListType169 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType157 { get; set; } + public global::System.Collections.Generic.List? ListType170 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.Json.g.cs new file mode 100644 index 00000000..fae23386 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AdditionalToolsItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItem), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItem? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.g.cs new file mode 100644 index 00000000..e8ba7e59 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItem.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Additional tools made available to the model at this point in the input + /// + public sealed partial class AdditionalToolsItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AdditionalToolsItemRole Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemTypeJsonConverter))] + public global::OpenRouter.AdditionalToolsItemType 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 AdditionalToolsItem( + global::OpenRouter.AdditionalToolsItemRole role, + global::System.Collections.Generic.IList tools, + string? id, + global::OpenRouter.AdditionalToolsItemType type) + { + this.Id = id; + this.Role = role; + this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AdditionalToolsItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemRole.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemRole.g.cs new file mode 100644 index 00000000..370e9380 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemRole.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AdditionalToolsItemRole + { + /// + /// + /// + Assistant, + /// + /// + /// + Critic, + /// + /// + /// + Developer, + /// + /// + /// + Discriminator, + /// + /// + /// + System, + /// + /// + /// + Tool, + /// + /// + /// + Unknown, + /// + /// + /// + User, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AdditionalToolsItemRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AdditionalToolsItemRole value) + { + return value switch + { + AdditionalToolsItemRole.Assistant => "assistant", + AdditionalToolsItemRole.Critic => "critic", + AdditionalToolsItemRole.Developer => "developer", + AdditionalToolsItemRole.Discriminator => "discriminator", + AdditionalToolsItemRole.System => "system", + AdditionalToolsItemRole.Tool => "tool", + AdditionalToolsItemRole.Unknown => "unknown", + AdditionalToolsItemRole.User => "user", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AdditionalToolsItemRole? ToEnum(string value) + { + return value switch + { + "assistant" => AdditionalToolsItemRole.Assistant, + "critic" => AdditionalToolsItemRole.Critic, + "developer" => AdditionalToolsItemRole.Developer, + "discriminator" => AdditionalToolsItemRole.Discriminator, + "system" => AdditionalToolsItemRole.System, + "tool" => AdditionalToolsItemRole.Tool, + "unknown" => AdditionalToolsItemRole.Unknown, + "user" => AdditionalToolsItemRole.User, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.Json.g.cs new file mode 100644 index 00000000..6304509f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct AdditionalToolsItemToolsItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItemToolsItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItemToolsItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItemToolsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItemToolsItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.g.cs new file mode 100644 index 00000000..487a6ca5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems.g.cs @@ -0,0 +1,2453 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct AdditionalToolsItemToolsItems : global::System.IEquatable + { + /// + /// Function tool definition + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AdditionalToolsItemToolsItems0? AdditionalToolsItemToolsItems0 { get; init; } +#else + public global::OpenRouter.AdditionalToolsItemToolsItems0? AdditionalToolsItemToolsItems0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AdditionalToolsItemToolsItems0))] +#endif + public bool IsAdditionalToolsItemToolsItems0 => AdditionalToolsItemToolsItems0 != null; + + /// + /// + /// + public bool TryPickAdditionalToolsItemToolsItems0( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AdditionalToolsItemToolsItems0? value) + { + value = AdditionalToolsItemToolsItems0; + return IsAdditionalToolsItemToolsItems0; + } + + /// + /// + /// + public global::OpenRouter.AdditionalToolsItemToolsItems0 PickAdditionalToolsItemToolsItems0() => IsAdditionalToolsItemToolsItems0 + ? AdditionalToolsItemToolsItems0! + : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalToolsItemToolsItems0' but the value was {ToString()}."); + + /// + /// Web search preview tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.PreviewWebSearchServerTool? PreviewWebSearchServerTool { get; init; } +#else + public global::OpenRouter.PreviewWebSearchServerTool? PreviewWebSearchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PreviewWebSearchServerTool))] +#endif + public bool IsPreviewWebSearchServerTool => PreviewWebSearchServerTool != null; + + /// + /// + /// + public bool TryPickPreviewWebSearchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.PreviewWebSearchServerTool? value) + { + value = PreviewWebSearchServerTool; + return IsPreviewWebSearchServerTool; + } + + /// + /// + /// + public global::OpenRouter.PreviewWebSearchServerTool PickPreviewWebSearchServerTool() => IsPreviewWebSearchServerTool + ? PreviewWebSearchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'PreviewWebSearchServerTool' but the value was {ToString()}."); + + /// + /// Web search preview tool configuration (2025-03-11 version) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.Preview20250311WebSearchServerTool? Preview20250311WebSearchServerTool { get; init; } +#else + public global::OpenRouter.Preview20250311WebSearchServerTool? Preview20250311WebSearchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Preview20250311WebSearchServerTool))] +#endif + public bool IsPreview20250311WebSearchServerTool => Preview20250311WebSearchServerTool != null; + + /// + /// + /// + public bool TryPickPreview20250311WebSearchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.Preview20250311WebSearchServerTool? value) + { + value = Preview20250311WebSearchServerTool; + return IsPreview20250311WebSearchServerTool; + } + + /// + /// + /// + public global::OpenRouter.Preview20250311WebSearchServerTool PickPreview20250311WebSearchServerTool() => IsPreview20250311WebSearchServerTool + ? Preview20250311WebSearchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'Preview20250311WebSearchServerTool' but the value was {ToString()}."); + + /// + /// Web search tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.LegacyWebSearchServerTool? LegacyWebSearchServerTool { get; init; } +#else + public global::OpenRouter.LegacyWebSearchServerTool? LegacyWebSearchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LegacyWebSearchServerTool))] +#endif + public bool IsLegacyWebSearchServerTool => LegacyWebSearchServerTool != null; + + /// + /// + /// + public bool TryPickLegacyWebSearchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.LegacyWebSearchServerTool? value) + { + value = LegacyWebSearchServerTool; + return IsLegacyWebSearchServerTool; + } + + /// + /// + /// + public global::OpenRouter.LegacyWebSearchServerTool PickLegacyWebSearchServerTool() => IsLegacyWebSearchServerTool + ? LegacyWebSearchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'LegacyWebSearchServerTool' but the value was {ToString()}."); + + /// + /// Web search tool configuration (2025-08-26 version) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.WebSearchServerTool? WebSearchServerTool { get; init; } +#else + public global::OpenRouter.WebSearchServerTool? WebSearchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearchServerTool))] +#endif + public bool IsWebSearchServerTool => WebSearchServerTool != null; + + /// + /// + /// + public bool TryPickWebSearchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.WebSearchServerTool? value) + { + value = WebSearchServerTool; + return IsWebSearchServerTool; + } + + /// + /// + /// + public global::OpenRouter.WebSearchServerTool PickWebSearchServerTool() => IsWebSearchServerTool + ? WebSearchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchServerTool' but the value was {ToString()}."); + + /// + /// File search tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.FileSearchServerTool? FileSearchServerTool { get; init; } +#else + public global::OpenRouter.FileSearchServerTool? FileSearchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearchServerTool))] +#endif + public bool IsFileSearchServerTool => FileSearchServerTool != null; + + /// + /// + /// + public bool TryPickFileSearchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.FileSearchServerTool? value) + { + value = FileSearchServerTool; + return IsFileSearchServerTool; + } + + /// + /// + /// + public global::OpenRouter.FileSearchServerTool PickFileSearchServerTool() => IsFileSearchServerTool + ? FileSearchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchServerTool' but the value was {ToString()}."); + + /// + /// Computer use preview tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ComputerUseServerTool? ComputerUseServerTool { get; init; } +#else + public global::OpenRouter.ComputerUseServerTool? ComputerUseServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComputerUseServerTool))] +#endif + public bool IsComputerUseServerTool => ComputerUseServerTool != null; + + /// + /// + /// + public bool TryPickComputerUseServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ComputerUseServerTool? value) + { + value = ComputerUseServerTool; + return IsComputerUseServerTool; + } + + /// + /// + /// + public global::OpenRouter.ComputerUseServerTool PickComputerUseServerTool() => IsComputerUseServerTool + ? ComputerUseServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUseServerTool' but the value was {ToString()}."); + + /// + /// Code interpreter tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CodeInterpreterServerTool? CodeInterpreterServerTool { get; init; } +#else + public global::OpenRouter.CodeInterpreterServerTool? CodeInterpreterServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreterServerTool))] +#endif + public bool IsCodeInterpreterServerTool => CodeInterpreterServerTool != null; + + /// + /// + /// + public bool TryPickCodeInterpreterServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CodeInterpreterServerTool? value) + { + value = CodeInterpreterServerTool; + return IsCodeInterpreterServerTool; + } + + /// + /// + /// + public global::OpenRouter.CodeInterpreterServerTool PickCodeInterpreterServerTool() => IsCodeInterpreterServerTool + ? CodeInterpreterServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterServerTool' but the value was {ToString()}."); + + /// + /// MCP (Model Context Protocol) tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.McpServerTool? McpServerTool { get; init; } +#else + public global::OpenRouter.McpServerTool? McpServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerTool))] +#endif + public bool IsMcpServerTool => McpServerTool != null; + + /// + /// + /// + public bool TryPickMcpServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.McpServerTool? value) + { + value = McpServerTool; + return IsMcpServerTool; + } + + /// + /// + /// + public global::OpenRouter.McpServerTool PickMcpServerTool() => IsMcpServerTool + ? McpServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerTool' but the value was {ToString()}."); + + /// + /// Image generation tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ImageGenerationServerTool? ImageGenerationServerTool { get; init; } +#else + public global::OpenRouter.ImageGenerationServerTool? ImageGenerationServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationServerTool))] +#endif + public bool IsImageGenerationServerTool => ImageGenerationServerTool != null; + + /// + /// + /// + public bool TryPickImageGenerationServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ImageGenerationServerTool? value) + { + value = ImageGenerationServerTool; + return IsImageGenerationServerTool; + } + + /// + /// + /// + public global::OpenRouter.ImageGenerationServerTool PickImageGenerationServerTool() => IsImageGenerationServerTool + ? ImageGenerationServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationServerTool' but the value was {ToString()}."); + + /// + /// Local shell tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CodexLocalShellTool? CodexLocalShellTool { get; init; } +#else + public global::OpenRouter.CodexLocalShellTool? CodexLocalShellTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodexLocalShellTool))] +#endif + public bool IsCodexLocalShellTool => CodexLocalShellTool != null; + + /// + /// + /// + public bool TryPickCodexLocalShellTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CodexLocalShellTool? value) + { + value = CodexLocalShellTool; + return IsCodexLocalShellTool; + } + + /// + /// + /// + public global::OpenRouter.CodexLocalShellTool PickCodexLocalShellTool() => IsCodexLocalShellTool + ? CodexLocalShellTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'CodexLocalShellTool' but the value was {ToString()}."); + + /// + /// Shell tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ShellServerTool? ShellServerTool { get; init; } +#else + public global::OpenRouter.ShellServerTool? ShellServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ShellServerTool))] +#endif + public bool IsShellServerTool => ShellServerTool != null; + + /// + /// + /// + public bool TryPickShellServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ShellServerTool? value) + { + value = ShellServerTool; + return IsShellServerTool; + } + + /// + /// + /// + public global::OpenRouter.ShellServerTool PickShellServerTool() => IsShellServerTool + ? ShellServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'ShellServerTool' but the value was {ToString()}."); + + /// + /// Apply patch tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchServerTool? ApplyPatchServerTool { get; init; } +#else + public global::OpenRouter.ApplyPatchServerTool? ApplyPatchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchServerTool))] +#endif + public bool IsApplyPatchServerTool => ApplyPatchServerTool != null; + + /// + /// + /// + public bool TryPickApplyPatchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchServerTool? value) + { + value = ApplyPatchServerTool; + return IsApplyPatchServerTool; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchServerTool PickApplyPatchServerTool() => IsApplyPatchServerTool + ? ApplyPatchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchServerTool' but the value was {ToString()}."); + + /// + /// Custom tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CustomTool? CustomTool { get; init; } +#else + public global::OpenRouter.CustomTool? CustomTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomTool))] +#endif + public bool IsCustomTool => CustomTool != null; + + /// + /// + /// + public bool TryPickCustomTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CustomTool? value) + { + value = CustomTool; + return IsCustomTool; + } + + /// + /// + /// + public global::OpenRouter.CustomTool PickCustomTool() => IsCustomTool + ? CustomTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); + + /// + /// Groups function/custom tools under a shared namespace + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.NamespaceTool? NamespaceTool { get; init; } +#else + public global::OpenRouter.NamespaceTool? NamespaceTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NamespaceTool))] +#endif + public bool IsNamespaceTool => NamespaceTool != null; + + /// + /// + /// + public bool TryPickNamespaceTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.NamespaceTool? value) + { + value = NamespaceTool; + return IsNamespaceTool; + } + + /// + /// + /// + public global::OpenRouter.NamespaceTool PickNamespaceTool() => IsNamespaceTool + ? NamespaceTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'NamespaceTool' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AdvisorServerToolOpenRouter? AdvisorServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.AdvisorServerToolOpenRouter? AdvisorServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AdvisorServerToolOpenRouter))] +#endif + public bool IsAdvisorServerToolOpenRouter => AdvisorServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickAdvisorServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AdvisorServerToolOpenRouter? value) + { + value = AdvisorServerToolOpenRouter; + return IsAdvisorServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.AdvisorServerToolOpenRouter PickAdvisorServerToolOpenRouter() => IsAdvisorServerToolOpenRouter + ? AdvisorServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'AdvisorServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: delegates self-contained tasks to a smaller, cheaper, faster worker model (any OpenRouter model) mid-generation and returns its outcome. The worker may run as a sub-agent with its own tools. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.SubagentServerToolOpenRouter? SubagentServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.SubagentServerToolOpenRouter? SubagentServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SubagentServerToolOpenRouter))] +#endif + public bool IsSubagentServerToolOpenRouter => SubagentServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickSubagentServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.SubagentServerToolOpenRouter? value) + { + value = SubagentServerToolOpenRouter; + return IsSubagentServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.SubagentServerToolOpenRouter PickSubagentServerToolOpenRouter() => IsSubagentServerToolOpenRouter + ? SubagentServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'SubagentServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: returns the current date and time + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.DatetimeServerTool? DatetimeServerTool { get; init; } +#else + public global::OpenRouter.DatetimeServerTool? DatetimeServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DatetimeServerTool))] +#endif + public bool IsDatetimeServerTool => DatetimeServerTool != null; + + /// + /// + /// + public bool TryPickDatetimeServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.DatetimeServerTool? value) + { + value = DatetimeServerTool; + return IsDatetimeServerTool; + } + + /// + /// + /// + public global::OpenRouter.DatetimeServerTool PickDatetimeServerTool() => IsDatetimeServerTool + ? DatetimeServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'DatetimeServerTool' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: read, write, edit, and list workspace files via the Files API. Requires the `x-openrouter-file-ids: openrouter` request header. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.FilesServerTool? FilesServerTool { get; init; } +#else + public global::OpenRouter.FilesServerTool? FilesServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FilesServerTool))] +#endif + public bool IsFilesServerTool => FilesServerTool != null; + + /// + /// + /// + public bool TryPickFilesServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.FilesServerTool? value) + { + value = FilesServerTool; + return IsFilesServerTool; + } + + /// + /// + /// + public global::OpenRouter.FilesServerTool PickFilesServerTool() => IsFilesServerTool + ? FilesServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'FilesServerTool' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: fans out the user prompt to a panel of analysis models, then asks a judge model to summarize their collective output as structured JSON the outer model can synthesize from. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.FusionServerToolOpenRouter? FusionServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.FusionServerToolOpenRouter? FusionServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FusionServerToolOpenRouter))] +#endif + public bool IsFusionServerToolOpenRouter => FusionServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickFusionServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.FusionServerToolOpenRouter? value) + { + value = FusionServerToolOpenRouter; + return IsFusionServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.FusionServerToolOpenRouter PickFusionServerToolOpenRouter() => IsFusionServerToolOpenRouter + ? FusionServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'FusionServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: generates images from text prompts using an image generation model + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationServerToolOpenRouter))] +#endif + public bool IsImageGenerationServerToolOpenRouter => ImageGenerationServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickImageGenerationServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ImageGenerationServerToolOpenRouter? value) + { + value = ImageGenerationServerToolOpenRouter; + return IsImageGenerationServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.ImageGenerationServerToolOpenRouter PickImageGenerationServerToolOpenRouter() => IsImageGenerationServerToolOpenRouter + ? ImageGenerationServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.SearchModelsServerToolOpenRouter? SearchModelsServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.SearchModelsServerToolOpenRouter? SearchModelsServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SearchModelsServerToolOpenRouter))] +#endif + public bool IsSearchModelsServerToolOpenRouter => SearchModelsServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickSearchModelsServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.SearchModelsServerToolOpenRouter? value) + { + value = SearchModelsServerToolOpenRouter; + return IsSearchModelsServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.SearchModelsServerToolOpenRouter PickSearchModelsServerToolOpenRouter() => IsSearchModelsServerToolOpenRouter + ? SearchModelsServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'SearchModelsServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: fetches full content from a URL (web page or PDF) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.WebFetchServerTool? WebFetchServerTool { get; init; } +#else + public global::OpenRouter.WebFetchServerTool? WebFetchServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebFetchServerTool))] +#endif + public bool IsWebFetchServerTool => WebFetchServerTool != null; + + /// + /// + /// + public bool TryPickWebFetchServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.WebFetchServerTool? value) + { + value = WebFetchServerTool; + return IsWebFetchServerTool; + } + + /// + /// + /// + public global::OpenRouter.WebFetchServerTool PickWebFetchServerTool() => IsWebFetchServerTool + ? WebFetchServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebFetchServerTool' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: searches the web for current information + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.WebSearchServerToolOpenRouter? WebSearchServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.WebSearchServerToolOpenRouter? WebSearchServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearchServerToolOpenRouter))] +#endif + public bool IsWebSearchServerToolOpenRouter => WebSearchServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickWebSearchServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.WebSearchServerToolOpenRouter? value) + { + value = WebSearchServerToolOpenRouter; + return IsWebSearchServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.WebSearchServerToolOpenRouter PickWebSearchServerToolOpenRouter() => IsWebSearchServerToolOpenRouter + ? WebSearchServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ApplyPatchServerToolOpenRouter? ApplyPatchServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ApplyPatchServerToolOpenRouter? ApplyPatchServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApplyPatchServerToolOpenRouter))] +#endif + public bool IsApplyPatchServerToolOpenRouter => ApplyPatchServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickApplyPatchServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ApplyPatchServerToolOpenRouter? value) + { + value = ApplyPatchServerToolOpenRouter; + return IsApplyPatchServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.ApplyPatchServerToolOpenRouter PickApplyPatchServerToolOpenRouter() => IsApplyPatchServerToolOpenRouter + ? ApplyPatchServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.BashServerTool? BashServerTool { get; init; } +#else + public global::OpenRouter.BashServerTool? BashServerTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BashServerTool))] +#endif + public bool IsBashServerTool => BashServerTool != null; + + /// + /// + /// + public bool TryPickBashServerTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.BashServerTool? value) + { + value = BashServerTool; + return IsBashServerTool; + } + + /// + /// + /// + public global::OpenRouter.BashServerTool PickBashServerTool() => IsBashServerTool + ? BashServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'BashServerTool' but the value was {ToString()}."); + + /// + /// OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ShellServerToolOpenRouter? ShellServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ShellServerToolOpenRouter? ShellServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ShellServerToolOpenRouter))] +#endif + public bool IsShellServerToolOpenRouter => ShellServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickShellServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ShellServerToolOpenRouter? value) + { + value = ShellServerToolOpenRouter; + return IsShellServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.ShellServerToolOpenRouter PickShellServerToolOpenRouter() => IsShellServerToolOpenRouter + ? ShellServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'ShellServerToolOpenRouter' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AdditionalToolsItemToolsItems27? AdditionalToolsItemToolsItems27 { get; init; } +#else + public global::OpenRouter.AdditionalToolsItemToolsItems27? AdditionalToolsItemToolsItems27 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AdditionalToolsItemToolsItems27))] +#endif + public bool IsAdditionalToolsItemToolsItems27 => AdditionalToolsItemToolsItems27 != null; + + /// + /// + /// + public bool TryPickAdditionalToolsItemToolsItems27( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AdditionalToolsItemToolsItems27? value) + { + value = AdditionalToolsItemToolsItems27; + return IsAdditionalToolsItemToolsItems27; + } + + /// + /// + /// + public global::OpenRouter.AdditionalToolsItemToolsItems27 PickAdditionalToolsItemToolsItems27() => IsAdditionalToolsItemToolsItems27 + ? AdditionalToolsItemToolsItems27! + : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalToolsItemToolsItems27' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.AdditionalToolsItemToolsItems0 value) => new AdditionalToolsItemToolsItems((global::OpenRouter.AdditionalToolsItemToolsItems0?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AdditionalToolsItemToolsItems0?(AdditionalToolsItemToolsItems @this) => @this.AdditionalToolsItemToolsItems0; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.AdditionalToolsItemToolsItems0? value) + { + AdditionalToolsItemToolsItems0 = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromAdditionalToolsItemToolsItems0(global::OpenRouter.AdditionalToolsItemToolsItems0? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.PreviewWebSearchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.PreviewWebSearchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.PreviewWebSearchServerTool?(AdditionalToolsItemToolsItems @this) => @this.PreviewWebSearchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.PreviewWebSearchServerTool? value) + { + PreviewWebSearchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromPreviewWebSearchServerTool(global::OpenRouter.PreviewWebSearchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.Preview20250311WebSearchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.Preview20250311WebSearchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.Preview20250311WebSearchServerTool?(AdditionalToolsItemToolsItems @this) => @this.Preview20250311WebSearchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.Preview20250311WebSearchServerTool? value) + { + Preview20250311WebSearchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromPreview20250311WebSearchServerTool(global::OpenRouter.Preview20250311WebSearchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.LegacyWebSearchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.LegacyWebSearchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.LegacyWebSearchServerTool?(AdditionalToolsItemToolsItems @this) => @this.LegacyWebSearchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.LegacyWebSearchServerTool? value) + { + LegacyWebSearchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromLegacyWebSearchServerTool(global::OpenRouter.LegacyWebSearchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.WebSearchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.WebSearchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.WebSearchServerTool?(AdditionalToolsItemToolsItems @this) => @this.WebSearchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.WebSearchServerTool? value) + { + WebSearchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromWebSearchServerTool(global::OpenRouter.WebSearchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.FileSearchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.FileSearchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.FileSearchServerTool?(AdditionalToolsItemToolsItems @this) => @this.FileSearchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.FileSearchServerTool? value) + { + FileSearchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromFileSearchServerTool(global::OpenRouter.FileSearchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ComputerUseServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ComputerUseServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ComputerUseServerTool?(AdditionalToolsItemToolsItems @this) => @this.ComputerUseServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ComputerUseServerTool? value) + { + ComputerUseServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromComputerUseServerTool(global::OpenRouter.ComputerUseServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.CodeInterpreterServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.CodeInterpreterServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CodeInterpreterServerTool?(AdditionalToolsItemToolsItems @this) => @this.CodeInterpreterServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.CodeInterpreterServerTool? value) + { + CodeInterpreterServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromCodeInterpreterServerTool(global::OpenRouter.CodeInterpreterServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.McpServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.McpServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.McpServerTool?(AdditionalToolsItemToolsItems @this) => @this.McpServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.McpServerTool? value) + { + McpServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromMcpServerTool(global::OpenRouter.McpServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ImageGenerationServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ImageGenerationServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ImageGenerationServerTool?(AdditionalToolsItemToolsItems @this) => @this.ImageGenerationServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ImageGenerationServerTool? value) + { + ImageGenerationServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromImageGenerationServerTool(global::OpenRouter.ImageGenerationServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.CodexLocalShellTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.CodexLocalShellTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CodexLocalShellTool?(AdditionalToolsItemToolsItems @this) => @this.CodexLocalShellTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.CodexLocalShellTool? value) + { + CodexLocalShellTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromCodexLocalShellTool(global::OpenRouter.CodexLocalShellTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ShellServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ShellServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ShellServerTool?(AdditionalToolsItemToolsItems @this) => @this.ShellServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ShellServerTool? value) + { + ShellServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromShellServerTool(global::OpenRouter.ShellServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ApplyPatchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ApplyPatchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchServerTool?(AdditionalToolsItemToolsItems @this) => @this.ApplyPatchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ApplyPatchServerTool? value) + { + ApplyPatchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromApplyPatchServerTool(global::OpenRouter.ApplyPatchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.CustomTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.CustomTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CustomTool?(AdditionalToolsItemToolsItems @this) => @this.CustomTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.CustomTool? value) + { + CustomTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromCustomTool(global::OpenRouter.CustomTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.NamespaceTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.NamespaceTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.NamespaceTool?(AdditionalToolsItemToolsItems @this) => @this.NamespaceTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.NamespaceTool? value) + { + NamespaceTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromNamespaceTool(global::OpenRouter.NamespaceTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.AdvisorServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.AdvisorServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AdvisorServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.AdvisorServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.AdvisorServerToolOpenRouter? value) + { + AdvisorServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromAdvisorServerToolOpenRouter(global::OpenRouter.AdvisorServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.SubagentServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.SubagentServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.SubagentServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.SubagentServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.SubagentServerToolOpenRouter? value) + { + SubagentServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromSubagentServerToolOpenRouter(global::OpenRouter.SubagentServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.DatetimeServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.DatetimeServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.DatetimeServerTool?(AdditionalToolsItemToolsItems @this) => @this.DatetimeServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.DatetimeServerTool? value) + { + DatetimeServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromDatetimeServerTool(global::OpenRouter.DatetimeServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.FilesServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.FilesServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.FilesServerTool?(AdditionalToolsItemToolsItems @this) => @this.FilesServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.FilesServerTool? value) + { + FilesServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromFilesServerTool(global::OpenRouter.FilesServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.FusionServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.FusionServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.FusionServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.FusionServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.FusionServerToolOpenRouter? value) + { + FusionServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromFusionServerToolOpenRouter(global::OpenRouter.FusionServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ImageGenerationServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ImageGenerationServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.ImageGenerationServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter? value) + { + ImageGenerationServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromImageGenerationServerToolOpenRouter(global::OpenRouter.ImageGenerationServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.SearchModelsServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.SearchModelsServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.SearchModelsServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.SearchModelsServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.SearchModelsServerToolOpenRouter? value) + { + SearchModelsServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromSearchModelsServerToolOpenRouter(global::OpenRouter.SearchModelsServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.WebFetchServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.WebFetchServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.WebFetchServerTool?(AdditionalToolsItemToolsItems @this) => @this.WebFetchServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.WebFetchServerTool? value) + { + WebFetchServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromWebFetchServerTool(global::OpenRouter.WebFetchServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.WebSearchServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.WebSearchServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.WebSearchServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.WebSearchServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.WebSearchServerToolOpenRouter? value) + { + WebSearchServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromWebSearchServerToolOpenRouter(global::OpenRouter.WebSearchServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ApplyPatchServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ApplyPatchServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ApplyPatchServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.ApplyPatchServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ApplyPatchServerToolOpenRouter? value) + { + ApplyPatchServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromApplyPatchServerToolOpenRouter(global::OpenRouter.ApplyPatchServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.BashServerTool value) => new AdditionalToolsItemToolsItems((global::OpenRouter.BashServerTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.BashServerTool?(AdditionalToolsItemToolsItems @this) => @this.BashServerTool; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.BashServerTool? value) + { + BashServerTool = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromBashServerTool(global::OpenRouter.BashServerTool? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.ShellServerToolOpenRouter value) => new AdditionalToolsItemToolsItems((global::OpenRouter.ShellServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ShellServerToolOpenRouter?(AdditionalToolsItemToolsItems @this) => @this.ShellServerToolOpenRouter; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.ShellServerToolOpenRouter? value) + { + ShellServerToolOpenRouter = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromShellServerToolOpenRouter(global::OpenRouter.ShellServerToolOpenRouter? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public static implicit operator AdditionalToolsItemToolsItems(global::OpenRouter.AdditionalToolsItemToolsItems27 value) => new AdditionalToolsItemToolsItems((global::OpenRouter.AdditionalToolsItemToolsItems27?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AdditionalToolsItemToolsItems27?(AdditionalToolsItemToolsItems @this) => @this.AdditionalToolsItemToolsItems27; + + /// + /// + /// + public AdditionalToolsItemToolsItems(global::OpenRouter.AdditionalToolsItemToolsItems27? value) + { + AdditionalToolsItemToolsItems27 = value; + } + + /// + /// + /// + public static AdditionalToolsItemToolsItems FromAdditionalToolsItemToolsItems27(global::OpenRouter.AdditionalToolsItemToolsItems27? value) => new AdditionalToolsItemToolsItems(value); + + /// + /// + /// + public AdditionalToolsItemToolsItems( + global::OpenRouter.AdditionalToolsItemToolsItems0? additionalToolsItemToolsItems0, + global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool, + global::OpenRouter.Preview20250311WebSearchServerTool? preview20250311WebSearchServerTool, + global::OpenRouter.LegacyWebSearchServerTool? legacyWebSearchServerTool, + global::OpenRouter.WebSearchServerTool? webSearchServerTool, + global::OpenRouter.FileSearchServerTool? fileSearchServerTool, + global::OpenRouter.ComputerUseServerTool? computerUseServerTool, + global::OpenRouter.CodeInterpreterServerTool? codeInterpreterServerTool, + global::OpenRouter.McpServerTool? mcpServerTool, + global::OpenRouter.ImageGenerationServerTool? imageGenerationServerTool, + global::OpenRouter.CodexLocalShellTool? codexLocalShellTool, + global::OpenRouter.ShellServerTool? shellServerTool, + global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool, + global::OpenRouter.CustomTool? customTool, + global::OpenRouter.NamespaceTool? namespaceTool, + global::OpenRouter.AdvisorServerToolOpenRouter? advisorServerToolOpenRouter, + global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter, + global::OpenRouter.DatetimeServerTool? datetimeServerTool, + global::OpenRouter.FilesServerTool? filesServerTool, + global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter, + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, + global::OpenRouter.SearchModelsServerToolOpenRouter? searchModelsServerToolOpenRouter, + global::OpenRouter.WebFetchServerTool? webFetchServerTool, + global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter, + global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter, + global::OpenRouter.BashServerTool? bashServerTool, + global::OpenRouter.ShellServerToolOpenRouter? shellServerToolOpenRouter, + global::OpenRouter.AdditionalToolsItemToolsItems27? additionalToolsItemToolsItems27 + ) + { + AdditionalToolsItemToolsItems0 = additionalToolsItemToolsItems0; + PreviewWebSearchServerTool = previewWebSearchServerTool; + Preview20250311WebSearchServerTool = preview20250311WebSearchServerTool; + LegacyWebSearchServerTool = legacyWebSearchServerTool; + WebSearchServerTool = webSearchServerTool; + FileSearchServerTool = fileSearchServerTool; + ComputerUseServerTool = computerUseServerTool; + CodeInterpreterServerTool = codeInterpreterServerTool; + McpServerTool = mcpServerTool; + ImageGenerationServerTool = imageGenerationServerTool; + CodexLocalShellTool = codexLocalShellTool; + ShellServerTool = shellServerTool; + ApplyPatchServerTool = applyPatchServerTool; + CustomTool = customTool; + NamespaceTool = namespaceTool; + AdvisorServerToolOpenRouter = advisorServerToolOpenRouter; + SubagentServerToolOpenRouter = subagentServerToolOpenRouter; + DatetimeServerTool = datetimeServerTool; + FilesServerTool = filesServerTool; + FusionServerToolOpenRouter = fusionServerToolOpenRouter; + ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; + SearchModelsServerToolOpenRouter = searchModelsServerToolOpenRouter; + WebFetchServerTool = webFetchServerTool; + WebSearchServerToolOpenRouter = webSearchServerToolOpenRouter; + ApplyPatchServerToolOpenRouter = applyPatchServerToolOpenRouter; + BashServerTool = bashServerTool; + ShellServerToolOpenRouter = shellServerToolOpenRouter; + AdditionalToolsItemToolsItems27 = additionalToolsItemToolsItems27; + } + + /// + /// + /// + public object? Object => + AdditionalToolsItemToolsItems27 as object ?? + ShellServerToolOpenRouter as object ?? + BashServerTool as object ?? + ApplyPatchServerToolOpenRouter as object ?? + WebSearchServerToolOpenRouter as object ?? + WebFetchServerTool as object ?? + SearchModelsServerToolOpenRouter as object ?? + ImageGenerationServerToolOpenRouter as object ?? + FusionServerToolOpenRouter as object ?? + FilesServerTool as object ?? + DatetimeServerTool as object ?? + SubagentServerToolOpenRouter as object ?? + AdvisorServerToolOpenRouter as object ?? + NamespaceTool as object ?? + CustomTool as object ?? + ApplyPatchServerTool as object ?? + ShellServerTool as object ?? + CodexLocalShellTool as object ?? + ImageGenerationServerTool as object ?? + McpServerTool as object ?? + CodeInterpreterServerTool as object ?? + ComputerUseServerTool as object ?? + FileSearchServerTool as object ?? + WebSearchServerTool as object ?? + LegacyWebSearchServerTool as object ?? + Preview20250311WebSearchServerTool as object ?? + PreviewWebSearchServerTool as object ?? + AdditionalToolsItemToolsItems0 as object + ; + + /// + /// + /// + public override string? ToString() => + AdditionalToolsItemToolsItems0?.ToString() ?? + PreviewWebSearchServerTool?.ToString() ?? + Preview20250311WebSearchServerTool?.ToString() ?? + LegacyWebSearchServerTool?.ToString() ?? + WebSearchServerTool?.ToString() ?? + FileSearchServerTool?.ToString() ?? + ComputerUseServerTool?.ToString() ?? + CodeInterpreterServerTool?.ToString() ?? + McpServerTool?.ToString() ?? + ImageGenerationServerTool?.ToString() ?? + CodexLocalShellTool?.ToString() ?? + ShellServerTool?.ToString() ?? + ApplyPatchServerTool?.ToString() ?? + CustomTool?.ToString() ?? + NamespaceTool?.ToString() ?? + AdvisorServerToolOpenRouter?.ToString() ?? + SubagentServerToolOpenRouter?.ToString() ?? + DatetimeServerTool?.ToString() ?? + FilesServerTool?.ToString() ?? + FusionServerToolOpenRouter?.ToString() ?? + ImageGenerationServerToolOpenRouter?.ToString() ?? + SearchModelsServerToolOpenRouter?.ToString() ?? + WebFetchServerTool?.ToString() ?? + WebSearchServerToolOpenRouter?.ToString() ?? + ApplyPatchServerToolOpenRouter?.ToString() ?? + BashServerTool?.ToString() ?? + ShellServerToolOpenRouter?.ToString() ?? + AdditionalToolsItemToolsItems27?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && IsBashServerTool && !IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && IsShellServerToolOpenRouter && !IsAdditionalToolsItemToolsItems27 || !IsAdditionalToolsItemToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter && IsAdditionalToolsItemToolsItems27; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? additionalToolsItemToolsItems0 = null, + global::System.Func? previewWebSearchServerTool = null, + global::System.Func? preview20250311WebSearchServerTool = null, + global::System.Func? legacyWebSearchServerTool = null, + global::System.Func? webSearchServerTool = null, + global::System.Func? fileSearchServerTool = null, + global::System.Func? computerUseServerTool = null, + global::System.Func? codeInterpreterServerTool = null, + global::System.Func? mcpServerTool = null, + global::System.Func? imageGenerationServerTool = null, + global::System.Func? codexLocalShellTool = null, + global::System.Func? shellServerTool = null, + global::System.Func? applyPatchServerTool = null, + global::System.Func? customTool = null, + global::System.Func? namespaceTool = null, + global::System.Func? advisorServerToolOpenRouter = null, + global::System.Func? subagentServerToolOpenRouter = null, + global::System.Func? datetimeServerTool = null, + global::System.Func? filesServerTool = null, + global::System.Func? fusionServerToolOpenRouter = null, + global::System.Func? imageGenerationServerToolOpenRouter = null, + global::System.Func? searchModelsServerToolOpenRouter = null, + global::System.Func? webFetchServerTool = null, + global::System.Func? webSearchServerToolOpenRouter = null, + global::System.Func? applyPatchServerToolOpenRouter = null, + global::System.Func? bashServerTool = null, + global::System.Func? shellServerToolOpenRouter = null, + global::System.Func? additionalToolsItemToolsItems27 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAdditionalToolsItemToolsItems0 && additionalToolsItemToolsItems0 != null) + { + return additionalToolsItemToolsItems0(AdditionalToolsItemToolsItems0!); + } + else if (IsPreviewWebSearchServerTool && previewWebSearchServerTool != null) + { + return previewWebSearchServerTool(PreviewWebSearchServerTool!); + } + else if (IsPreview20250311WebSearchServerTool && preview20250311WebSearchServerTool != null) + { + return preview20250311WebSearchServerTool(Preview20250311WebSearchServerTool!); + } + else if (IsLegacyWebSearchServerTool && legacyWebSearchServerTool != null) + { + return legacyWebSearchServerTool(LegacyWebSearchServerTool!); + } + else if (IsWebSearchServerTool && webSearchServerTool != null) + { + return webSearchServerTool(WebSearchServerTool!); + } + else if (IsFileSearchServerTool && fileSearchServerTool != null) + { + return fileSearchServerTool(FileSearchServerTool!); + } + else if (IsComputerUseServerTool && computerUseServerTool != null) + { + return computerUseServerTool(ComputerUseServerTool!); + } + else if (IsCodeInterpreterServerTool && codeInterpreterServerTool != null) + { + return codeInterpreterServerTool(CodeInterpreterServerTool!); + } + else if (IsMcpServerTool && mcpServerTool != null) + { + return mcpServerTool(McpServerTool!); + } + else if (IsImageGenerationServerTool && imageGenerationServerTool != null) + { + return imageGenerationServerTool(ImageGenerationServerTool!); + } + else if (IsCodexLocalShellTool && codexLocalShellTool != null) + { + return codexLocalShellTool(CodexLocalShellTool!); + } + else if (IsShellServerTool && shellServerTool != null) + { + return shellServerTool(ShellServerTool!); + } + else if (IsApplyPatchServerTool && applyPatchServerTool != null) + { + return applyPatchServerTool(ApplyPatchServerTool!); + } + else if (IsCustomTool && customTool != null) + { + return customTool(CustomTool!); + } + else if (IsNamespaceTool && namespaceTool != null) + { + return namespaceTool(NamespaceTool!); + } + else if (IsAdvisorServerToolOpenRouter && advisorServerToolOpenRouter != null) + { + return advisorServerToolOpenRouter(AdvisorServerToolOpenRouter!); + } + else if (IsSubagentServerToolOpenRouter && subagentServerToolOpenRouter != null) + { + return subagentServerToolOpenRouter(SubagentServerToolOpenRouter!); + } + else if (IsDatetimeServerTool && datetimeServerTool != null) + { + return datetimeServerTool(DatetimeServerTool!); + } + else if (IsFilesServerTool && filesServerTool != null) + { + return filesServerTool(FilesServerTool!); + } + else if (IsFusionServerToolOpenRouter && fusionServerToolOpenRouter != null) + { + return fusionServerToolOpenRouter(FusionServerToolOpenRouter!); + } + else if (IsImageGenerationServerToolOpenRouter && imageGenerationServerToolOpenRouter != null) + { + return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); + } + else if (IsSearchModelsServerToolOpenRouter && searchModelsServerToolOpenRouter != null) + { + return searchModelsServerToolOpenRouter(SearchModelsServerToolOpenRouter!); + } + else if (IsWebFetchServerTool && webFetchServerTool != null) + { + return webFetchServerTool(WebFetchServerTool!); + } + else if (IsWebSearchServerToolOpenRouter && webSearchServerToolOpenRouter != null) + { + return webSearchServerToolOpenRouter(WebSearchServerToolOpenRouter!); + } + else if (IsApplyPatchServerToolOpenRouter && applyPatchServerToolOpenRouter != null) + { + return applyPatchServerToolOpenRouter(ApplyPatchServerToolOpenRouter!); + } + else if (IsBashServerTool && bashServerTool != null) + { + return bashServerTool(BashServerTool!); + } + else if (IsShellServerToolOpenRouter && shellServerToolOpenRouter != null) + { + return shellServerToolOpenRouter(ShellServerToolOpenRouter!); + } + else if (IsAdditionalToolsItemToolsItems27 && additionalToolsItemToolsItems27 != null) + { + return additionalToolsItemToolsItems27(AdditionalToolsItemToolsItems27!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? additionalToolsItemToolsItems0 = null, + + global::System.Action? previewWebSearchServerTool = null, + + global::System.Action? preview20250311WebSearchServerTool = null, + + global::System.Action? legacyWebSearchServerTool = null, + + global::System.Action? webSearchServerTool = null, + + global::System.Action? fileSearchServerTool = null, + + global::System.Action? computerUseServerTool = null, + + global::System.Action? codeInterpreterServerTool = null, + + global::System.Action? mcpServerTool = null, + + global::System.Action? imageGenerationServerTool = null, + + global::System.Action? codexLocalShellTool = null, + + global::System.Action? shellServerTool = null, + + global::System.Action? applyPatchServerTool = null, + + global::System.Action? customTool = null, + + global::System.Action? namespaceTool = null, + + global::System.Action? advisorServerToolOpenRouter = null, + + global::System.Action? subagentServerToolOpenRouter = null, + + global::System.Action? datetimeServerTool = null, + + global::System.Action? filesServerTool = null, + + global::System.Action? fusionServerToolOpenRouter = null, + + global::System.Action? imageGenerationServerToolOpenRouter = null, + + global::System.Action? searchModelsServerToolOpenRouter = null, + + global::System.Action? webFetchServerTool = null, + + global::System.Action? webSearchServerToolOpenRouter = null, + + global::System.Action? applyPatchServerToolOpenRouter = null, + + global::System.Action? bashServerTool = null, + + global::System.Action? shellServerToolOpenRouter = null, + + global::System.Action? additionalToolsItemToolsItems27 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAdditionalToolsItemToolsItems0) + { + additionalToolsItemToolsItems0?.Invoke(AdditionalToolsItemToolsItems0!); + } + else if (IsPreviewWebSearchServerTool) + { + previewWebSearchServerTool?.Invoke(PreviewWebSearchServerTool!); + } + else if (IsPreview20250311WebSearchServerTool) + { + preview20250311WebSearchServerTool?.Invoke(Preview20250311WebSearchServerTool!); + } + else if (IsLegacyWebSearchServerTool) + { + legacyWebSearchServerTool?.Invoke(LegacyWebSearchServerTool!); + } + else if (IsWebSearchServerTool) + { + webSearchServerTool?.Invoke(WebSearchServerTool!); + } + else if (IsFileSearchServerTool) + { + fileSearchServerTool?.Invoke(FileSearchServerTool!); + } + else if (IsComputerUseServerTool) + { + computerUseServerTool?.Invoke(ComputerUseServerTool!); + } + else if (IsCodeInterpreterServerTool) + { + codeInterpreterServerTool?.Invoke(CodeInterpreterServerTool!); + } + else if (IsMcpServerTool) + { + mcpServerTool?.Invoke(McpServerTool!); + } + else if (IsImageGenerationServerTool) + { + imageGenerationServerTool?.Invoke(ImageGenerationServerTool!); + } + else if (IsCodexLocalShellTool) + { + codexLocalShellTool?.Invoke(CodexLocalShellTool!); + } + else if (IsShellServerTool) + { + shellServerTool?.Invoke(ShellServerTool!); + } + else if (IsApplyPatchServerTool) + { + applyPatchServerTool?.Invoke(ApplyPatchServerTool!); + } + else if (IsCustomTool) + { + customTool?.Invoke(CustomTool!); + } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } + else if (IsAdvisorServerToolOpenRouter) + { + advisorServerToolOpenRouter?.Invoke(AdvisorServerToolOpenRouter!); + } + else if (IsSubagentServerToolOpenRouter) + { + subagentServerToolOpenRouter?.Invoke(SubagentServerToolOpenRouter!); + } + else if (IsDatetimeServerTool) + { + datetimeServerTool?.Invoke(DatetimeServerTool!); + } + else if (IsFilesServerTool) + { + filesServerTool?.Invoke(FilesServerTool!); + } + else if (IsFusionServerToolOpenRouter) + { + fusionServerToolOpenRouter?.Invoke(FusionServerToolOpenRouter!); + } + else if (IsImageGenerationServerToolOpenRouter) + { + imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); + } + else if (IsSearchModelsServerToolOpenRouter) + { + searchModelsServerToolOpenRouter?.Invoke(SearchModelsServerToolOpenRouter!); + } + else if (IsWebFetchServerTool) + { + webFetchServerTool?.Invoke(WebFetchServerTool!); + } + else if (IsWebSearchServerToolOpenRouter) + { + webSearchServerToolOpenRouter?.Invoke(WebSearchServerToolOpenRouter!); + } + else if (IsApplyPatchServerToolOpenRouter) + { + applyPatchServerToolOpenRouter?.Invoke(ApplyPatchServerToolOpenRouter!); + } + else if (IsBashServerTool) + { + bashServerTool?.Invoke(BashServerTool!); + } + else if (IsShellServerToolOpenRouter) + { + shellServerToolOpenRouter?.Invoke(ShellServerToolOpenRouter!); + } + else if (IsAdditionalToolsItemToolsItems27) + { + additionalToolsItemToolsItems27?.Invoke(AdditionalToolsItemToolsItems27!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? additionalToolsItemToolsItems0 = null, + global::System.Action? previewWebSearchServerTool = null, + global::System.Action? preview20250311WebSearchServerTool = null, + global::System.Action? legacyWebSearchServerTool = null, + global::System.Action? webSearchServerTool = null, + global::System.Action? fileSearchServerTool = null, + global::System.Action? computerUseServerTool = null, + global::System.Action? codeInterpreterServerTool = null, + global::System.Action? mcpServerTool = null, + global::System.Action? imageGenerationServerTool = null, + global::System.Action? codexLocalShellTool = null, + global::System.Action? shellServerTool = null, + global::System.Action? applyPatchServerTool = null, + global::System.Action? customTool = null, + global::System.Action? namespaceTool = null, + global::System.Action? advisorServerToolOpenRouter = null, + global::System.Action? subagentServerToolOpenRouter = null, + global::System.Action? datetimeServerTool = null, + global::System.Action? filesServerTool = null, + global::System.Action? fusionServerToolOpenRouter = null, + global::System.Action? imageGenerationServerToolOpenRouter = null, + global::System.Action? searchModelsServerToolOpenRouter = null, + global::System.Action? webFetchServerTool = null, + global::System.Action? webSearchServerToolOpenRouter = null, + global::System.Action? applyPatchServerToolOpenRouter = null, + global::System.Action? bashServerTool = null, + global::System.Action? shellServerToolOpenRouter = null, + global::System.Action? additionalToolsItemToolsItems27 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAdditionalToolsItemToolsItems0) + { + additionalToolsItemToolsItems0?.Invoke(AdditionalToolsItemToolsItems0!); + } + else if (IsPreviewWebSearchServerTool) + { + previewWebSearchServerTool?.Invoke(PreviewWebSearchServerTool!); + } + else if (IsPreview20250311WebSearchServerTool) + { + preview20250311WebSearchServerTool?.Invoke(Preview20250311WebSearchServerTool!); + } + else if (IsLegacyWebSearchServerTool) + { + legacyWebSearchServerTool?.Invoke(LegacyWebSearchServerTool!); + } + else if (IsWebSearchServerTool) + { + webSearchServerTool?.Invoke(WebSearchServerTool!); + } + else if (IsFileSearchServerTool) + { + fileSearchServerTool?.Invoke(FileSearchServerTool!); + } + else if (IsComputerUseServerTool) + { + computerUseServerTool?.Invoke(ComputerUseServerTool!); + } + else if (IsCodeInterpreterServerTool) + { + codeInterpreterServerTool?.Invoke(CodeInterpreterServerTool!); + } + else if (IsMcpServerTool) + { + mcpServerTool?.Invoke(McpServerTool!); + } + else if (IsImageGenerationServerTool) + { + imageGenerationServerTool?.Invoke(ImageGenerationServerTool!); + } + else if (IsCodexLocalShellTool) + { + codexLocalShellTool?.Invoke(CodexLocalShellTool!); + } + else if (IsShellServerTool) + { + shellServerTool?.Invoke(ShellServerTool!); + } + else if (IsApplyPatchServerTool) + { + applyPatchServerTool?.Invoke(ApplyPatchServerTool!); + } + else if (IsCustomTool) + { + customTool?.Invoke(CustomTool!); + } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } + else if (IsAdvisorServerToolOpenRouter) + { + advisorServerToolOpenRouter?.Invoke(AdvisorServerToolOpenRouter!); + } + else if (IsSubagentServerToolOpenRouter) + { + subagentServerToolOpenRouter?.Invoke(SubagentServerToolOpenRouter!); + } + else if (IsDatetimeServerTool) + { + datetimeServerTool?.Invoke(DatetimeServerTool!); + } + else if (IsFilesServerTool) + { + filesServerTool?.Invoke(FilesServerTool!); + } + else if (IsFusionServerToolOpenRouter) + { + fusionServerToolOpenRouter?.Invoke(FusionServerToolOpenRouter!); + } + else if (IsImageGenerationServerToolOpenRouter) + { + imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); + } + else if (IsSearchModelsServerToolOpenRouter) + { + searchModelsServerToolOpenRouter?.Invoke(SearchModelsServerToolOpenRouter!); + } + else if (IsWebFetchServerTool) + { + webFetchServerTool?.Invoke(WebFetchServerTool!); + } + else if (IsWebSearchServerToolOpenRouter) + { + webSearchServerToolOpenRouter?.Invoke(WebSearchServerToolOpenRouter!); + } + else if (IsApplyPatchServerToolOpenRouter) + { + applyPatchServerToolOpenRouter?.Invoke(ApplyPatchServerToolOpenRouter!); + } + else if (IsBashServerTool) + { + bashServerTool?.Invoke(BashServerTool!); + } + else if (IsShellServerToolOpenRouter) + { + shellServerToolOpenRouter?.Invoke(ShellServerToolOpenRouter!); + } + else if (IsAdditionalToolsItemToolsItems27) + { + additionalToolsItemToolsItems27?.Invoke(AdditionalToolsItemToolsItems27!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AdditionalToolsItemToolsItems0, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems0), + PreviewWebSearchServerTool, + typeof(global::OpenRouter.PreviewWebSearchServerTool), + Preview20250311WebSearchServerTool, + typeof(global::OpenRouter.Preview20250311WebSearchServerTool), + LegacyWebSearchServerTool, + typeof(global::OpenRouter.LegacyWebSearchServerTool), + WebSearchServerTool, + typeof(global::OpenRouter.WebSearchServerTool), + FileSearchServerTool, + typeof(global::OpenRouter.FileSearchServerTool), + ComputerUseServerTool, + typeof(global::OpenRouter.ComputerUseServerTool), + CodeInterpreterServerTool, + typeof(global::OpenRouter.CodeInterpreterServerTool), + McpServerTool, + typeof(global::OpenRouter.McpServerTool), + ImageGenerationServerTool, + typeof(global::OpenRouter.ImageGenerationServerTool), + CodexLocalShellTool, + typeof(global::OpenRouter.CodexLocalShellTool), + ShellServerTool, + typeof(global::OpenRouter.ShellServerTool), + ApplyPatchServerTool, + typeof(global::OpenRouter.ApplyPatchServerTool), + CustomTool, + typeof(global::OpenRouter.CustomTool), + NamespaceTool, + typeof(global::OpenRouter.NamespaceTool), + AdvisorServerToolOpenRouter, + typeof(global::OpenRouter.AdvisorServerToolOpenRouter), + SubagentServerToolOpenRouter, + typeof(global::OpenRouter.SubagentServerToolOpenRouter), + DatetimeServerTool, + typeof(global::OpenRouter.DatetimeServerTool), + FilesServerTool, + typeof(global::OpenRouter.FilesServerTool), + FusionServerToolOpenRouter, + typeof(global::OpenRouter.FusionServerToolOpenRouter), + ImageGenerationServerToolOpenRouter, + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), + SearchModelsServerToolOpenRouter, + typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), + WebFetchServerTool, + typeof(global::OpenRouter.WebFetchServerTool), + WebSearchServerToolOpenRouter, + typeof(global::OpenRouter.WebSearchServerToolOpenRouter), + ApplyPatchServerToolOpenRouter, + typeof(global::OpenRouter.ApplyPatchServerToolOpenRouter), + BashServerTool, + typeof(global::OpenRouter.BashServerTool), + ShellServerToolOpenRouter, + typeof(global::OpenRouter.ShellServerToolOpenRouter), + AdditionalToolsItemToolsItems27, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems27), + }; + 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(AdditionalToolsItemToolsItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AdditionalToolsItemToolsItems0, other.AdditionalToolsItemToolsItems0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(PreviewWebSearchServerTool, other.PreviewWebSearchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Preview20250311WebSearchServerTool, other.Preview20250311WebSearchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(LegacyWebSearchServerTool, other.LegacyWebSearchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerTool, other.WebSearchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearchServerTool, other.FileSearchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerUseServerTool, other.ComputerUseServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreterServerTool, other.CodeInterpreterServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerTool, other.McpServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerTool, other.ImageGenerationServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodexLocalShellTool, other.CodexLocalShellTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellServerTool, other.ShellServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerTool, other.ApplyPatchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NamespaceTool, other.NamespaceTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AdvisorServerToolOpenRouter, other.AdvisorServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SubagentServerToolOpenRouter, other.SubagentServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FilesServerTool, other.FilesServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FusionServerToolOpenRouter, other.FusionServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SearchModelsServerToolOpenRouter, other.SearchModelsServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetchServerTool, other.WebFetchServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerToolOpenRouter, other.WebSearchServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerToolOpenRouter, other.ApplyPatchServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(BashServerTool, other.BashServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellServerToolOpenRouter, other.ShellServerToolOpenRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AdditionalToolsItemToolsItems27, other.AdditionalToolsItemToolsItems27) + ; + } + + /// + /// + /// + public static bool operator ==(AdditionalToolsItemToolsItems obj1, AdditionalToolsItemToolsItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AdditionalToolsItemToolsItems obj1, AdditionalToolsItemToolsItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AdditionalToolsItemToolsItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.Json.g.cs new file mode 100644 index 00000000..d2955f5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AdditionalToolsItemToolsItems0 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems0), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItemToolsItems0; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItemToolsItems0? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItemToolsItems0), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItemToolsItems0; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.g.cs new file mode 100644 index 00000000..3baa16b2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Function tool definition + /// + public sealed partial class AdditionalToolsItemToolsItems0 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public object? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("strict")] + public bool? Strict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AdditionalToolsItemToolsItemsOneOf0TypeJsonConverter))] + public global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type 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 AdditionalToolsItemToolsItems0( + string name, + string? description, + object? parameters, + bool? strict, + global::OpenRouter.AdditionalToolsItemToolsItemsOneOf0Type type) + { + this.Description = description; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Parameters = parameters; + this.Strict = strict; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AdditionalToolsItemToolsItems0() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.Json.g.cs new file mode 100644 index 00000000..04d5fd1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AdditionalToolsItemToolsItems0Parameters + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0Parameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems0Parameters), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItemToolsItems0Parameters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0Parameters? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItemToolsItems0Parameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItemToolsItems0Parameters), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItemToolsItems0Parameters; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.g.cs new file mode 100644 index 00000000..13cf5f79 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AdditionalToolsItemToolsItems0Parameters + { + + /// + /// 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.AdditionalToolsItemToolsItems0Parameters2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters2.Json.g.cs new file mode 100644 index 00000000..7ac1721f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AdditionalToolsItemToolsItems0Parameters2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0Parameters2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems0Parameters2), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItemToolsItems0Parameters2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems0Parameters2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItemToolsItems0Parameters2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItemToolsItems0Parameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItemToolsItems0Parameters2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters2.g.cs new file mode 100644 index 00000000..1bbc5a5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems0Parameters2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class AdditionalToolsItemToolsItems0Parameters2 + { + + /// + /// 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.AdditionalToolsItemToolsItems27.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems27.Json.g.cs new file mode 100644 index 00000000..21e6098c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems27.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AdditionalToolsItemToolsItems27 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems27? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AdditionalToolsItemToolsItems27), + jsonSerializerContext) as global::OpenRouter.AdditionalToolsItemToolsItems27; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AdditionalToolsItemToolsItems27? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AdditionalToolsItemToolsItems27? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AdditionalToolsItemToolsItems27), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AdditionalToolsItemToolsItems27; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems27.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems27.g.cs new file mode 100644 index 00000000..a4a87edf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItems27.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AdditionalToolsItemToolsItems27 + { + /// + /// + /// + [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 AdditionalToolsItemToolsItems27( + string type) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + } + + /// + /// Initializes a new instance of the class. + /// + public AdditionalToolsItemToolsItems27() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItemsOneOf0Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItemsOneOf0Type.g.cs new file mode 100644 index 00000000..e4c00c47 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemToolsItemsOneOf0Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AdditionalToolsItemToolsItemsOneOf0Type + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AdditionalToolsItemToolsItemsOneOf0TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AdditionalToolsItemToolsItemsOneOf0Type value) + { + return value switch + { + AdditionalToolsItemToolsItemsOneOf0Type.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AdditionalToolsItemToolsItemsOneOf0Type? ToEnum(string value) + { + return value switch + { + "function" => AdditionalToolsItemToolsItemsOneOf0Type.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemType.g.cs new file mode 100644 index 00000000..92e2ebf5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AdditionalToolsItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AdditionalToolsItemType + { + /// + /// + /// + AdditionalTools, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AdditionalToolsItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AdditionalToolsItemType value) + { + return value switch + { + AdditionalToolsItemType.AdditionalTools => "additional_tools", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AdditionalToolsItemType? ToEnum(string value) + { + return value switch + { + "additional_tools" => AdditionalToolsItemType.AdditionalTools, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.Json.g.cs new file mode 100644 index 00000000..b4782e94 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AgentMessageItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AgentMessageItem), + jsonSerializerContext) as global::OpenRouter.AgentMessageItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItem? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AgentMessageItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AgentMessageItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AgentMessageItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.g.cs new file mode 100644 index 00000000..10e37b19 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItem.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A message routed between agents in a multi-agent session + /// + public sealed partial class AgentMessageItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Agent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("author")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Author { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recipient")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Recipient { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AgentMessageItemTypeJsonConverter))] + public global::OpenRouter.AgentMessageItemType 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 AgentMessageItem( + string author, + global::System.Collections.Generic.IList content, + string recipient, + global::OpenRouter.OneOf? agent, + string? id, + global::OpenRouter.AgentMessageItemType type) + { + this.Agent = agent; + this.Author = author ?? throw new global::System.ArgumentNullException(nameof(author)); + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.Id = id; + this.Recipient = recipient ?? throw new global::System.ArgumentNullException(nameof(recipient)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentMessageItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.Json.g.cs new file mode 100644 index 00000000..b0d87e51 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AgentMessageItemAgent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemAgent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AgentMessageItemAgent), + jsonSerializerContext) as global::OpenRouter.AgentMessageItemAgent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemAgent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AgentMessageItemAgent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AgentMessageItemAgent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AgentMessageItemAgent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.g.cs new file mode 100644 index 00000000..c9fb921f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemAgent.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AgentMessageItemAgent + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentName { 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 AgentMessageItemAgent( + string agentName) + { + this.AgentName = agentName ?? throw new global::System.ArgumentNullException(nameof(agentName)); + } + + /// + /// Initializes a new instance of the class. + /// + public AgentMessageItemAgent() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.Json.g.cs new file mode 100644 index 00000000..bd93184b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct AgentMessageItemContentItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AgentMessageItemContentItems), + jsonSerializerContext) as global::OpenRouter.AgentMessageItemContentItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AgentMessageItemContentItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AgentMessageItemContentItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AgentMessageItemContentItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.g.cs new file mode 100644 index 00000000..3059c104 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct AgentMessageItemContentItems : global::System.IEquatable + { + /// + /// Text input content item + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.InputText? InputText { get; init; } +#else + public global::OpenRouter.InputText? InputText { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputText))] +#endif + public bool IsInputText => InputText != null; + + /// + /// + /// + public bool TryPickInputText( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.InputText? value) + { + value = InputText; + return IsInputText; + } + + /// + /// + /// + public global::OpenRouter.InputText PickInputText() => IsInputText + ? InputText! + : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); + + /// + /// Image input content item + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AgentMessageItemContentItems1? AgentMessageItemContentItems1 { get; init; } +#else + public global::OpenRouter.AgentMessageItemContentItems1? AgentMessageItemContentItems1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageItemContentItems1))] +#endif + public bool IsAgentMessageItemContentItems1 => AgentMessageItemContentItems1 != null; + + /// + /// + /// + public bool TryPickAgentMessageItemContentItems1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AgentMessageItemContentItems1? value) + { + value = AgentMessageItemContentItems1; + return IsAgentMessageItemContentItems1; + } + + /// + /// + /// + public global::OpenRouter.AgentMessageItemContentItems1 PickAgentMessageItemContentItems1() => IsAgentMessageItemContentItems1 + ? AgentMessageItemContentItems1! + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageItemContentItems1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AgentMessageItemContentItems2? AgentMessageItemContentItems2 { get; init; } +#else + public global::OpenRouter.AgentMessageItemContentItems2? AgentMessageItemContentItems2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageItemContentItems2))] +#endif + public bool IsAgentMessageItemContentItems2 => AgentMessageItemContentItems2 != null; + + /// + /// + /// + public bool TryPickAgentMessageItemContentItems2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AgentMessageItemContentItems2? value) + { + value = AgentMessageItemContentItems2; + return IsAgentMessageItemContentItems2; + } + + /// + /// + /// + public global::OpenRouter.AgentMessageItemContentItems2 PickAgentMessageItemContentItems2() => IsAgentMessageItemContentItems2 + ? AgentMessageItemContentItems2! + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageItemContentItems2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AgentMessageItemContentItems(global::OpenRouter.InputText value) => new AgentMessageItemContentItems((global::OpenRouter.InputText?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.InputText?(AgentMessageItemContentItems @this) => @this.InputText; + + /// + /// + /// + public AgentMessageItemContentItems(global::OpenRouter.InputText? value) + { + InputText = value; + } + + /// + /// + /// + public static AgentMessageItemContentItems FromInputText(global::OpenRouter.InputText? value) => new AgentMessageItemContentItems(value); + + /// + /// + /// + public static implicit operator AgentMessageItemContentItems(global::OpenRouter.AgentMessageItemContentItems1 value) => new AgentMessageItemContentItems((global::OpenRouter.AgentMessageItemContentItems1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AgentMessageItemContentItems1?(AgentMessageItemContentItems @this) => @this.AgentMessageItemContentItems1; + + /// + /// + /// + public AgentMessageItemContentItems(global::OpenRouter.AgentMessageItemContentItems1? value) + { + AgentMessageItemContentItems1 = value; + } + + /// + /// + /// + public static AgentMessageItemContentItems FromAgentMessageItemContentItems1(global::OpenRouter.AgentMessageItemContentItems1? value) => new AgentMessageItemContentItems(value); + + /// + /// + /// + public static implicit operator AgentMessageItemContentItems(global::OpenRouter.AgentMessageItemContentItems2 value) => new AgentMessageItemContentItems((global::OpenRouter.AgentMessageItemContentItems2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AgentMessageItemContentItems2?(AgentMessageItemContentItems @this) => @this.AgentMessageItemContentItems2; + + /// + /// + /// + public AgentMessageItemContentItems(global::OpenRouter.AgentMessageItemContentItems2? value) + { + AgentMessageItemContentItems2 = value; + } + + /// + /// + /// + public static AgentMessageItemContentItems FromAgentMessageItemContentItems2(global::OpenRouter.AgentMessageItemContentItems2? value) => new AgentMessageItemContentItems(value); + + /// + /// + /// + public AgentMessageItemContentItems( + global::OpenRouter.InputText? inputText, + global::OpenRouter.AgentMessageItemContentItems1? agentMessageItemContentItems1, + global::OpenRouter.AgentMessageItemContentItems2? agentMessageItemContentItems2 + ) + { + InputText = inputText; + AgentMessageItemContentItems1 = agentMessageItemContentItems1; + AgentMessageItemContentItems2 = agentMessageItemContentItems2; + } + + /// + /// + /// + public object? Object => + AgentMessageItemContentItems2 as object ?? + AgentMessageItemContentItems1 as object ?? + InputText as object + ; + + /// + /// + /// + public override string? ToString() => + InputText?.ToString() ?? + AgentMessageItemContentItems1?.ToString() ?? + AgentMessageItemContentItems2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsInputText && !IsAgentMessageItemContentItems1 && !IsAgentMessageItemContentItems2 || !IsInputText && IsAgentMessageItemContentItems1 && !IsAgentMessageItemContentItems2 || !IsInputText && !IsAgentMessageItemContentItems1 && IsAgentMessageItemContentItems2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? inputText = null, + global::System.Func? agentMessageItemContentItems1 = null, + global::System.Func? agentMessageItemContentItems2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputText && inputText != null) + { + return inputText(InputText!); + } + else if (IsAgentMessageItemContentItems1 && agentMessageItemContentItems1 != null) + { + return agentMessageItemContentItems1(AgentMessageItemContentItems1!); + } + else if (IsAgentMessageItemContentItems2 && agentMessageItemContentItems2 != null) + { + return agentMessageItemContentItems2(AgentMessageItemContentItems2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? inputText = null, + + global::System.Action? agentMessageItemContentItems1 = null, + + global::System.Action? agentMessageItemContentItems2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputText) + { + inputText?.Invoke(InputText!); + } + else if (IsAgentMessageItemContentItems1) + { + agentMessageItemContentItems1?.Invoke(AgentMessageItemContentItems1!); + } + else if (IsAgentMessageItemContentItems2) + { + agentMessageItemContentItems2?.Invoke(AgentMessageItemContentItems2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? inputText = null, + global::System.Action? agentMessageItemContentItems1 = null, + global::System.Action? agentMessageItemContentItems2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsInputText) + { + inputText?.Invoke(InputText!); + } + else if (IsAgentMessageItemContentItems1) + { + agentMessageItemContentItems1?.Invoke(AgentMessageItemContentItems1!); + } + else if (IsAgentMessageItemContentItems2) + { + agentMessageItemContentItems2?.Invoke(AgentMessageItemContentItems2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + InputText, + typeof(global::OpenRouter.InputText), + AgentMessageItemContentItems1, + typeof(global::OpenRouter.AgentMessageItemContentItems1), + AgentMessageItemContentItems2, + typeof(global::OpenRouter.AgentMessageItemContentItems2), + }; + 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(AgentMessageItemContentItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputText, other.InputText) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageItemContentItems1, other.AgentMessageItemContentItems1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageItemContentItems2, other.AgentMessageItemContentItems2) + ; + } + + /// + /// + /// + public static bool operator ==(AgentMessageItemContentItems obj1, AgentMessageItemContentItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AgentMessageItemContentItems obj1, AgentMessageItemContentItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AgentMessageItemContentItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.Json.g.cs new file mode 100644 index 00000000..1b0de7a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AgentMessageItemContentItems1 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AgentMessageItemContentItems1), + jsonSerializerContext) as global::OpenRouter.AgentMessageItemContentItems1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems1? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AgentMessageItemContentItems1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AgentMessageItemContentItems1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AgentMessageItemContentItems1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.g.cs new file mode 100644 index 00000000..02652870 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems1.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Image input content item + /// + public sealed partial class AgentMessageItemContentItems1 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detail")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1DetailJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail Detail { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + public string? ImageUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf1TypeJsonConverter))] + public global::OpenRouter.AgentMessageItemContentItemsOneOf1Type 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 AgentMessageItemContentItems1( + global::OpenRouter.AgentMessageItemContentItemsOneOf1Detail detail, + string? imageUrl, + global::OpenRouter.AgentMessageItemContentItemsOneOf1Type type) + { + this.Detail = detail; + this.ImageUrl = imageUrl; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentMessageItemContentItems1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.Json.g.cs new file mode 100644 index 00000000..abc7b5c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AgentMessageItemContentItems2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AgentMessageItemContentItems2), + jsonSerializerContext) as global::OpenRouter.AgentMessageItemContentItems2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AgentMessageItemContentItems2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AgentMessageItemContentItems2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AgentMessageItemContentItems2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AgentMessageItemContentItems2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.g.cs new file mode 100644 index 00000000..e6d0740d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItems2.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AgentMessageItemContentItems2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EncryptedContent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AgentMessageItemContentItemsOneOf2TypeJsonConverter))] + public global::OpenRouter.AgentMessageItemContentItemsOneOf2Type 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 AgentMessageItemContentItems2( + string encryptedContent, + global::OpenRouter.AgentMessageItemContentItemsOneOf2Type type) + { + this.EncryptedContent = encryptedContent ?? throw new global::System.ArgumentNullException(nameof(encryptedContent)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentMessageItemContentItems2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Detail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Detail.g.cs new file mode 100644 index 00000000..84f90c4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Detail.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AgentMessageItemContentItemsOneOf1Detail + { + /// + /// + /// + Auto, + /// + /// + /// + High, + /// + /// + /// + Low, + /// + /// + /// + Original, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentMessageItemContentItemsOneOf1DetailExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentMessageItemContentItemsOneOf1Detail value) + { + return value switch + { + AgentMessageItemContentItemsOneOf1Detail.Auto => "auto", + AgentMessageItemContentItemsOneOf1Detail.High => "high", + AgentMessageItemContentItemsOneOf1Detail.Low => "low", + AgentMessageItemContentItemsOneOf1Detail.Original => "original", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentMessageItemContentItemsOneOf1Detail? ToEnum(string value) + { + return value switch + { + "auto" => AgentMessageItemContentItemsOneOf1Detail.Auto, + "high" => AgentMessageItemContentItemsOneOf1Detail.High, + "low" => AgentMessageItemContentItemsOneOf1Detail.Low, + "original" => AgentMessageItemContentItemsOneOf1Detail.Original, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Type.g.cs new file mode 100644 index 00000000..c022e723 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AgentMessageItemContentItemsOneOf1Type + { + /// + /// + /// + InputImage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentMessageItemContentItemsOneOf1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentMessageItemContentItemsOneOf1Type value) + { + return value switch + { + AgentMessageItemContentItemsOneOf1Type.InputImage => "input_image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentMessageItemContentItemsOneOf1Type? ToEnum(string value) + { + return value switch + { + "input_image" => AgentMessageItemContentItemsOneOf1Type.InputImage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf2Type.g.cs new file mode 100644 index 00000000..a93afd6b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemContentItemsOneOf2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AgentMessageItemContentItemsOneOf2Type + { + /// + /// + /// + EncryptedContent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentMessageItemContentItemsOneOf2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentMessageItemContentItemsOneOf2Type value) + { + return value switch + { + AgentMessageItemContentItemsOneOf2Type.EncryptedContent => "encrypted_content", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentMessageItemContentItemsOneOf2Type? ToEnum(string value) + { + return value switch + { + "encrypted_content" => AgentMessageItemContentItemsOneOf2Type.EncryptedContent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemType.g.cs new file mode 100644 index 00000000..f79b0959 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AgentMessageItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum AgentMessageItemType + { + /// + /// + /// + AgentMessage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentMessageItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentMessageItemType value) + { + return value switch + { + AgentMessageItemType.AgentMessage => "agent_message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentMessageItemType? ToEnum(string value) + { + return value switch + { + "agent_message" => AgentMessageItemType.AgentMessage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.Json.g.cs new file mode 100644 index 00000000..5680d15d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions), + jsonSerializerContext) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.g.cs new file mode 100644 index 00000000..541212be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. + /// + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions + { + /// + /// UUID of the classifier whose tags to group by. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("classifier_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ClassifierId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dimension_names")] + public global::System.Collections.Generic.IList? DimensionNames { get; set; } + + /// + /// When true, also include generations that have no tag from this classifier. Defaults to false, which returns only classified generations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_nulls")] + public bool? IncludeNulls { 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. + /// + /// + /// UUID of the classifier whose tags to group by. + /// + /// + /// + /// When true, also include generations that have no tag from this classifier. Defaults to false, which returns only classified generations. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions( + global::System.Guid classifierId, + global::System.Collections.Generic.IList? dimensionNames, + bool? includeNulls) + { + this.ClassifierId = classifierId; + this.DimensionNames = dimensionNames; + this.IncludeNulls = includeNulls; + } + + /// + /// Initializes a new instance of the class. + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.Json.g.cs new file mode 100644 index 00000000..7e831b69 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters), + jsonSerializerContext) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.g.cs new file mode 100644 index 00000000..7cc00bf3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions. + /// + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters + { + /// + /// UUID of the classifier whose tags to filter by. Must match classifier_dimensions.classifier_id when both are specified. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("classifier_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ClassifierId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Filters { 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. + /// + /// + /// UUID of the classifier whose tags to filter by. Must match classifier_dimensions.classifier_id when both are specified. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters( + global::System.Guid classifierId, + global::System.Collections.Generic.IList filters) + { + this.ClassifierId = classifierId; + this.Filters = filters ?? throw new global::System.ArgumentNullException(nameof(filters)); + } + + /// + /// Initializes a new instance of the class. + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.Json.g.cs new file mode 100644 index 00000000..d01fb695 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems), + jsonSerializerContext) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.g.cs new file mode 100644 index 00000000..1d1e9c1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems + { + /// + /// Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Field { get; set; } + + /// + /// Filter operator. Only equality/set operators are supported (eq, neq, in, not_in) — ordered comparisons are not available because classification values are strings. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Operator { get; set; } + + /// + /// Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue Value { 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. + /// + /// + /// Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type"). + /// + /// + /// Filter operator. Only equality/set operators are supported (eq, neq, in, not_in) — ordered comparisons are not available because classification values are strings. + /// + /// + /// Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems( + string field, + string @operator, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue value) + { + this.Field = field ?? throw new global::System.ArgumentNullException(nameof(field)); + this.Operator = @operator ?? throw new global::System.ArgumentNullException(nameof(@operator)); + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.Json.g.cs new file mode 100644 index 00000000..712fbda4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue), + jsonSerializerContext) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs new file mode 100644 index 00000000..82179554 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue.g.cs @@ -0,0 +1,355 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in. + /// + public readonly partial struct AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 { get; init; } +#else + public string? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1))] +#endif + public bool IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 => AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 != null; + + /// + /// + /// + public bool TryPickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1; + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1; + } + + /// + /// + /// + public string PickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1() => IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 + ? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 { get; init; } +#else + public double? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2))] +#endif + public bool IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 => AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 != null; + + /// + /// + /// + public bool TryPickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2; + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2; + } + + /// + /// + /// + public double PickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2() => IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 + ? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 { get; init; } +#else + public global::System.Collections.Generic.IList? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2))] +#endif + public bool IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 => AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 != null; + + /// + /// + /// + public bool TryPickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::System.Collections.Generic.IList? value) + { + value = AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2; + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2; + } + + /// + /// + /// + public global::System.Collections.Generic.IList PickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2() => IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 + ? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2! + : throw new global::System.InvalidOperationException($"Expected union variant 'AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(string value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue((string?)value); + + /// + /// + /// + public static implicit operator string?(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue @this) => @this.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1; + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(string? value) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = value; + } + + /// + /// + /// + public static AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue FromAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1(string? value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(value); + + /// + /// + /// + public static implicit operator AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(double value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue((double?)value); + + /// + /// + /// + public static implicit operator double?(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue @this) => @this.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2; + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(double? value) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = value; + } + + /// + /// + /// + public static AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue FromAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2(double? value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue(value); + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue( + string? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1, + double? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2, + global::System.Collections.Generic.IList? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 + ) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1; + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2; + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2; + } + + /// + /// + /// + public object? Object => + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 as object ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 as object ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1?.ToString() ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2?.ToString() ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 && !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 && !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 || !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 && IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 && !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 || !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 && !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 && IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = null, + global::System.Func? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = null, + global::System.Func, TResult>? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 != null) + { + return analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 != null) + { + return analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 != null) + { + return analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = null, + + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = null, + + global::System.Action>? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1 = null, + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2 = null, + global::System.Action>? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1, + typeof(string), + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2, + typeof(double), + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2, + typeof(global::System.Collections.Generic.IList), + }; + 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(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1, other.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2, other.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueVariant2) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2, other.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2) + ; + } + + /// + /// + /// + public static bool operator ==(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue obj1, AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue obj1, AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.Json.g.cs new file mode 100644 index 00000000..5b5ef695 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items), + jsonSerializerContext) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs new file mode 100644 index 00000000..18d30f71 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 { get; init; } +#else + public string? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1))] +#endif + public bool IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 => AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 != null; + + /// + /// + /// + public bool TryPickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1; + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1; + } + + /// + /// + /// + public string PickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1() => IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 + ? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 { get; init; } +#else + public double? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2))] +#endif + public bool IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 => AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 != null; + + /// + /// + /// + public bool TryPickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2; + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2; + } + + /// + /// + /// + public double PickAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2() => IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 + ? AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(string value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items((string?)value); + + /// + /// + /// + public static implicit operator string?(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items @this) => @this.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1; + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(string? value) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = value; + } + + /// + /// + /// + public static AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items FromAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1(string? value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(value); + + /// + /// + /// + public static implicit operator AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(double value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items((double?)value); + + /// + /// + /// + public static implicit operator double?(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items @this) => @this.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2; + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(double? value) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = value; + } + + /// + /// + /// + public static AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items FromAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2(double? value) => new AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items(value); + + /// + /// + /// + public AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items( + string? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1, + double? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 + ) + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1; + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2; + } + + /// + /// + /// + public object? Object => + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 as object ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1?.ToString() ?? + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 && !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 || !IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 && IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = null, + global::System.Func? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 != null) + { + return analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 && analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 != null) + { + return analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = null, + + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1 = null, + global::System.Action? analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1!); + } + else if (IsAnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2) + { + analyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2?.Invoke(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1, + typeof(string), + AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2, + typeof(double), + }; + 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(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1, other.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2, other.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2ItemsVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items obj1, AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items obj1, AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy.g.cs index cbbbe8d3..61f0c837 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy.g.cs @@ -17,7 +17,7 @@ public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonS public required global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection Direction { get; set; } /// - /// Field to order by + /// Field to order by: a metric included in `metrics` (or "request_count", which may be ordered by without being requested), a requested dimension, or "date". /// [global::System.Text.Json.Serialization.JsonPropertyName("field")] [global::System.Text.Json.Serialization.JsonRequired] @@ -34,7 +34,7 @@ public sealed partial class AnalyticsQueryPostRequestBodyContentApplicationJsonS /// /// /// - /// Field to order by + /// Field to order by: a metric included in `metrics` (or "request_count", which may be ordered by without being requested), a requested dimension, or "date". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicCacheControlDirective.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicCacheControlDirective.g.cs index edfa71af..3be908c3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicCacheControlDirective.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicCacheControlDirective.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// public sealed partial class AnthropicCacheControlDirective { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParam.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParam.g.cs index 59817489..b1cb5b55 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParam.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParam.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class AnthropicDocumentBlockParam { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -59,7 +59,7 @@ public sealed partial class AnthropicDocumentBlockParam /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1.g.cs index 9b916e4a..98dda182 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1.g.cs @@ -16,7 +16,7 @@ public sealed partial class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1 public global::OpenRouter.AnthropicImageBlockParamType Type { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -41,7 +41,7 @@ public sealed partial class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2.g.cs index 69b63898..bbeebd90 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2.g.cs @@ -16,7 +16,7 @@ public sealed partial class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1 public global::OpenRouter.AnthropicTextBlockParamType Type { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -46,7 +46,7 @@ public sealed partial class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicImageBlockParam.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicImageBlockParam.g.cs index deb9d2b0..1a2f280c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicImageBlockParam.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicImageBlockParam.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class AnthropicImageBlockParam { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -40,7 +40,7 @@ public sealed partial class AnthropicImageBlockParam /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicRefusalStopDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicRefusalStopDetails.g.cs index 2ea308a8..a74aec0d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicRefusalStopDetails.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicRefusalStopDetails.g.cs @@ -12,9 +12,9 @@ public sealed partial class AnthropicRefusalStopDetails /// /// [global::System.Text.Json.Serialization.JsonPropertyName("category")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnthropicRefusalStopDetailsCategoryJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf Category { get; set; } + public required global::OpenRouter.AnthropicRefusalStopDetailsCategory Category { get; set; } /// /// @@ -45,7 +45,7 @@ public sealed partial class AnthropicRefusalStopDetails [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AnthropicRefusalStopDetails( - global::OpenRouter.OneOf category, + global::OpenRouter.AnthropicRefusalStopDetailsCategory category, string? explanation, global::OpenRouter.AnthropicRefusalStopDetailsType type) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicSearchResultBlockParam.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicSearchResultBlockParam.g.cs index 7f812c01..15863692 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicSearchResultBlockParam.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicSearchResultBlockParam.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class AnthropicSearchResultBlockParam { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -61,7 +61,7 @@ public sealed partial class AnthropicSearchResultBlockParam /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicTextBlockParam.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicTextBlockParam.g.cs index 5ff036d7..4fa89f31 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicTextBlockParam.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AnthropicTextBlockParam.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class AnthropicTextBlockParam { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -45,7 +45,7 @@ public sealed partial class AnthropicTextBlockParam /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs index 2ed83ec0..9a01ab26 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs @@ -111,6 +111,10 @@ public enum BYOKProviderSlug /// /// /// + Deepgram, + /// + /// + /// Deepinfra, /// /// @@ -135,6 +139,10 @@ public enum BYOKProviderSlug /// /// /// + FishAudio, + /// + /// + /// Friendli, /// /// @@ -191,6 +199,10 @@ public enum BYOKProviderSlug /// /// /// + Krea, + /// + /// + /// Liquid, /// /// @@ -203,6 +215,10 @@ public enum BYOKProviderSlug /// /// /// + Meta, + /// + /// + /// Minimax, /// /// @@ -295,7 +311,11 @@ public enum BYOKProviderSlug /// /// /// - SakanaAi, + SailResearch, + /// + /// + /// + Sakana, /// /// /// @@ -327,6 +347,10 @@ public enum BYOKProviderSlug /// /// /// + Tencent, + /// + /// + /// Tenstorrent, /// /// @@ -399,12 +423,14 @@ public static string ToValueString(this BYOKProviderSlug value) BYOKProviderSlug.Crusoe => "crusoe", BYOKProviderSlug.Darkbloom => "darkbloom", BYOKProviderSlug.Decart => "decart", + BYOKProviderSlug.Deepgram => "deepgram", BYOKProviderSlug.Deepinfra => "deepinfra", BYOKProviderSlug.Deepseek => "deepseek", BYOKProviderSlug.Dekallm => "dekallm", BYOKProviderSlug.Digitalocean => "digitalocean", BYOKProviderSlug.Featherless => "featherless", BYOKProviderSlug.Fireworks => "fireworks", + BYOKProviderSlug.FishAudio => "fish-audio", BYOKProviderSlug.Friendli => "friendli", BYOKProviderSlug.Gmicloud => "gmicloud", BYOKProviderSlug.GoogleAiStudio => "google-ai-studio", @@ -419,9 +445,11 @@ public static string ToValueString(this BYOKProviderSlug value) BYOKProviderSlug.Inflection => "inflection", BYOKProviderSlug.IoNet => "io-net", BYOKProviderSlug.Ionstream => "ionstream", + BYOKProviderSlug.Krea => "krea", BYOKProviderSlug.Liquid => "liquid", BYOKProviderSlug.Mancer => "mancer", BYOKProviderSlug.Mara => "mara", + BYOKProviderSlug.Meta => "meta", BYOKProviderSlug.Minimax => "minimax", BYOKProviderSlug.Mistral => "mistral", BYOKProviderSlug.Modelrun => "modelrun", @@ -445,7 +473,8 @@ public static string ToValueString(this BYOKProviderSlug value) BYOKProviderSlug.Recraft => "recraft", BYOKProviderSlug.Reka => "reka", BYOKProviderSlug.Relace => "relace", - BYOKProviderSlug.SakanaAi => "sakana-ai", + BYOKProviderSlug.SailResearch => "sail-research", + BYOKProviderSlug.Sakana => "sakana", BYOKProviderSlug.Sambanova => "sambanova", BYOKProviderSlug.Seed => "seed", BYOKProviderSlug.Siliconflow => "siliconflow", @@ -453,6 +482,7 @@ public static string ToValueString(this BYOKProviderSlug value) BYOKProviderSlug.Stepfun => "stepfun", BYOKProviderSlug.Streamlake => "streamlake", BYOKProviderSlug.Switchpoint => "switchpoint", + BYOKProviderSlug.Tencent => "tencent", BYOKProviderSlug.Tenstorrent => "tenstorrent", BYOKProviderSlug.Together => "together", BYOKProviderSlug.Upstage => "upstage", @@ -497,12 +527,14 @@ public static string ToValueString(this BYOKProviderSlug value) "crusoe" => BYOKProviderSlug.Crusoe, "darkbloom" => BYOKProviderSlug.Darkbloom, "decart" => BYOKProviderSlug.Decart, + "deepgram" => BYOKProviderSlug.Deepgram, "deepinfra" => BYOKProviderSlug.Deepinfra, "deepseek" => BYOKProviderSlug.Deepseek, "dekallm" => BYOKProviderSlug.Dekallm, "digitalocean" => BYOKProviderSlug.Digitalocean, "featherless" => BYOKProviderSlug.Featherless, "fireworks" => BYOKProviderSlug.Fireworks, + "fish-audio" => BYOKProviderSlug.FishAudio, "friendli" => BYOKProviderSlug.Friendli, "gmicloud" => BYOKProviderSlug.Gmicloud, "google-ai-studio" => BYOKProviderSlug.GoogleAiStudio, @@ -517,9 +549,11 @@ public static string ToValueString(this BYOKProviderSlug value) "inflection" => BYOKProviderSlug.Inflection, "io-net" => BYOKProviderSlug.IoNet, "ionstream" => BYOKProviderSlug.Ionstream, + "krea" => BYOKProviderSlug.Krea, "liquid" => BYOKProviderSlug.Liquid, "mancer" => BYOKProviderSlug.Mancer, "mara" => BYOKProviderSlug.Mara, + "meta" => BYOKProviderSlug.Meta, "minimax" => BYOKProviderSlug.Minimax, "mistral" => BYOKProviderSlug.Mistral, "modelrun" => BYOKProviderSlug.Modelrun, @@ -543,7 +577,8 @@ public static string ToValueString(this BYOKProviderSlug value) "recraft" => BYOKProviderSlug.Recraft, "reka" => BYOKProviderSlug.Reka, "relace" => BYOKProviderSlug.Relace, - "sakana-ai" => BYOKProviderSlug.SakanaAi, + "sail-research" => BYOKProviderSlug.SailResearch, + "sakana" => BYOKProviderSlug.Sakana, "sambanova" => BYOKProviderSlug.Sambanova, "seed" => BYOKProviderSlug.Seed, "siliconflow" => BYOKProviderSlug.Siliconflow, @@ -551,6 +586,7 @@ public static string ToValueString(this BYOKProviderSlug value) "stepfun" => BYOKProviderSlug.Stepfun, "streamlake" => BYOKProviderSlug.Streamlake, "switchpoint" => BYOKProviderSlug.Switchpoint, + "tencent" => BYOKProviderSlug.Tencent, "tenstorrent" => BYOKProviderSlug.Tenstorrent, "together" => BYOKProviderSlug.Together, "upstage" => BYOKProviderSlug.Upstage, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputs.g.cs index fbfdb0ff..5b3155fe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputs.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputs.g.cs @@ -82,43 +82,6 @@ public bool TryPickBaseInputs1( public global::System.Collections.Generic.IList PickBaseInputs1() => IsBaseInputs1 ? BaseInputs1! : throw new global::System.InvalidOperationException($"Expected union variant 'BaseInputs1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? BaseInputsVariant3 { get; init; } -#else - public object? BaseInputsVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BaseInputsVariant3))] -#endif - public bool IsBaseInputsVariant3 => BaseInputsVariant3 != null; - - /// - /// - /// - public bool TryPickBaseInputsVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = BaseInputsVariant3; - return IsBaseInputsVariant3; - } - - /// - /// - /// - public object PickBaseInputsVariant3() => IsBaseInputsVariant3 - ? BaseInputsVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'BaseInputsVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public BaseInputs(string? value) /// public BaseInputs( string? baseInputsVariant1, - global::System.Collections.Generic.IList? baseInputs1, - object? baseInputsVariant3 + global::System.Collections.Generic.IList? baseInputs1 ) { BaseInputsVariant1 = baseInputsVariant1; BaseInputs1 = baseInputs1; - BaseInputsVariant3 = baseInputsVariant3; } /// /// /// public object? Object => - BaseInputsVariant3 as object ?? BaseInputs1 as object ?? BaseInputsVariant1 as object ; @@ -170,8 +130,7 @@ BaseInputsVariant1 as object /// public override string? ToString() => BaseInputsVariant1?.ToString() ?? - BaseInputs1?.ToString() ?? - BaseInputsVariant3?.ToString() + BaseInputs1?.ToString() ; /// @@ -179,7 +138,7 @@ BaseInputsVariant1 as object /// public bool Validate() { - return IsBaseInputsVariant1 && !IsBaseInputs1 && !IsBaseInputsVariant3 || !IsBaseInputsVariant1 && IsBaseInputs1 && !IsBaseInputsVariant3 || !IsBaseInputsVariant1 && !IsBaseInputs1 && IsBaseInputsVariant3; + return IsBaseInputsVariant1 && !IsBaseInputs1 || !IsBaseInputsVariant1 && IsBaseInputs1; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func? baseInputsVariant1 = null, global::System.Func, TResult>? baseInputs1 = null, - global::System.Func? baseInputsVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return baseInputs1(BaseInputs1!); } - else if (IsBaseInputsVariant3 && baseInputsVariant3 != null) - { - return baseInputsVariant3(BaseInputsVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action? baseInputsVariant1 = null, global::System.Action>? baseInputs1 = null, - - global::System.Action? baseInputsVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { baseInputs1?.Invoke(BaseInputs1!); } - else if (IsBaseInputsVariant3) - { - baseInputsVariant3?.Invoke(BaseInputsVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action? baseInputsVariant1 = null, global::System.Action>? baseInputs1 = null, - global::System.Action? baseInputsVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { baseInputs1?.Invoke(BaseInputs1!); } - else if (IsBaseInputsVariant3) - { - baseInputsVariant3?.Invoke(BaseInputsVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(string), BaseInputs1, typeof(global::System.Collections.Generic.IList), - BaseInputsVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(BaseInputs other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsVariant1, other.BaseInputsVariant1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(BaseInputs1, other.BaseInputs1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsVariant3, other.BaseInputsVariant3) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(BaseInputs1, other.BaseInputs1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items0.g.cs index 77492656..8d5a524c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1Items0.g.cs @@ -20,8 +20,8 @@ public sealed partial class BaseInputsOneOf1Items0 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0PhaseJsonConverter))] - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Phase { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Phase { get; set; } /// /// @@ -57,7 +57,7 @@ public sealed partial class BaseInputsOneOf1Items0 public BaseInputsOneOf1Items0( global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content content, global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role role, - global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? phase, + global::OpenRouter.OneOf? phase, global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? type) { this.Content = content; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4.g.cs index be4db73f..60b6ef07 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4.g.cs @@ -15,6 +15,12 @@ public sealed partial class BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4TypeJsonConverter))] public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4( string text, - global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type type) + global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0Phase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0Phase.g.cs index aa983bef..2bc365b0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0Phase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0Phase.g.cs @@ -82,43 +82,6 @@ public bool TryPickBaseInputsOneOf1ItemsOneOf0Phase1( public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1 PickBaseInputsOneOf1ItemsOneOf0Phase1() => IsBaseInputsOneOf1ItemsOneOf0Phase1 ? BaseInputsOneOf1ItemsOneOf0Phase1!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'BaseInputsOneOf1ItemsOneOf0Phase1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? BaseInputsOneOf1ItemsOneOf0PhaseVariant3 { get; init; } -#else - public object? BaseInputsOneOf1ItemsOneOf0PhaseVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BaseInputsOneOf1ItemsOneOf0PhaseVariant3))] -#endif - public bool IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3 => BaseInputsOneOf1ItemsOneOf0PhaseVariant3 != null; - - /// - /// - /// - public bool TryPickBaseInputsOneOf1ItemsOneOf0PhaseVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = BaseInputsOneOf1ItemsOneOf0PhaseVariant3; - return IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3; - } - - /// - /// - /// - public object PickBaseInputsOneOf1ItemsOneOf0PhaseVariant3() => IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3 - ? BaseInputsOneOf1ItemsOneOf0PhaseVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'BaseInputsOneOf1ItemsOneOf0PhaseVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public BaseInputsOneOf1ItemsOneOf0Phase(global::OpenRouter.BaseInputsOneOf1Items /// public BaseInputsOneOf1ItemsOneOf0Phase( global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? baseInputsOneOf1ItemsOneOf0Phase0, - global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? baseInputsOneOf1ItemsOneOf0Phase1, - object? baseInputsOneOf1ItemsOneOf0PhaseVariant3 + global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? baseInputsOneOf1ItemsOneOf0Phase1 ) { BaseInputsOneOf1ItemsOneOf0Phase0 = baseInputsOneOf1ItemsOneOf0Phase0; BaseInputsOneOf1ItemsOneOf0Phase1 = baseInputsOneOf1ItemsOneOf0Phase1; - BaseInputsOneOf1ItemsOneOf0PhaseVariant3 = baseInputsOneOf1ItemsOneOf0PhaseVariant3; } /// /// /// public object? Object => - BaseInputsOneOf1ItemsOneOf0PhaseVariant3 as object ?? BaseInputsOneOf1ItemsOneOf0Phase1 as object ?? BaseInputsOneOf1ItemsOneOf0Phase0 as object ; @@ -193,8 +153,7 @@ BaseInputsOneOf1ItemsOneOf0Phase0 as object /// public override string? ToString() => BaseInputsOneOf1ItemsOneOf0Phase0?.ToValueString() ?? - BaseInputsOneOf1ItemsOneOf0Phase1?.ToValueString() ?? - BaseInputsOneOf1ItemsOneOf0PhaseVariant3?.ToString() + BaseInputsOneOf1ItemsOneOf0Phase1?.ToValueString() ; /// @@ -202,7 +161,7 @@ BaseInputsOneOf1ItemsOneOf0Phase0 as object /// public bool Validate() { - return IsBaseInputsOneOf1ItemsOneOf0Phase0 && !IsBaseInputsOneOf1ItemsOneOf0Phase1 && !IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3 || !IsBaseInputsOneOf1ItemsOneOf0Phase0 && IsBaseInputsOneOf1ItemsOneOf0Phase1 && !IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3 || !IsBaseInputsOneOf1ItemsOneOf0Phase0 && !IsBaseInputsOneOf1ItemsOneOf0Phase1 && IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3; + return IsBaseInputsOneOf1ItemsOneOf0Phase0 && !IsBaseInputsOneOf1ItemsOneOf0Phase1 || !IsBaseInputsOneOf1ItemsOneOf0Phase0 && IsBaseInputsOneOf1ItemsOneOf0Phase1; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? baseInputsOneOf1ItemsOneOf0Phase0 = null, global::System.Func? baseInputsOneOf1ItemsOneOf0Phase1 = null, - global::System.Func? baseInputsOneOf1ItemsOneOf0PhaseVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return baseInputsOneOf1ItemsOneOf0Phase1(BaseInputsOneOf1ItemsOneOf0Phase1!); } - else if (IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3 && baseInputsOneOf1ItemsOneOf0PhaseVariant3 != null) - { - return baseInputsOneOf1ItemsOneOf0PhaseVariant3(BaseInputsOneOf1ItemsOneOf0PhaseVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? baseInputsOneOf1ItemsOneOf0Phase0 = null, global::System.Action? baseInputsOneOf1ItemsOneOf0Phase1 = null, - - global::System.Action? baseInputsOneOf1ItemsOneOf0PhaseVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { baseInputsOneOf1ItemsOneOf0Phase1?.Invoke(BaseInputsOneOf1ItemsOneOf0Phase1!); } - else if (IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3) - { - baseInputsOneOf1ItemsOneOf0PhaseVariant3?.Invoke(BaseInputsOneOf1ItemsOneOf0PhaseVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? baseInputsOneOf1ItemsOneOf0Phase0 = null, global::System.Action? baseInputsOneOf1ItemsOneOf0Phase1 = null, - global::System.Action? baseInputsOneOf1ItemsOneOf0PhaseVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { baseInputsOneOf1ItemsOneOf0Phase1?.Invoke(BaseInputsOneOf1ItemsOneOf0Phase1!); } - else if (IsBaseInputsOneOf1ItemsOneOf0PhaseVariant3) - { - baseInputsOneOf1ItemsOneOf0PhaseVariant3?.Invoke(BaseInputsOneOf1ItemsOneOf0PhaseVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0), BaseInputsOneOf1ItemsOneOf0Phase1, typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1), - BaseInputsOneOf1ItemsOneOf0PhaseVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(BaseInputsOneOf1ItemsOneOf0Phase other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsOneOf1ItemsOneOf0Phase0, other.BaseInputsOneOf1ItemsOneOf0Phase0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsOneOf1ItemsOneOf0Phase1, other.BaseInputsOneOf1ItemsOneOf0Phase1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsOneOf1ItemsOneOf0PhaseVariant3, other.BaseInputsOneOf1ItemsOneOf0PhaseVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseInputsOneOf1ItemsOneOf0Phase1, other.BaseInputsOneOf1ItemsOneOf0Phase1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.Json.g.cs deleted file mode 100644 index 260ccdf1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class BaseInputsOneOf1ItemsOneOf0PhaseVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.BaseInputsOneOf1ItemsOneOf0PhaseVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.BaseInputsOneOf1ItemsOneOf0PhaseVariant3), - jsonSerializerContext) as global::OpenRouter.BaseInputsOneOf1ItemsOneOf0PhaseVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.BaseInputsOneOf1ItemsOneOf0PhaseVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.BaseInputsOneOf1ItemsOneOf0PhaseVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.BaseInputsOneOf1ItemsOneOf0PhaseVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.BaseInputsOneOf1ItemsOneOf0PhaseVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.g.cs deleted file mode 100644 index d8eb1ca8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsOneOf1ItemsOneOf0PhaseVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class BaseInputsOneOf1ItemsOneOf0PhaseVariant3 - { - - /// - /// 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.BaseInputsVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsVariant3.Json.g.cs deleted file mode 100644 index 9ced2480..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class BaseInputsVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.BaseInputsVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.BaseInputsVariant3), - jsonSerializerContext) as global::OpenRouter.BaseInputsVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.BaseInputsVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.BaseInputsVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.BaseInputsVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.BaseInputsVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsVariant3.g.cs deleted file mode 100644 index b3733cc6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseInputsVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class BaseInputsVariant3 - { - - /// - /// 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.BaseReasoningConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseReasoningConfig.g.cs index 7c1b6720..cfdeb2a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseReasoningConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BaseReasoningConfig.g.cs @@ -8,6 +8,13 @@ namespace OpenRouter /// public sealed partial class BaseReasoningConfig { + /// + /// Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("context")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter))] + public global::OpenRouter.ReasoningContext? Context { get; set; } + /// /// /// @@ -15,6 +22,13 @@ public sealed partial class BaseReasoningConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter))] public global::OpenRouter.ReasoningEffort? Effort { get; set; } + /// + /// Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter))] + public global::OpenRouter.ReasoningMode? Mode { get; set; } + /// /// /// @@ -31,16 +45,26 @@ public sealed partial class BaseReasoningConfig /// /// Initializes a new instance of the class. /// + /// + /// Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer. + /// /// + /// + /// Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BaseReasoningConfig( + global::OpenRouter.ReasoningContext? context, global::OpenRouter.ReasoningEffort? effort, + global::OpenRouter.ReasoningMode? mode, global::OpenRouter.ReasoningSummaryVerbosity? summary) { + this.Context = context; this.Effort = effort; + this.Mode = mode; this.Summary = summary; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs index 6607d875..d6e9ee1b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs @@ -111,6 +111,10 @@ public enum ByokGetParametersProvider /// /// /// + Deepgram, + /// + /// + /// Deepinfra, /// /// @@ -135,6 +139,10 @@ public enum ByokGetParametersProvider /// /// /// + FishAudio, + /// + /// + /// Friendli, /// /// @@ -191,6 +199,10 @@ public enum ByokGetParametersProvider /// /// /// + Krea, + /// + /// + /// Liquid, /// /// @@ -203,6 +215,10 @@ public enum ByokGetParametersProvider /// /// /// + Meta, + /// + /// + /// Minimax, /// /// @@ -295,7 +311,11 @@ public enum ByokGetParametersProvider /// /// /// - SakanaAi, + SailResearch, + /// + /// + /// + Sakana, /// /// /// @@ -327,6 +347,10 @@ public enum ByokGetParametersProvider /// /// /// + Tencent, + /// + /// + /// Tenstorrent, /// /// @@ -399,12 +423,14 @@ public static string ToValueString(this ByokGetParametersProvider value) ByokGetParametersProvider.Crusoe => "crusoe", ByokGetParametersProvider.Darkbloom => "darkbloom", ByokGetParametersProvider.Decart => "decart", + ByokGetParametersProvider.Deepgram => "deepgram", ByokGetParametersProvider.Deepinfra => "deepinfra", ByokGetParametersProvider.Deepseek => "deepseek", ByokGetParametersProvider.Dekallm => "dekallm", ByokGetParametersProvider.Digitalocean => "digitalocean", ByokGetParametersProvider.Featherless => "featherless", ByokGetParametersProvider.Fireworks => "fireworks", + ByokGetParametersProvider.FishAudio => "fish-audio", ByokGetParametersProvider.Friendli => "friendli", ByokGetParametersProvider.Gmicloud => "gmicloud", ByokGetParametersProvider.GoogleAiStudio => "google-ai-studio", @@ -419,9 +445,11 @@ public static string ToValueString(this ByokGetParametersProvider value) ByokGetParametersProvider.Inflection => "inflection", ByokGetParametersProvider.IoNet => "io-net", ByokGetParametersProvider.Ionstream => "ionstream", + ByokGetParametersProvider.Krea => "krea", ByokGetParametersProvider.Liquid => "liquid", ByokGetParametersProvider.Mancer => "mancer", ByokGetParametersProvider.Mara => "mara", + ByokGetParametersProvider.Meta => "meta", ByokGetParametersProvider.Minimax => "minimax", ByokGetParametersProvider.Mistral => "mistral", ByokGetParametersProvider.Modelrun => "modelrun", @@ -445,7 +473,8 @@ public static string ToValueString(this ByokGetParametersProvider value) ByokGetParametersProvider.Recraft => "recraft", ByokGetParametersProvider.Reka => "reka", ByokGetParametersProvider.Relace => "relace", - ByokGetParametersProvider.SakanaAi => "sakana-ai", + ByokGetParametersProvider.SailResearch => "sail-research", + ByokGetParametersProvider.Sakana => "sakana", ByokGetParametersProvider.Sambanova => "sambanova", ByokGetParametersProvider.Seed => "seed", ByokGetParametersProvider.Siliconflow => "siliconflow", @@ -453,6 +482,7 @@ public static string ToValueString(this ByokGetParametersProvider value) ByokGetParametersProvider.Stepfun => "stepfun", ByokGetParametersProvider.Streamlake => "streamlake", ByokGetParametersProvider.Switchpoint => "switchpoint", + ByokGetParametersProvider.Tencent => "tencent", ByokGetParametersProvider.Tenstorrent => "tenstorrent", ByokGetParametersProvider.Together => "together", ByokGetParametersProvider.Upstage => "upstage", @@ -497,12 +527,14 @@ public static string ToValueString(this ByokGetParametersProvider value) "crusoe" => ByokGetParametersProvider.Crusoe, "darkbloom" => ByokGetParametersProvider.Darkbloom, "decart" => ByokGetParametersProvider.Decart, + "deepgram" => ByokGetParametersProvider.Deepgram, "deepinfra" => ByokGetParametersProvider.Deepinfra, "deepseek" => ByokGetParametersProvider.Deepseek, "dekallm" => ByokGetParametersProvider.Dekallm, "digitalocean" => ByokGetParametersProvider.Digitalocean, "featherless" => ByokGetParametersProvider.Featherless, "fireworks" => ByokGetParametersProvider.Fireworks, + "fish-audio" => ByokGetParametersProvider.FishAudio, "friendli" => ByokGetParametersProvider.Friendli, "gmicloud" => ByokGetParametersProvider.Gmicloud, "google-ai-studio" => ByokGetParametersProvider.GoogleAiStudio, @@ -517,9 +549,11 @@ public static string ToValueString(this ByokGetParametersProvider value) "inflection" => ByokGetParametersProvider.Inflection, "io-net" => ByokGetParametersProvider.IoNet, "ionstream" => ByokGetParametersProvider.Ionstream, + "krea" => ByokGetParametersProvider.Krea, "liquid" => ByokGetParametersProvider.Liquid, "mancer" => ByokGetParametersProvider.Mancer, "mara" => ByokGetParametersProvider.Mara, + "meta" => ByokGetParametersProvider.Meta, "minimax" => ByokGetParametersProvider.Minimax, "mistral" => ByokGetParametersProvider.Mistral, "modelrun" => ByokGetParametersProvider.Modelrun, @@ -543,7 +577,8 @@ public static string ToValueString(this ByokGetParametersProvider value) "recraft" => ByokGetParametersProvider.Recraft, "reka" => ByokGetParametersProvider.Reka, "relace" => ByokGetParametersProvider.Relace, - "sakana-ai" => ByokGetParametersProvider.SakanaAi, + "sail-research" => ByokGetParametersProvider.SailResearch, + "sakana" => ByokGetParametersProvider.Sakana, "sambanova" => ByokGetParametersProvider.Sambanova, "seed" => ByokGetParametersProvider.Seed, "siliconflow" => ByokGetParametersProvider.Siliconflow, @@ -551,6 +586,7 @@ public static string ToValueString(this ByokGetParametersProvider value) "stepfun" => ByokGetParametersProvider.Stepfun, "streamlake" => ByokGetParametersProvider.Streamlake, "switchpoint" => ByokGetParametersProvider.Switchpoint, + "tencent" => ByokGetParametersProvider.Tencent, "tenstorrent" => ByokGetParametersProvider.Tenstorrent, "together" => ByokGetParametersProvider.Together, "upstage" => ByokGetParametersProvider.Upstage, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatAssistantMessage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatAssistantMessage.g.cs index 4b778887..63bce883 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatAssistantMessage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatAssistantMessage.g.cs @@ -18,8 +18,8 @@ public sealed partial class ChatAssistantMessage /// Assistant message content /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContentJsonConverter))] - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Content { get; set; } /// /// Generated images from image generation models @@ -95,7 +95,7 @@ public sealed partial class ChatAssistantMessage #endif public ChatAssistantMessage( global::OpenRouter.ChatAudioOutput? audio, - global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? content, + global::OpenRouter.OneOf? content, global::System.Collections.Generic.IList? images, string? name, string? reasoning, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentCacheControl.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentCacheControl.g.cs index c806b8f5..a8e1eb28 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentCacheControl.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentCacheControl.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. /// public sealed partial class ChatContentCacheControl { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant4.g.cs index bac71881..dd0ece92 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant4.g.cs @@ -20,7 +20,7 @@ public sealed partial class ChatContentItemsVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("video_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ChatContentVideoInput VideoUrl { get; set; } + public required global::OpenRouter.LegacyChatContentVideoInput VideoUrl { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,7 +39,7 @@ public sealed partial class ChatContentItemsVariant4 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatContentItemsVariant4( - global::OpenRouter.ChatContentVideoInput videoUrl, + global::OpenRouter.LegacyChatContentVideoInput videoUrl, global::OpenRouter.LegacyChatContentVideoType type) { this.Type = type; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant5.g.cs index e71baad6..886718ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentItemsVariant5.g.cs @@ -16,11 +16,17 @@ public sealed partial class ChatContentItemsVariant5 public global::OpenRouter.ChatContentTextType Type { get; set; } /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.ChatContentCacheControl? CacheControl { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -40,7 +46,10 @@ public sealed partial class ChatContentItemsVariant5 /// /// /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. + /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -48,10 +57,12 @@ public sealed partial class ChatContentItemsVariant5 public ChatContentItemsVariant5( string text, global::OpenRouter.ChatContentTextType type, - global::OpenRouter.ChatContentCacheControl? cacheControl) + global::OpenRouter.ChatContentCacheControl? cacheControl, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; this.CacheControl = cacheControl; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentText.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentText.g.cs index 81454b01..c0320fad 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentText.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatContentText.g.cs @@ -9,11 +9,17 @@ namespace OpenRouter public sealed partial class ChatContentText { /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.ChatContentCacheControl? CacheControl { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -39,7 +45,10 @@ public sealed partial class ChatContentText /// /// /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. + /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. /// /// #if NET7_0_OR_GREATER @@ -48,9 +57,11 @@ public sealed partial class ChatContentText public ChatContentText( string text, global::OpenRouter.ChatContentCacheControl? cacheControl, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint, global::OpenRouter.ChatContentTextType type) { this.CacheControl = cacheControl; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Type = type; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs index 9a3ad3b8..89d57569 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs @@ -194,6 +194,43 @@ public bool TryPickFilesServerTool( ? FilesServerTool! : throw new global::System.InvalidOperationException($"Expected union variant 'FilesServerTool' but the value was {ToString()}."); + /// + /// OpenRouter built-in server tool: fans out the user prompt to a panel of analysis models, then asks a judge model to summarize their collective output as structured JSON the outer model can synthesize from. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.FusionServerToolOpenRouter? FusionServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.FusionServerToolOpenRouter? FusionServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FusionServerToolOpenRouter))] +#endif + public bool IsFusionServerToolOpenRouter => FusionServerToolOpenRouter != null; + + /// + /// + /// + public bool TryPickFusionServerToolOpenRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.FusionServerToolOpenRouter? value) + { + value = FusionServerToolOpenRouter; + return IsFusionServerToolOpenRouter; + } + + /// + /// + /// + public global::OpenRouter.FusionServerToolOpenRouter PickFusionServerToolOpenRouter() => IsFusionServerToolOpenRouter + ? FusionServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'FusionServerToolOpenRouter' but the value was {ToString()}."); + /// /// OpenRouter built-in server tool: generates images from text prompts using an image generation model /// @@ -530,6 +567,29 @@ public ChatFunctionTool(global::OpenRouter.FilesServerTool? value) /// public static ChatFunctionTool FromFilesServerTool(global::OpenRouter.FilesServerTool? value) => new ChatFunctionTool(value); + /// + /// + /// + public static implicit operator ChatFunctionTool(global::OpenRouter.FusionServerToolOpenRouter value) => new ChatFunctionTool((global::OpenRouter.FusionServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.FusionServerToolOpenRouter?(ChatFunctionTool @this) => @this.FusionServerToolOpenRouter; + + /// + /// + /// + public ChatFunctionTool(global::OpenRouter.FusionServerToolOpenRouter? value) + { + FusionServerToolOpenRouter = value; + } + + /// + /// + /// + public static ChatFunctionTool FromFusionServerToolOpenRouter(global::OpenRouter.FusionServerToolOpenRouter? value) => new ChatFunctionTool(value); + /// /// /// @@ -677,6 +737,7 @@ public ChatFunctionTool( global::OpenRouter.BashServerTool? bashServerTool, global::OpenRouter.DatetimeServerTool? datetimeServerTool, global::OpenRouter.FilesServerTool? filesServerTool, + global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter, @@ -690,6 +751,7 @@ public ChatFunctionTool( BashServerTool = bashServerTool; DatetimeServerTool = datetimeServerTool; FilesServerTool = filesServerTool; + FusionServerToolOpenRouter = fusionServerToolOpenRouter; ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; ChatSearchModelsServerTool = chatSearchModelsServerTool; SubagentServerToolOpenRouter = subagentServerToolOpenRouter; @@ -708,6 +770,7 @@ WebFetchServerTool as object ?? SubagentServerToolOpenRouter as object ?? ChatSearchModelsServerTool as object ?? ImageGenerationServerToolOpenRouter as object ?? + FusionServerToolOpenRouter as object ?? FilesServerTool as object ?? DatetimeServerTool as object ?? BashServerTool as object ?? @@ -724,6 +787,7 @@ ChatFunctionTool0 as object BashServerTool?.ToString() ?? DatetimeServerTool?.ToString() ?? FilesServerTool?.ToString() ?? + FusionServerToolOpenRouter?.ToString() ?? ImageGenerationServerToolOpenRouter?.ToString() ?? ChatSearchModelsServerTool?.ToString() ?? SubagentServerToolOpenRouter?.ToString() ?? @@ -737,7 +801,7 @@ ChatFunctionTool0 as object /// public bool Validate() { - return IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && IsChatWebSearchShorthand; + return IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsAdvisorServerToolOpenRouter && !IsBashServerTool && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsSubagentServerToolOpenRouter && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && IsChatWebSearchShorthand; } /// @@ -749,6 +813,7 @@ public bool Validate() global::System.Func? bashServerTool = null, global::System.Func? datetimeServerTool = null, global::System.Func? filesServerTool = null, + global::System.Func? fusionServerToolOpenRouter = null, global::System.Func? imageGenerationServerToolOpenRouter = null, global::System.Func? chatSearchModelsServerTool = null, global::System.Func? subagentServerToolOpenRouter = null, @@ -782,6 +847,10 @@ public bool Validate() { return filesServerTool(FilesServerTool!); } + else if (IsFusionServerToolOpenRouter && fusionServerToolOpenRouter != null) + { + return fusionServerToolOpenRouter(FusionServerToolOpenRouter!); + } else if (IsImageGenerationServerToolOpenRouter && imageGenerationServerToolOpenRouter != null) { return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); @@ -824,6 +893,8 @@ public void Match( global::System.Action? filesServerTool = null, + global::System.Action? fusionServerToolOpenRouter = null, + global::System.Action? imageGenerationServerToolOpenRouter = null, global::System.Action? chatSearchModelsServerTool = null, @@ -862,6 +933,10 @@ public void Match( { filesServerTool?.Invoke(FilesServerTool!); } + else if (IsFusionServerToolOpenRouter) + { + fusionServerToolOpenRouter?.Invoke(FusionServerToolOpenRouter!); + } else if (IsImageGenerationServerToolOpenRouter) { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); @@ -897,6 +972,7 @@ public void Switch( global::System.Action? bashServerTool = null, global::System.Action? datetimeServerTool = null, global::System.Action? filesServerTool = null, + global::System.Action? fusionServerToolOpenRouter = null, global::System.Action? imageGenerationServerToolOpenRouter = null, global::System.Action? chatSearchModelsServerTool = null, global::System.Action? subagentServerToolOpenRouter = null, @@ -930,6 +1006,10 @@ public void Switch( { filesServerTool?.Invoke(FilesServerTool!); } + else if (IsFusionServerToolOpenRouter) + { + fusionServerToolOpenRouter?.Invoke(FusionServerToolOpenRouter!); + } else if (IsImageGenerationServerToolOpenRouter) { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); @@ -973,6 +1053,8 @@ public override int GetHashCode() typeof(global::OpenRouter.DatetimeServerTool), FilesServerTool, typeof(global::OpenRouter.FilesServerTool), + FusionServerToolOpenRouter, + typeof(global::OpenRouter.FusionServerToolOpenRouter), ImageGenerationServerToolOpenRouter, typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), ChatSearchModelsServerTool, @@ -1006,6 +1088,7 @@ public bool Equals(ChatFunctionTool other) global::System.Collections.Generic.EqualityComparer.Default.Equals(BashServerTool, other.BashServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(FilesServerTool, other.FilesServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FusionServerToolOpenRouter, other.FusionServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(SubagentServerToolOpenRouter, other.SubagentServerToolOpenRouter) && diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool0.g.cs index 03a6e5ad..fc54eb8a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool0.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class ChatFunctionTool0 { /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.ChatContentCacheControl? CacheControl { get; set; } @@ -41,7 +41,7 @@ public sealed partial class ChatFunctionTool0 /// Function definition for tool calling /// /// - /// Cache control for the content part + /// Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContent.g.cs index 422c41f7..0ba94018 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContent.g.cs @@ -82,43 +82,6 @@ public bool TryPickChatMessagesDiscriminatorMappingAssistantContent1( public global::System.Collections.Generic.IList PickChatMessagesDiscriminatorMappingAssistantContent1() => IsChatMessagesDiscriminatorMappingAssistantContent1 ? ChatMessagesDiscriminatorMappingAssistantContent1! : throw new global::System.InvalidOperationException($"Expected union variant 'ChatMessagesDiscriminatorMappingAssistantContent1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ChatMessagesDiscriminatorMappingAssistantContentVariant3 { get; init; } -#else - public object? ChatMessagesDiscriminatorMappingAssistantContentVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatMessagesDiscriminatorMappingAssistantContentVariant3))] -#endif - public bool IsChatMessagesDiscriminatorMappingAssistantContentVariant3 => ChatMessagesDiscriminatorMappingAssistantContentVariant3 != null; - - /// - /// - /// - public bool TryPickChatMessagesDiscriminatorMappingAssistantContentVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ChatMessagesDiscriminatorMappingAssistantContentVariant3; - return IsChatMessagesDiscriminatorMappingAssistantContentVariant3; - } - - /// - /// - /// - public object PickChatMessagesDiscriminatorMappingAssistantContentVariant3() => IsChatMessagesDiscriminatorMappingAssistantContentVariant3 - ? ChatMessagesDiscriminatorMappingAssistantContentVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'ChatMessagesDiscriminatorMappingAssistantContentVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public ChatMessagesDiscriminatorMappingAssistantContent(string? value) /// public ChatMessagesDiscriminatorMappingAssistantContent( string? chatMessagesDiscriminatorMappingAssistantContentVariant1, - global::System.Collections.Generic.IList? chatMessagesDiscriminatorMappingAssistantContent1, - object? chatMessagesDiscriminatorMappingAssistantContentVariant3 + global::System.Collections.Generic.IList? chatMessagesDiscriminatorMappingAssistantContent1 ) { ChatMessagesDiscriminatorMappingAssistantContentVariant1 = chatMessagesDiscriminatorMappingAssistantContentVariant1; ChatMessagesDiscriminatorMappingAssistantContent1 = chatMessagesDiscriminatorMappingAssistantContent1; - ChatMessagesDiscriminatorMappingAssistantContentVariant3 = chatMessagesDiscriminatorMappingAssistantContentVariant3; } /// /// /// public object? Object => - ChatMessagesDiscriminatorMappingAssistantContentVariant3 as object ?? ChatMessagesDiscriminatorMappingAssistantContent1 as object ?? ChatMessagesDiscriminatorMappingAssistantContentVariant1 as object ; @@ -170,8 +130,7 @@ ChatMessagesDiscriminatorMappingAssistantContentVariant1 as object /// public override string? ToString() => ChatMessagesDiscriminatorMappingAssistantContentVariant1?.ToString() ?? - ChatMessagesDiscriminatorMappingAssistantContent1?.ToString() ?? - ChatMessagesDiscriminatorMappingAssistantContentVariant3?.ToString() + ChatMessagesDiscriminatorMappingAssistantContent1?.ToString() ; /// @@ -179,7 +138,7 @@ ChatMessagesDiscriminatorMappingAssistantContentVariant1 as object /// public bool Validate() { - return IsChatMessagesDiscriminatorMappingAssistantContentVariant1 && !IsChatMessagesDiscriminatorMappingAssistantContent1 && !IsChatMessagesDiscriminatorMappingAssistantContentVariant3 || !IsChatMessagesDiscriminatorMappingAssistantContentVariant1 && IsChatMessagesDiscriminatorMappingAssistantContent1 && !IsChatMessagesDiscriminatorMappingAssistantContentVariant3 || !IsChatMessagesDiscriminatorMappingAssistantContentVariant1 && !IsChatMessagesDiscriminatorMappingAssistantContent1 && IsChatMessagesDiscriminatorMappingAssistantContentVariant3; + return IsChatMessagesDiscriminatorMappingAssistantContentVariant1 && !IsChatMessagesDiscriminatorMappingAssistantContent1 || !IsChatMessagesDiscriminatorMappingAssistantContentVariant1 && IsChatMessagesDiscriminatorMappingAssistantContent1; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func? chatMessagesDiscriminatorMappingAssistantContentVariant1 = null, global::System.Func, TResult>? chatMessagesDiscriminatorMappingAssistantContent1 = null, - global::System.Func? chatMessagesDiscriminatorMappingAssistantContentVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return chatMessagesDiscriminatorMappingAssistantContent1(ChatMessagesDiscriminatorMappingAssistantContent1!); } - else if (IsChatMessagesDiscriminatorMappingAssistantContentVariant3 && chatMessagesDiscriminatorMappingAssistantContentVariant3 != null) - { - return chatMessagesDiscriminatorMappingAssistantContentVariant3(ChatMessagesDiscriminatorMappingAssistantContentVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action? chatMessagesDiscriminatorMappingAssistantContentVariant1 = null, global::System.Action>? chatMessagesDiscriminatorMappingAssistantContent1 = null, - - global::System.Action? chatMessagesDiscriminatorMappingAssistantContentVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { chatMessagesDiscriminatorMappingAssistantContent1?.Invoke(ChatMessagesDiscriminatorMappingAssistantContent1!); } - else if (IsChatMessagesDiscriminatorMappingAssistantContentVariant3) - { - chatMessagesDiscriminatorMappingAssistantContentVariant3?.Invoke(ChatMessagesDiscriminatorMappingAssistantContentVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action? chatMessagesDiscriminatorMappingAssistantContentVariant1 = null, global::System.Action>? chatMessagesDiscriminatorMappingAssistantContent1 = null, - global::System.Action? chatMessagesDiscriminatorMappingAssistantContentVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { chatMessagesDiscriminatorMappingAssistantContent1?.Invoke(ChatMessagesDiscriminatorMappingAssistantContent1!); } - else if (IsChatMessagesDiscriminatorMappingAssistantContentVariant3) - { - chatMessagesDiscriminatorMappingAssistantContentVariant3?.Invoke(ChatMessagesDiscriminatorMappingAssistantContentVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(string), ChatMessagesDiscriminatorMappingAssistantContent1, typeof(global::System.Collections.Generic.IList), - ChatMessagesDiscriminatorMappingAssistantContentVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(ChatMessagesDiscriminatorMappingAssistantContent other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatMessagesDiscriminatorMappingAssistantContentVariant1, other.ChatMessagesDiscriminatorMappingAssistantContentVariant1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ChatMessagesDiscriminatorMappingAssistantContent1, other.ChatMessagesDiscriminatorMappingAssistantContent1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatMessagesDiscriminatorMappingAssistantContentVariant3, other.ChatMessagesDiscriminatorMappingAssistantContentVariant3) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ChatMessagesDiscriminatorMappingAssistantContent1, other.ChatMessagesDiscriminatorMappingAssistantContent1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.Json.g.cs deleted file mode 100644 index a8b525a5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ChatMessagesDiscriminatorMappingAssistantContentVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContentVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContentVariant3), - jsonSerializerContext) as global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContentVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContentVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ChatMessagesDiscriminatorMappingAssistantContentVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ChatMessagesDiscriminatorMappingAssistantContentVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContentVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.g.cs deleted file mode 100644 index f8db15d8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesDiscriminatorMappingAssistantContentVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ChatMessagesDiscriminatorMappingAssistantContentVariant3 - { - - /// - /// 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.ChatMessagesVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesVariant1.g.cs index 349eed80..287e9e8e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatMessagesVariant1.g.cs @@ -25,8 +25,8 @@ public sealed partial class ChatMessagesVariant1 /// Assistant message content /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatMessagesDiscriminatorMappingAssistantContentJsonConverter))] - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Content { get; set; } /// /// Generated images from image generation models @@ -106,7 +106,7 @@ public sealed partial class ChatMessagesVariant1 public ChatMessagesVariant1( global::OpenRouter.ChatMessagesVariant1Role role, global::OpenRouter.ChatAudioOutput? audio, - global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? content, + global::OpenRouter.OneOf? content, global::System.Collections.Generic.IList? images, string? name, string? reasoning, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs index f4ef0a53..8b4c0e00 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class ChatRequest { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -106,12 +106,30 @@ public sealed partial class ChatRequest [global::System.Text.Json.Serialization.JsonPropertyName("plugins")] public global::System.Collections.Generic.IList? Plugins { get; set; } + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prediction")] + public global::OpenRouter.Prediction? Prediction { get; set; } + /// /// Presence penalty (-2.0 to 2.0) /// [global::System.Text.Json.Serialization.JsonPropertyName("presence_penalty")] public double? PresencePenalty { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_key")] + public string? PromptCacheKey { get; set; } + + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_options")] + public global::OpenRouter.PromptCacheOptions? PromptCacheOptions { get; set; } + /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -128,8 +146,8 @@ public sealed partial class ChatRequest /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. /// [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_effort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? ReasoningEffort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter))] + public global::OpenRouter.ChatRequestReasoningEffort? ReasoningEffort { get; set; } /// /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. @@ -160,8 +178,8 @@ public sealed partial class ChatRequest /// The service tier to use for processing this request. /// [global::System.Text.Json.Serialization.JsonPropertyName("service_tier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestServiceTierJsonConverter))] + public global::OpenRouter.ChatRequestServiceTier? ServiceTier { get; set; } /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. @@ -173,8 +191,8 @@ public sealed partial class ChatRequest /// Stop sequences (up to 4) /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestStopJsonConverter))] - public global::OpenRouter.ChatRequestStop? Stop { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Stop { get; set; } /// /// Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. @@ -263,7 +281,7 @@ public sealed partial class ChatRequest /// List of messages for the conversation /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -305,9 +323,16 @@ public sealed partial class ChatRequest /// /// Plugins you want to enable for this request, including their settings. /// + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// /// /// Presence penalty (-2.0 to 2.0) /// + /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -395,17 +420,20 @@ public ChatRequest( global::System.Collections.Generic.IList? models, bool? parallelToolCalls, global::System.Collections.Generic.IList? plugins, + global::OpenRouter.Prediction? prediction, double? presencePenalty, + string? promptCacheKey, + global::OpenRouter.PromptCacheOptions? promptCacheOptions, global::OpenRouter.ProviderPreferences? provider, global::OpenRouter.ChatRequestReasoning? reasoning, - global::OpenRouter.OneOf? reasoningEffort, + global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort, double? repetitionPenalty, global::OpenRouter.ChatRequestResponseFormat? responseFormat, object? route, int? seed, - global::OpenRouter.OneOf? serviceTier, + global::OpenRouter.ChatRequestServiceTier? serviceTier, string? sessionId, - global::OpenRouter.ChatRequestStop? stop, + global::OpenRouter.OneOf? stop, global::System.Collections.Generic.IList? stopServerToolsWhen, bool? stream, global::OpenRouter.ChatStreamOptions? streamOptions, @@ -435,7 +463,10 @@ public ChatRequest( this.Models = models; this.ParallelToolCalls = parallelToolCalls; this.Plugins = plugins; + this.Prediction = prediction; this.PresencePenalty = presencePenalty; + this.PromptCacheKey = promptCacheKey; + this.PromptCacheOptions = promptCacheOptions; this.Provider = provider; this.Reasoning = reasoning; this.ReasoningEffort = reasoningEffort; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItems.g.cs index 32b6bf6a..ea5a724a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItems.g.cs @@ -14,13 +14,50 @@ namespace OpenRouter /// public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Id { get; } + /// + /// auto-beta-router variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ChatRequestPluginsItemsVariant1? AutoBetaRouter { get; init; } +#else + public global::OpenRouter.ChatRequestPluginsItemsVariant1? AutoBetaRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AutoBetaRouter))] +#endif + public bool IsAutoBetaRouter => AutoBetaRouter != null; + + /// + /// + /// + public bool TryPickAutoBetaRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ChatRequestPluginsItemsVariant1? value) + { + value = AutoBetaRouter; + return IsAutoBetaRouter; + } + + /// + /// + /// + public global::OpenRouter.ChatRequestPluginsItemsVariant1 PickAutoBetaRouter() => IsAutoBetaRouter + ? AutoBetaRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'AutoBetaRouter' but the value was {ToString()}."); + /// /// auto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant1? AutoRouter { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? AutoRouter { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant1? AutoRouter { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? AutoRouter { get; } #endif /// @@ -38,7 +75,7 @@ public bool TryPickAutoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant1? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant2? value) { value = AutoRouter; return IsAutoRouter; @@ -47,7 +84,7 @@ public bool TryPickAutoRouter( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1 PickAutoRouter() => IsAutoRouter + public global::OpenRouter.ChatRequestPluginsItemsVariant2 PickAutoRouter() => IsAutoRouter ? AutoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'AutoRouter' but the value was {ToString()}."); @@ -55,9 +92,9 @@ public bool TryPickAutoRouter( /// context-compression variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant2? ContextCompression { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? ContextCompression { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant2? ContextCompression { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? ContextCompression { get; } #endif /// @@ -75,7 +112,7 @@ public bool TryPickContextCompression( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant2? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant3? value) { value = ContextCompression; return IsContextCompression; @@ -84,7 +121,7 @@ public bool TryPickContextCompression( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2 PickContextCompression() => IsContextCompression + public global::OpenRouter.ChatRequestPluginsItemsVariant3 PickContextCompression() => IsContextCompression ? ContextCompression! : throw new global::System.InvalidOperationException($"Expected union variant 'ContextCompression' but the value was {ToString()}."); @@ -92,9 +129,9 @@ public bool TryPickContextCompression( /// file-parser variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant3? FileParser { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? FileParser { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant3? FileParser { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? FileParser { get; } #endif /// @@ -112,7 +149,7 @@ public bool TryPickFileParser( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant3? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant4? value) { value = FileParser; return IsFileParser; @@ -121,7 +158,7 @@ public bool TryPickFileParser( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3 PickFileParser() => IsFileParser + public global::OpenRouter.ChatRequestPluginsItemsVariant4 PickFileParser() => IsFileParser ? FileParser! : throw new global::System.InvalidOperationException($"Expected union variant 'FileParser' but the value was {ToString()}."); @@ -129,9 +166,9 @@ public bool TryPickFileParser( /// fusion variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Fusion { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Fusion { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Fusion { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Fusion { get; } #endif /// @@ -149,7 +186,7 @@ public bool TryPickFusion( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant4? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant5? value) { value = Fusion; return IsFusion; @@ -158,7 +195,7 @@ public bool TryPickFusion( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4 PickFusion() => IsFusion + public global::OpenRouter.ChatRequestPluginsItemsVariant5 PickFusion() => IsFusion ? Fusion! : throw new global::System.InvalidOperationException($"Expected union variant 'Fusion' but the value was {ToString()}."); @@ -166,9 +203,9 @@ public bool TryPickFusion( /// moderation variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Moderation { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Moderation { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Moderation { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Moderation { get; } #endif /// @@ -186,7 +223,7 @@ public bool TryPickModeration( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant5? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant6? value) { value = Moderation; return IsModeration; @@ -195,7 +232,7 @@ public bool TryPickModeration( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5 PickModeration() => IsModeration + public global::OpenRouter.ChatRequestPluginsItemsVariant6 PickModeration() => IsModeration ? Moderation! : throw new global::System.InvalidOperationException($"Expected union variant 'Moderation' but the value was {ToString()}."); @@ -203,9 +240,9 @@ public bool TryPickModeration( /// pareto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant6? ParetoRouter { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? ParetoRouter { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant6? ParetoRouter { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? ParetoRouter { get; } #endif /// @@ -223,7 +260,7 @@ public bool TryPickParetoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant6? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant7? value) { value = ParetoRouter; return IsParetoRouter; @@ -232,7 +269,7 @@ public bool TryPickParetoRouter( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6 PickParetoRouter() => IsParetoRouter + public global::OpenRouter.ChatRequestPluginsItemsVariant7 PickParetoRouter() => IsParetoRouter ? ParetoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'ParetoRouter' but the value was {ToString()}."); @@ -240,9 +277,9 @@ public bool TryPickParetoRouter( /// response-healing variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant7? ResponseHealing { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? ResponseHealing { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant7? ResponseHealing { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? ResponseHealing { get; } #endif /// @@ -260,7 +297,7 @@ public bool TryPickResponseHealing( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant7? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant8? value) { value = ResponseHealing; return IsResponseHealing; @@ -269,7 +306,7 @@ public bool TryPickResponseHealing( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7 PickResponseHealing() => IsResponseHealing + public global::OpenRouter.ChatRequestPluginsItemsVariant8 PickResponseHealing() => IsResponseHealing ? ResponseHealing! : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseHealing' but the value was {ToString()}."); @@ -277,9 +314,9 @@ public bool TryPickResponseHealing( /// web variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Web { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant9? Web { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Web { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant9? Web { get; } #endif /// @@ -297,7 +334,7 @@ public bool TryPickWeb( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant8? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant9? value) { value = Web; return IsWeb; @@ -306,7 +343,7 @@ public bool TryPickWeb( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8 PickWeb() => IsWeb + public global::OpenRouter.ChatRequestPluginsItemsVariant9 PickWeb() => IsWeb ? Web! : throw new global::System.InvalidOperationException($"Expected union variant 'Web' but the value was {ToString()}."); @@ -314,9 +351,9 @@ public bool TryPickWeb( /// web-fetch variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatRequestPluginsItemsVariant9? WebFetch { get; init; } + public global::OpenRouter.ChatRequestPluginsItemsVariant10? WebFetch { get; init; } #else - public global::OpenRouter.ChatRequestPluginsItemsVariant9? WebFetch { get; } + public global::OpenRouter.ChatRequestPluginsItemsVariant10? WebFetch { get; } #endif /// @@ -334,7 +371,7 @@ public bool TryPickWebFetch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatRequestPluginsItemsVariant9? value) + out global::OpenRouter.ChatRequestPluginsItemsVariant10? value) { value = WebFetch; return IsWebFetch; @@ -343,7 +380,7 @@ public bool TryPickWebFetch( /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant9 PickWebFetch() => IsWebFetch + public global::OpenRouter.ChatRequestPluginsItemsVariant10 PickWebFetch() => IsWebFetch ? WebFetch! : throw new global::System.InvalidOperationException($"Expected union variant 'WebFetch' but the value was {ToString()}."); /// @@ -354,20 +391,20 @@ public bool TryPickWebFetch( /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant1?(ChatRequestPluginsItems @this) => @this.AutoRouter; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant1?(ChatRequestPluginsItems @this) => @this.AutoBetaRouter; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant1? value) { - AutoRouter = value; + AutoBetaRouter = value; } /// /// /// - public static ChatRequestPluginsItems FromAutoRouter(global::OpenRouter.ChatRequestPluginsItemsVariant1? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromAutoBetaRouter(global::OpenRouter.ChatRequestPluginsItemsVariant1? value) => new ChatRequestPluginsItems(value); /// /// @@ -377,20 +414,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant2?(ChatRequestPluginsItems @this) => @this.ContextCompression; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant2?(ChatRequestPluginsItems @this) => @this.AutoRouter; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant2? value) { - ContextCompression = value; + AutoRouter = value; } /// /// /// - public static ChatRequestPluginsItems FromContextCompression(global::OpenRouter.ChatRequestPluginsItemsVariant2? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromAutoRouter(global::OpenRouter.ChatRequestPluginsItemsVariant2? value) => new ChatRequestPluginsItems(value); /// /// @@ -400,20 +437,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant3?(ChatRequestPluginsItems @this) => @this.FileParser; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant3?(ChatRequestPluginsItems @this) => @this.ContextCompression; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant3? value) { - FileParser = value; + ContextCompression = value; } /// /// /// - public static ChatRequestPluginsItems FromFileParser(global::OpenRouter.ChatRequestPluginsItemsVariant3? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromContextCompression(global::OpenRouter.ChatRequestPluginsItemsVariant3? value) => new ChatRequestPluginsItems(value); /// /// @@ -423,20 +460,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant4?(ChatRequestPluginsItems @this) => @this.Fusion; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant4?(ChatRequestPluginsItems @this) => @this.FileParser; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant4? value) { - Fusion = value; + FileParser = value; } /// /// /// - public static ChatRequestPluginsItems FromFusion(global::OpenRouter.ChatRequestPluginsItemsVariant4? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromFileParser(global::OpenRouter.ChatRequestPluginsItemsVariant4? value) => new ChatRequestPluginsItems(value); /// /// @@ -446,20 +483,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant5?(ChatRequestPluginsItems @this) => @this.Moderation; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant5?(ChatRequestPluginsItems @this) => @this.Fusion; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant5? value) { - Moderation = value; + Fusion = value; } /// /// /// - public static ChatRequestPluginsItems FromModeration(global::OpenRouter.ChatRequestPluginsItemsVariant5? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromFusion(global::OpenRouter.ChatRequestPluginsItemsVariant5? value) => new ChatRequestPluginsItems(value); /// /// @@ -469,20 +506,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant6?(ChatRequestPluginsItems @this) => @this.ParetoRouter; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant6?(ChatRequestPluginsItems @this) => @this.Moderation; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant6? value) { - ParetoRouter = value; + Moderation = value; } /// /// /// - public static ChatRequestPluginsItems FromParetoRouter(global::OpenRouter.ChatRequestPluginsItemsVariant6? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromModeration(global::OpenRouter.ChatRequestPluginsItemsVariant6? value) => new ChatRequestPluginsItems(value); /// /// @@ -492,20 +529,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant7?(ChatRequestPluginsItems @this) => @this.ResponseHealing; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant7?(ChatRequestPluginsItems @this) => @this.ParetoRouter; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant7? value) { - ResponseHealing = value; + ParetoRouter = value; } /// /// /// - public static ChatRequestPluginsItems FromResponseHealing(global::OpenRouter.ChatRequestPluginsItemsVariant7? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromParetoRouter(global::OpenRouter.ChatRequestPluginsItemsVariant7? value) => new ChatRequestPluginsItems(value); /// /// @@ -515,20 +552,20 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant8?(ChatRequestPluginsItems @this) => @this.Web; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant8?(ChatRequestPluginsItems @this) => @this.ResponseHealing; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant8? value) { - Web = value; + ResponseHealing = value; } /// /// /// - public static ChatRequestPluginsItems FromWeb(global::OpenRouter.ChatRequestPluginsItemsVariant8? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromResponseHealing(global::OpenRouter.ChatRequestPluginsItemsVariant8? value) => new ChatRequestPluginsItems(value); /// /// @@ -538,12 +575,35 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant9?(ChatRequestPluginsItems @this) => @this.WebFetch; + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant9?(ChatRequestPluginsItems @this) => @this.Web; /// /// /// public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant9? value) + { + Web = value; + } + + /// + /// + /// + public static ChatRequestPluginsItems FromWeb(global::OpenRouter.ChatRequestPluginsItemsVariant9? value) => new ChatRequestPluginsItems(value); + + /// + /// + /// + public static implicit operator ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant10 value) => new ChatRequestPluginsItems((global::OpenRouter.ChatRequestPluginsItemsVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ChatRequestPluginsItemsVariant10?(ChatRequestPluginsItems @this) => @this.WebFetch; + + /// + /// + /// + public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant10? value) { WebFetch = value; } @@ -551,26 +611,28 @@ public ChatRequestPluginsItems(global::OpenRouter.ChatRequestPluginsItemsVariant /// /// /// - public static ChatRequestPluginsItems FromWebFetch(global::OpenRouter.ChatRequestPluginsItemsVariant9? value) => new ChatRequestPluginsItems(value); + public static ChatRequestPluginsItems FromWebFetch(global::OpenRouter.ChatRequestPluginsItemsVariant10? value) => new ChatRequestPluginsItems(value); /// /// /// public ChatRequestPluginsItems( global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? id, - global::OpenRouter.ChatRequestPluginsItemsVariant1? autoRouter, - global::OpenRouter.ChatRequestPluginsItemsVariant2? contextCompression, - global::OpenRouter.ChatRequestPluginsItemsVariant3? fileParser, - global::OpenRouter.ChatRequestPluginsItemsVariant4? fusion, - global::OpenRouter.ChatRequestPluginsItemsVariant5? moderation, - global::OpenRouter.ChatRequestPluginsItemsVariant6? paretoRouter, - global::OpenRouter.ChatRequestPluginsItemsVariant7? responseHealing, - global::OpenRouter.ChatRequestPluginsItemsVariant8? web, - global::OpenRouter.ChatRequestPluginsItemsVariant9? webFetch + global::OpenRouter.ChatRequestPluginsItemsVariant1? autoBetaRouter, + global::OpenRouter.ChatRequestPluginsItemsVariant2? autoRouter, + global::OpenRouter.ChatRequestPluginsItemsVariant3? contextCompression, + global::OpenRouter.ChatRequestPluginsItemsVariant4? fileParser, + global::OpenRouter.ChatRequestPluginsItemsVariant5? fusion, + global::OpenRouter.ChatRequestPluginsItemsVariant6? moderation, + global::OpenRouter.ChatRequestPluginsItemsVariant7? paretoRouter, + global::OpenRouter.ChatRequestPluginsItemsVariant8? responseHealing, + global::OpenRouter.ChatRequestPluginsItemsVariant9? web, + global::OpenRouter.ChatRequestPluginsItemsVariant10? webFetch ) { Id = id; + AutoBetaRouter = autoBetaRouter; AutoRouter = autoRouter; ContextCompression = contextCompression; FileParser = fileParser; @@ -594,13 +656,15 @@ Moderation as object ?? Fusion as object ?? FileParser as object ?? ContextCompression as object ?? - AutoRouter as object + AutoRouter as object ?? + AutoBetaRouter as object ; /// /// /// public override string? ToString() => + AutoBetaRouter?.ToString() ?? AutoRouter?.ToString() ?? ContextCompression?.ToString() ?? FileParser?.ToString() ?? @@ -617,22 +681,23 @@ AutoRouter as object /// public bool Validate() { - return IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; + return IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; } /// /// /// public TResult? Match( - global::System.Func? autoRouter = null, - global::System.Func? contextCompression = null, - global::System.Func? fileParser = null, - global::System.Func? fusion = null, - global::System.Func? moderation = null, - global::System.Func? paretoRouter = null, - global::System.Func? responseHealing = null, - global::System.Func? web = null, - global::System.Func? webFetch = null, + global::System.Func? autoBetaRouter = null, + global::System.Func? autoRouter = null, + global::System.Func? contextCompression = null, + global::System.Func? fileParser = null, + global::System.Func? fusion = null, + global::System.Func? moderation = null, + global::System.Func? paretoRouter = null, + global::System.Func? responseHealing = null, + global::System.Func? web = null, + global::System.Func? webFetch = null, bool validate = true) { if (validate) @@ -640,7 +705,11 @@ public bool Validate() Validate(); } - if (IsAutoRouter && autoRouter != null) + if (IsAutoBetaRouter && autoBetaRouter != null) + { + return autoBetaRouter(AutoBetaRouter!); + } + else if (IsAutoRouter && autoRouter != null) { return autoRouter(AutoRouter!); } @@ -684,23 +753,25 @@ public bool Validate() /// /// public void Match( - global::System.Action? autoRouter = null, + global::System.Action? autoBetaRouter = null, - global::System.Action? contextCompression = null, + global::System.Action? autoRouter = null, - global::System.Action? fileParser = null, + global::System.Action? contextCompression = null, - global::System.Action? fusion = null, + global::System.Action? fileParser = null, - global::System.Action? moderation = null, + global::System.Action? fusion = null, - global::System.Action? paretoRouter = null, + global::System.Action? moderation = null, - global::System.Action? responseHealing = null, + global::System.Action? paretoRouter = null, - global::System.Action? web = null, + global::System.Action? responseHealing = null, - global::System.Action? webFetch = null, + global::System.Action? web = null, + + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -708,7 +779,11 @@ public void Match( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -750,15 +825,16 @@ public void Match( /// /// public void Switch( - global::System.Action? autoRouter = null, - global::System.Action? contextCompression = null, - global::System.Action? fileParser = null, - global::System.Action? fusion = null, - global::System.Action? moderation = null, - global::System.Action? paretoRouter = null, - global::System.Action? responseHealing = null, - global::System.Action? web = null, - global::System.Action? webFetch = null, + global::System.Action? autoBetaRouter = null, + global::System.Action? autoRouter = null, + global::System.Action? contextCompression = null, + global::System.Action? fileParser = null, + global::System.Action? fusion = null, + global::System.Action? moderation = null, + global::System.Action? paretoRouter = null, + global::System.Action? responseHealing = null, + global::System.Action? web = null, + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -766,7 +842,11 @@ public void Switch( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -811,24 +891,26 @@ public override int GetHashCode() { var fields = new object?[] { - AutoRouter, + AutoBetaRouter, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant1), - ContextCompression, + AutoRouter, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant2), - FileParser, + ContextCompression, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant3), - Fusion, + FileParser, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant4), - Moderation, + Fusion, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant5), - ParetoRouter, + Moderation, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant6), - ResponseHealing, + ParetoRouter, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant7), - Web, + ResponseHealing, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant8), - WebFetch, + Web, typeof(global::OpenRouter.ChatRequestPluginsItemsVariant9), + WebFetch, + typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -845,15 +927,16 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ChatRequestPluginsItems other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoBetaRouter, other.AutoBetaRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsDiscriminatorId.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsDiscriminatorId.g.cs index 94f0f795..686285ab 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsDiscriminatorId.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsDiscriminatorId.g.cs @@ -8,6 +8,10 @@ namespace OpenRouter /// public enum ChatRequestPluginsItemsDiscriminatorId { + /// + /// + /// + AutoBetaRouter, /// /// /// @@ -58,6 +62,7 @@ public static string ToValueString(this ChatRequestPluginsItemsDiscriminatorId v { return value switch { + ChatRequestPluginsItemsDiscriminatorId.AutoBetaRouter => "auto-beta-router", ChatRequestPluginsItemsDiscriminatorId.AutoRouter => "auto-router", ChatRequestPluginsItemsDiscriminatorId.ContextCompression => "context-compression", ChatRequestPluginsItemsDiscriminatorId.FileParser => "file-parser", @@ -77,6 +82,7 @@ public static string ToValueString(this ChatRequestPluginsItemsDiscriminatorId v { return value switch { + "auto-beta-router" => ChatRequestPluginsItemsDiscriminatorId.AutoBetaRouter, "auto-router" => ChatRequestPluginsItemsDiscriminatorId.AutoRouter, "context-compression" => ChatRequestPluginsItemsDiscriminatorId.ContextCompression, "file-parser" => ChatRequestPluginsItemsDiscriminatorId.FileParser, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs index a16a28d3..dca3e4b2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs @@ -4,31 +4,31 @@ namespace OpenRouter { /// - /// auto-router variant + /// auto-beta-router variant /// public sealed partial class ChatRequestPluginsItemsVariant1 { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant1IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant1Id Id { get; set; } /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] public int? CostQualityTradeoff { get; set; } /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } @@ -43,16 +43,16 @@ public sealed partial class ChatRequestPluginsItemsVariant1 /// Initializes a new instance of the class. /// /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.Json.g.cs new file mode 100644 index 00000000..3b33b3af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ChatRequestPluginsItemsVariant10 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ChatRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ChatRequestPluginsItemsVariant10), + jsonSerializerContext) as global::OpenRouter.ChatRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ChatRequestPluginsItemsVariant10? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ChatRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ChatRequestPluginsItemsVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.g.cs new file mode 100644 index 00000000..ca937e48 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant10.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web-fetch variant + /// + public sealed partial class ChatRequestPluginsItemsVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] + public global::OpenRouter.WebFetchPluginId Id { get; set; } + + /// + /// Only fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] + public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + + /// + /// Never fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] + public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] + public int? MaxContentTokens { get; set; } + + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] + public int? MaxUses { 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. + /// + /// + /// + /// Only fetch from these domains. + /// + /// + /// Never fetch from these domains. + /// + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatRequestPluginsItemsVariant10( + global::OpenRouter.WebFetchPluginId id, + global::System.Collections.Generic.IList? allowedDomains, + global::System.Collections.Generic.IList? blockedDomains, + int? maxContentTokens, + int? maxUses) + { + this.Id = id; + this.AllowedDomains = allowedDomains; + this.BlockedDomains = blockedDomains; + this.MaxContentTokens = maxContentTokens; + this.MaxUses = maxUses; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatRequestPluginsItemsVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1Id.g.cs index 19ecb2e2..054778eb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// public enum ChatRequestPluginsItemsVariant1Id { /// - /// auto-router + /// auto-beta-router /// - AutoRouter, + AutoBetaRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant1Id value) { return value switch { - ChatRequestPluginsItemsVariant1Id.AutoRouter => "auto-router", + ChatRequestPluginsItemsVariant1Id.AutoBetaRouter => "auto-beta-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant1Id value) { return value switch { - "auto-router" => ChatRequestPluginsItemsVariant1Id.AutoRouter, + "auto-beta-router" => ChatRequestPluginsItemsVariant1Id.AutoBetaRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2.g.cs index ff05aa96..3b1a42de 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2.g.cs @@ -4,29 +4,34 @@ namespace OpenRouter { /// - /// context-compression variant + /// auto-router variant /// public sealed partial class ChatRequestPluginsItemsVariant2 { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant2IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant2Id Id { get; set; } /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } /// - /// The compression engine to use. Defaults to "middle-out". + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] - public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,25 +43,30 @@ public sealed partial class ChatRequestPluginsItemsVariant2 /// Initializes a new instance of the class. /// /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// - /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - /// - /// The compression engine to use. Defaults to "middle-out". + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + /// + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant2( global::OpenRouter.ChatRequestPluginsItemsVariant2Id id, - bool? enabled, - global::OpenRouter.ContextCompressionEngine? engine) + global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, + bool? enabled) { this.Id = id; + this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; - this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2Id.g.cs index 8a43c09a..29e46b6e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant2Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// public enum ChatRequestPluginsItemsVariant2Id { /// - /// context-compression + /// auto-router /// - ContextCompression, + AutoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant2Id value) { return value switch { - ChatRequestPluginsItemsVariant2Id.ContextCompression => "context-compression", + ChatRequestPluginsItemsVariant2Id.AutoRouter => "auto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant2Id value) { return value switch { - "context-compression" => ChatRequestPluginsItemsVariant2Id.ContextCompression, + "auto-router" => ChatRequestPluginsItemsVariant2Id.AutoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3.g.cs index ec6e719b..64322c57 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3.g.cs @@ -4,28 +4,29 @@ namespace OpenRouter { /// - /// file-parser variant + /// context-compression variant /// public sealed partial class ChatRequestPluginsItemsVariant3 { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant3IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant3Id Id { get; set; } /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Options for PDF parsing. + /// The compression engine to use. Defaults to "middle-out". /// - [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] - public global::OpenRouter.PDFParserOptions? Pdf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] + public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,13 +38,13 @@ public sealed partial class ChatRequestPluginsItemsVariant3 /// Initializes a new instance of the class. /// /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// - /// - /// Options for PDF parsing. + /// + /// The compression engine to use. Defaults to "middle-out". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +52,11 @@ public sealed partial class ChatRequestPluginsItemsVariant3 public ChatRequestPluginsItemsVariant3( global::OpenRouter.ChatRequestPluginsItemsVariant3Id id, bool? enabled, - global::OpenRouter.PDFParserOptions? pdf) + global::OpenRouter.ContextCompressionEngine? engine) { this.Id = id; this.Enabled = enabled; - this.Pdf = pdf; + this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3Id.g.cs index 2eaaad64..3c57000c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant3Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// public enum ChatRequestPluginsItemsVariant3Id { /// - /// file-parser + /// context-compression /// - FileParser, + ContextCompression, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant3Id value) { return value switch { - ChatRequestPluginsItemsVariant3Id.FileParser => "file-parser", + ChatRequestPluginsItemsVariant3Id.ContextCompression => "context-compression", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant3Id value) { return value switch { - "file-parser" => ChatRequestPluginsItemsVariant3Id.FileParser, + "context-compression" => ChatRequestPluginsItemsVariant3Id.ContextCompression, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4.g.cs index df8c8fc7..50cf4d20 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4.g.cs @@ -4,53 +4,28 @@ namespace OpenRouter { /// - /// fusion variant + /// file-parser variant /// public sealed partial class ChatRequestPluginsItemsVariant4 { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant4IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant4Id Id { get; set; } /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] - public global::System.Collections.Generic.IList? AnalysisModels { get; set; } - - /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] - public int? MaxToolCalls { get; set; } - - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } - - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// Options for PDF parsing. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] + public global::OpenRouter.PDFParserOptions? Pdf { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,45 +37,25 @@ public sealed partial class ChatRequestPluginsItemsVariant4 /// Initializes a new instance of the class. /// /// - /// Discriminator value: fusion - /// - /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// Discriminator value: file-parser /// /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. - /// - /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + /// Options for PDF parsing. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant4( global::OpenRouter.ChatRequestPluginsItemsVariant4Id id, - global::System.Collections.Generic.IList? analysisModels, bool? enabled, - int? maxToolCalls, - string? model, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, - global::System.Collections.Generic.IList? tools) + global::OpenRouter.PDFParserOptions? pdf) { this.Id = id; - this.AnalysisModels = analysisModels; this.Enabled = enabled; - this.MaxToolCalls = maxToolCalls; - this.Model = model; - this.Preset = preset; - this.Tools = tools; + this.Pdf = pdf; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4Id.g.cs index edb8eab9..b17594b0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant4Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// public enum ChatRequestPluginsItemsVariant4Id { /// - /// fusion + /// file-parser /// - Fusion, + FileParser, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant4Id value) { return value switch { - ChatRequestPluginsItemsVariant4Id.Fusion => "fusion", + ChatRequestPluginsItemsVariant4Id.FileParser => "file-parser", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant4Id value) { return value switch { - "fusion" => ChatRequestPluginsItemsVariant4Id.Fusion, + "file-parser" => ChatRequestPluginsItemsVariant4Id.FileParser, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5.g.cs index f7d52e49..b87d6b94 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5.g.cs @@ -4,17 +4,54 @@ namespace OpenRouter { /// - /// moderation variant + /// fusion variant /// public sealed partial class ChatRequestPluginsItemsVariant5 { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant5IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant5Id Id { get; set; } + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] + public global::System.Collections.Generic.IList? AnalysisModels { get; set; } + + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] + public int? MaxToolCalls { get; set; } + + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preset")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } + + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -25,15 +62,45 @@ public sealed partial class ChatRequestPluginsItemsVariant5 /// Initializes a new instance of the class. /// /// - /// Discriminator value: moderation + /// Discriminator value: fusion + /// + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant5( - global::OpenRouter.ChatRequestPluginsItemsVariant5Id id) + global::OpenRouter.ChatRequestPluginsItemsVariant5Id id, + global::System.Collections.Generic.IList? analysisModels, + bool? enabled, + int? maxToolCalls, + string? model, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, + global::System.Collections.Generic.IList? tools) { this.Id = id; + this.AnalysisModels = analysisModels; + this.Enabled = enabled; + this.MaxToolCalls = maxToolCalls; + this.Model = model; + this.Preset = preset; + this.Tools = tools; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5Id.g.cs index ab493ce2..a4eeff91 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant5Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// public enum ChatRequestPluginsItemsVariant5Id { /// - /// moderation + /// fusion /// - Moderation, + Fusion, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant5Id value) { return value switch { - ChatRequestPluginsItemsVariant5Id.Moderation => "moderation", + ChatRequestPluginsItemsVariant5Id.Fusion => "fusion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant5Id value) { return value switch { - "moderation" => ChatRequestPluginsItemsVariant5Id.Moderation, + "fusion" => ChatRequestPluginsItemsVariant5Id.Fusion, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6.g.cs index bf5d973e..c3f2124b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6.g.cs @@ -4,29 +4,17 @@ namespace OpenRouter { /// - /// pareto-router variant + /// moderation variant /// public sealed partial class ChatRequestPluginsItemsVariant6 { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant6IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant6Id Id { get; set; } - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] - public double? MinCodingScore { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,25 +25,15 @@ public sealed partial class ChatRequestPluginsItemsVariant6 /// Initializes a new instance of the class. /// /// - /// Discriminator value: pareto-router - /// - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. + /// Discriminator value: moderation /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant6( - global::OpenRouter.ChatRequestPluginsItemsVariant6Id id, - bool? enabled, - double? minCodingScore) + global::OpenRouter.ChatRequestPluginsItemsVariant6Id id) { this.Id = id; - this.Enabled = enabled; - this.MinCodingScore = minCodingScore; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6Id.g.cs index 3a481fac..0907040e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant6Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// public enum ChatRequestPluginsItemsVariant6Id { /// - /// pareto-router + /// moderation /// - ParetoRouter, + Moderation, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant6Id value) { return value switch { - ChatRequestPluginsItemsVariant6Id.ParetoRouter => "pareto-router", + ChatRequestPluginsItemsVariant6Id.Moderation => "moderation", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant6Id value) { return value switch { - "pareto-router" => ChatRequestPluginsItemsVariant6Id.ParetoRouter, + "moderation" => ChatRequestPluginsItemsVariant6Id.Moderation, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7.g.cs index 96aa3c46..2aeac786 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7.g.cs @@ -4,23 +4,36 @@ namespace OpenRouter { /// - /// response-healing variant + /// pareto-router variant /// public sealed partial class ChatRequestPluginsItemsVariant7 { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant7IdJsonConverter))] public global::OpenRouter.ChatRequestPluginsItemsVariant7Id Id { get; set; } /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] + public double? MinCodingScore { get; set; } + + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("price_source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? PriceSource { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -31,20 +44,30 @@ public sealed partial class ChatRequestPluginsItemsVariant7 /// Initializes a new instance of the class. /// /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. + /// + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant7( global::OpenRouter.ChatRequestPluginsItemsVariant7Id id, - bool? enabled) + bool? enabled, + double? minCodingScore, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? priceSource) { this.Id = id; this.Enabled = enabled; + this.MinCodingScore = minCodingScore; + this.PriceSource = priceSource; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7Id.g.cs index 92571a9b..60195247 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant7Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// public enum ChatRequestPluginsItemsVariant7Id { /// - /// response-healing + /// pareto-router /// - ResponseHealing, + ParetoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant7Id value) { return value switch { - ChatRequestPluginsItemsVariant7Id.ResponseHealing => "response-healing", + ChatRequestPluginsItemsVariant7Id.ParetoRouter => "pareto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ChatRequestPluginsItemsVariant7Id value) { return value switch { - "response-healing" => ChatRequestPluginsItemsVariant7Id.ResponseHealing, + "pareto-router" => ChatRequestPluginsItemsVariant7Id.ParetoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8.g.cs index 38456feb..908a44fe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8.g.cs @@ -4,66 +4,23 @@ namespace OpenRouter { /// - /// web variant + /// response-healing variant /// public sealed partial class ChatRequestPluginsItemsVariant8 { /// - /// + /// Discriminator value: response-healing /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] - public global::OpenRouter.WebSearchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestPluginsItemsVariant8IdJsonConverter))] + public global::OpenRouter.ChatRequestPluginsItemsVariant8Id Id { get; set; } /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } - /// - /// The search engine to use for web search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] - public global::OpenRouter.WebSearchEngine? Engine { get; set; } - - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] - public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } - - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] - public global::System.Collections.Generic.IList? IncludeDomains { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] - public int? MaxResults { get; set; } - - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] - public int? MaxUses { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] - public string? SearchPrompt { get; set; } - - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] - public global::OpenRouter.WebSearchPluginUserLocation? UserLocation { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -73,50 +30,21 @@ public sealed partial class ChatRequestPluginsItemsVariant8 /// /// Initializes a new instance of the class. /// - /// - /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. - /// - /// - /// The search engine to use for web search. - /// - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + /// Discriminator value: response-healing /// - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - /// - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - /// - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). + /// + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant8( - global::OpenRouter.WebSearchPluginId id, - bool? enabled, - global::OpenRouter.WebSearchEngine? engine, - global::System.Collections.Generic.IList? excludeDomains, - global::System.Collections.Generic.IList? includeDomains, - int? maxResults, - int? maxUses, - string? searchPrompt, - global::OpenRouter.WebSearchPluginUserLocation? userLocation) + global::OpenRouter.ChatRequestPluginsItemsVariant8Id id, + bool? enabled) { this.Id = id; this.Enabled = enabled; - this.Engine = engine; - this.ExcludeDomains = excludeDomains; - this.IncludeDomains = includeDomains; - this.MaxResults = maxResults; - this.MaxUses = maxUses; - this.SearchPrompt = searchPrompt; - this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..ddb41c08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: response-healing + /// + public enum ChatRequestPluginsItemsVariant8Id + { + /// + /// response-healing + /// + ResponseHealing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatRequestPluginsItemsVariant8IdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatRequestPluginsItemsVariant8Id value) + { + return value switch + { + ChatRequestPluginsItemsVariant8Id.ResponseHealing => "response-healing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatRequestPluginsItemsVariant8Id? ToEnum(string value) + { + return value switch + { + "response-healing" => ChatRequestPluginsItemsVariant8Id.ResponseHealing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant9.g.cs index 67fe1a81..affc4a45 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant9.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web-fetch variant + /// web variant /// public sealed partial class ChatRequestPluginsItemsVariant9 { @@ -12,33 +12,59 @@ public sealed partial class ChatRequestPluginsItemsVariant9 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] - public global::OpenRouter.WebFetchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] + public global::OpenRouter.WebSearchPluginId Id { get; set; } /// - /// Only fetch from these domains. + /// Set to false to disable the web-search plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] - public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// - /// Never fetch from these domains. + /// The search engine to use for web search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] - public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] + public global::OpenRouter.WebSearchEngine? Engine { get; set; } /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] - public int? MaxContentTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] + public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] + public global::System.Collections.Generic.IList? IncludeDomains { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] + public int? MaxResults { get; set; } + + /// + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] public int? MaxUses { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] + public string? SearchPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? UserLocation { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,33 +75,47 @@ public sealed partial class ChatRequestPluginsItemsVariant9 /// Initializes a new instance of the class. /// /// - /// - /// Only fetch from these domains. + /// + /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// + /// + /// The search engine to use for web search. /// - /// - /// Never fetch from these domains. + /// + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// + /// /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestPluginsItemsVariant9( - global::OpenRouter.WebFetchPluginId id, - global::System.Collections.Generic.IList? allowedDomains, - global::System.Collections.Generic.IList? blockedDomains, - int? maxContentTokens, - int? maxUses) + global::OpenRouter.WebSearchPluginId id, + bool? enabled, + global::OpenRouter.WebSearchEngine? engine, + global::System.Collections.Generic.IList? excludeDomains, + global::System.Collections.Generic.IList? includeDomains, + int? maxResults, + int? maxUses, + string? searchPrompt, + global::OpenRouter.OneOf? userLocation) { this.Id = id; - this.AllowedDomains = allowedDomains; - this.BlockedDomains = blockedDomains; - this.MaxContentTokens = maxContentTokens; + this.Enabled = enabled; + this.Engine = engine; + this.ExcludeDomains = excludeDomains; + this.IncludeDomains = includeDomains; + this.MaxResults = maxResults; this.MaxUses = maxUses; + this.SearchPrompt = searchPrompt; + this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoning.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoning.g.cs index dbf4f467..586e9bd9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoning.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoning.g.cs @@ -12,8 +12,8 @@ public sealed partial class ChatRequestReasoning /// Constrains effort on reasoning for reasoning models /// [global::System.Text.Json.Serialization.JsonPropertyName("effort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? Effort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestReasoningEffortJsonConverter))] + public global::OpenRouter.ChatRequestReasoningEffort? Effort { get; set; } /// /// @@ -39,7 +39,7 @@ public sealed partial class ChatRequestReasoning [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestReasoning( - global::OpenRouter.OneOf? effort, + global::OpenRouter.ChatRequestReasoningEffort? effort, global::OpenRouter.ChatReasoningSummaryVerbosityEnum? summary) { this.Effort = effort; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2.g.cs index f73efa92..45cd1be6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ChatRequestResponseFormatVariant2 { /// - /// + /// Discriminator value: json_object /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.FormatJsonObjectConfigTypeJsonConverter))] - public global::OpenRouter.FormatJsonObjectConfigType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ChatRequestResponseFormatVariant2TypeJsonConverter))] + public global::OpenRouter.ChatRequestResponseFormatVariant2Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -24,12 +24,14 @@ public sealed partial class ChatRequestResponseFormatVariant2 /// /// Initializes a new instance of the class. /// - /// + /// + /// Discriminator value: json_object + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequestResponseFormatVariant2( - global::OpenRouter.FormatJsonObjectConfigType type) + global::OpenRouter.ChatRequestResponseFormatVariant2Type type) { this.Type = type; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2Type.g.cs new file mode 100644 index 00000000..5a187e80 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestResponseFormatVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: json_object + /// + public enum ChatRequestResponseFormatVariant2Type + { + /// + /// json_object + /// + JsonObject, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatRequestResponseFormatVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatRequestResponseFormatVariant2Type value) + { + return value switch + { + ChatRequestResponseFormatVariant2Type.JsonObject => "json_object", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatRequestResponseFormatVariant2Type? ToEnum(string value) + { + return value switch + { + "json_object" => ChatRequestResponseFormatVariant2Type.JsonObject, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStop.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStop.g.cs index b89d4957..51d7441e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStop.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStop.g.cs @@ -82,43 +82,6 @@ public bool TryPickChatRequestStopVariant2( public global::System.Collections.Generic.IList PickChatRequestStopVariant2() => IsChatRequestStopVariant2 ? ChatRequestStopVariant2! : throw new global::System.InvalidOperationException($"Expected union variant 'ChatRequestStopVariant2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ChatRequestStopVariant3 { get; init; } -#else - public object? ChatRequestStopVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatRequestStopVariant3))] -#endif - public bool IsChatRequestStopVariant3 => ChatRequestStopVariant3 != null; - - /// - /// - /// - public bool TryPickChatRequestStopVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ChatRequestStopVariant3; - return IsChatRequestStopVariant3; - } - - /// - /// - /// - public object PickChatRequestStopVariant3() => IsChatRequestStopVariant3 - ? ChatRequestStopVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'ChatRequestStopVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public ChatRequestStop(string? value) /// public ChatRequestStop( string? chatRequestStopVariant1, - global::System.Collections.Generic.IList? chatRequestStopVariant2, - object? chatRequestStopVariant3 + global::System.Collections.Generic.IList? chatRequestStopVariant2 ) { ChatRequestStopVariant1 = chatRequestStopVariant1; ChatRequestStopVariant2 = chatRequestStopVariant2; - ChatRequestStopVariant3 = chatRequestStopVariant3; } /// /// /// public object? Object => - ChatRequestStopVariant3 as object ?? ChatRequestStopVariant2 as object ?? ChatRequestStopVariant1 as object ; @@ -170,8 +130,7 @@ ChatRequestStopVariant1 as object /// public override string? ToString() => ChatRequestStopVariant1?.ToString() ?? - ChatRequestStopVariant2?.ToString() ?? - ChatRequestStopVariant3?.ToString() + ChatRequestStopVariant2?.ToString() ; /// @@ -179,7 +138,7 @@ ChatRequestStopVariant1 as object /// public bool Validate() { - return IsChatRequestStopVariant1 && !IsChatRequestStopVariant2 && !IsChatRequestStopVariant3 || !IsChatRequestStopVariant1 && IsChatRequestStopVariant2 && !IsChatRequestStopVariant3 || !IsChatRequestStopVariant1 && !IsChatRequestStopVariant2 && IsChatRequestStopVariant3; + return IsChatRequestStopVariant1 && !IsChatRequestStopVariant2 || !IsChatRequestStopVariant1 && IsChatRequestStopVariant2; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func? chatRequestStopVariant1 = null, global::System.Func, TResult>? chatRequestStopVariant2 = null, - global::System.Func? chatRequestStopVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return chatRequestStopVariant2(ChatRequestStopVariant2!); } - else if (IsChatRequestStopVariant3 && chatRequestStopVariant3 != null) - { - return chatRequestStopVariant3(ChatRequestStopVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action? chatRequestStopVariant1 = null, global::System.Action>? chatRequestStopVariant2 = null, - - global::System.Action? chatRequestStopVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { chatRequestStopVariant2?.Invoke(ChatRequestStopVariant2!); } - else if (IsChatRequestStopVariant3) - { - chatRequestStopVariant3?.Invoke(ChatRequestStopVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action? chatRequestStopVariant1 = null, global::System.Action>? chatRequestStopVariant2 = null, - global::System.Action? chatRequestStopVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { chatRequestStopVariant2?.Invoke(ChatRequestStopVariant2!); } - else if (IsChatRequestStopVariant3) - { - chatRequestStopVariant3?.Invoke(ChatRequestStopVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(string), ChatRequestStopVariant2, typeof(global::System.Collections.Generic.IList), - ChatRequestStopVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(ChatRequestStop other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatRequestStopVariant1, other.ChatRequestStopVariant1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ChatRequestStopVariant2, other.ChatRequestStopVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatRequestStopVariant3, other.ChatRequestStopVariant3) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ChatRequestStopVariant2, other.ChatRequestStopVariant2) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.Json.g.cs deleted file mode 100644 index a4022fc5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ChatRequestStopVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ChatRequestStopVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ChatRequestStopVariant3), - jsonSerializerContext) as global::OpenRouter.ChatRequestStopVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ChatRequestStopVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ChatRequestStopVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ChatRequestStopVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatRequestStopVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.g.cs deleted file mode 100644 index 882e0328..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestStopVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ChatRequestStopVariant3 - { - - /// - /// 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.ChatUsage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsage.g.cs index 5ff18bdb..e7eeb041 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsage.g.cs @@ -58,8 +58,7 @@ public sealed partial class ChatUsage /// Usage for server-side tool execution (e.g., web search) /// [global::System.Text.Json.Serialization.JsonPropertyName("server_tool_use_details")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? ServerToolUseDetails { get; set; } + public global::OpenRouter.ServerToolUseDetails? ServerToolUseDetails { get; set; } /// /// Total number of tokens @@ -116,7 +115,7 @@ public ChatUsage( global::OpenRouter.CostDetails? costDetails, bool? isByok, global::OpenRouter.OneOf? promptTokensDetails, - global::OpenRouter.OneOf? serverToolUseDetails) + global::OpenRouter.ServerToolUseDetails? serverToolUseDetails) { this.CompletionTokens = completionTokens; this.CompletionTokensDetails = completionTokensDetails; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.Json.g.cs deleted file mode 100644 index 4ade62e6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ChatUsageServerToolUseDetails - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ChatUsageServerToolUseDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ChatUsageServerToolUseDetails), - jsonSerializerContext) as global::OpenRouter.ChatUsageServerToolUseDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ChatUsageServerToolUseDetails? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ChatUsageServerToolUseDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ChatUsageServerToolUseDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatUsageServerToolUseDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.g.cs deleted file mode 100644 index 5941691c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatUsageServerToolUseDetails.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Usage for server-side tool execution (e.g., web search) - /// - public sealed partial class ChatUsageServerToolUseDetails - { - /// - /// Number of OpenRouter server tool calls that executed and produced a result - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_executed")] - public int? ToolCallsExecuted { get; set; } - - /// - /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_requested")] - public int? ToolCallsRequested { get; set; } - - /// - /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("web_search_requests")] - public int? WebSearchRequests { 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. - /// - /// - /// Number of OpenRouter server tool calls that executed and produced a result - /// - /// - /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. - /// - /// - /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ChatUsageServerToolUseDetails( - int? toolCallsExecuted, - int? toolCallsRequested, - int? webSearchRequests) - { - this.ToolCallsExecuted = toolCallsExecuted; - this.ToolCallsRequested = toolCallsRequested; - this.WebSearchRequests = webSearchRequests; - } - - /// - /// Initializes a new instance of the class. - /// - public ChatUsageServerToolUseDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterServerToolContainer1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterServerToolContainer1.g.cs index dc180d54..2bf5f5b1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterServerToolContainer1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CodeInterpreterServerToolContainer1.g.cs @@ -18,8 +18,8 @@ public sealed partial class CodeInterpreterServerToolContainer1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("memory_limit")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? MemoryLimit { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CodeInterpreterServerToolContainerOneOf1MemoryLimitJsonConverter))] + public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? MemoryLimit { get; set; } /// /// @@ -45,7 +45,7 @@ public sealed partial class CodeInterpreterServerToolContainer1 #endif public CodeInterpreterServerToolContainer1( global::System.Collections.Generic.IList? fileIds, - global::OpenRouter.OneOf? memoryLimit, + global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? memoryLimit, global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type type) { this.FileIds = fileIds; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentFilterAction.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentFilterAction.g.cs index 878bf669..ff5d7a53 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentFilterAction.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentFilterAction.g.cs @@ -15,6 +15,10 @@ public enum ContentFilterAction /// /// /// + Flag, + /// + /// + /// Redact, } @@ -31,6 +35,7 @@ public static string ToValueString(this ContentFilterAction value) return value switch { ContentFilterAction.Block => "block", + ContentFilterAction.Flag => "flag", ContentFilterAction.Redact => "redact", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -43,6 +48,7 @@ public static string ToValueString(this ContentFilterAction value) return value switch { "block" => ContentFilterAction.Block, + "flag" => ContentFilterAction.Flag, "redact" => ContentFilterAction.Redact, _ => null, }; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.Json.g.cs new file mode 100644 index 00000000..04fa45c2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ContextCompactionItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ContextCompactionItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ContextCompactionItem), + jsonSerializerContext) as global::OpenRouter.ContextCompactionItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ContextCompactionItem? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ContextCompactionItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ContextCompactionItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ContextCompactionItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.g.cs new file mode 100644 index 00000000..0cc4173f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItem.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A context compaction marker with an optional encrypted summary + /// + public sealed partial class ContextCompactionItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] + public string? EncryptedContent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompactionItemTypeJsonConverter))] + public global::OpenRouter.ContextCompactionItemType 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 ContextCompactionItem( + string? encryptedContent, + string? id, + global::OpenRouter.ContextCompactionItemType type) + { + this.EncryptedContent = encryptedContent; + this.Id = id; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ContextCompactionItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItemType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItemType.g.cs new file mode 100644 index 00000000..a1e14fc0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContextCompactionItemType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ContextCompactionItemType + { + /// + /// + /// + ContextCompaction, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ContextCompactionItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ContextCompactionItemType value) + { + return value switch + { + ContextCompactionItemType.ContextCompaction => "context_compaction", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ContextCompactionItemType? ToEnum(string value) + { + return value switch + { + "context_compaction" => ContextCompactionItemType.ContextCompaction, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailRequest.g.cs index c0b4d279..06405b2f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailRequest.g.cs @@ -21,7 +21,7 @@ public sealed partial class CreateGuardrailRequest public global::System.Collections.Generic.IList? AllowedProviders { get; set; } /// - /// Builtin content filters to apply. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_filter_builtins")] public global::System.Collections.Generic.IList? ContentFilterBuiltins { get; set; } @@ -39,7 +39,7 @@ public sealed partial class CreateGuardrailRequest public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -63,11 +63,17 @@ public sealed partial class CreateGuardrailRequest public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) /// @@ -125,7 +131,7 @@ public sealed partial class CreateGuardrailRequest /// List of allowed provider IDs /// /// - /// Builtin content filters to apply. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply to request messages @@ -134,7 +140,7 @@ public sealed partial class CreateGuardrailRequest /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -146,7 +152,10 @@ public sealed partial class CreateGuardrailRequest /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -178,6 +187,7 @@ public CreateGuardrailRequest( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -194,6 +204,7 @@ public CreateGuardrailRequest( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; this.LimitUsd = limitUsd; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailResponseData.g.cs index e0c5242c..f3f8ae3d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailResponseData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateGuardrailResponseData.g.cs @@ -46,7 +46,7 @@ public sealed partial class CreateGuardrailResponseData public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -70,11 +70,17 @@ public sealed partial class CreateGuardrailResponseData public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Unique identifier for the guardrail /// @@ -164,7 +170,7 @@ public sealed partial class CreateGuardrailResponseData /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -176,7 +182,10 @@ public sealed partial class CreateGuardrailResponseData /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model canonical_slugs to exclude from routing @@ -211,6 +220,7 @@ public CreateGuardrailResponseData( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -228,6 +238,7 @@ public CreateGuardrailResponseData( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.Id = id; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs index c1f69d5d..0a4f2209 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs @@ -36,8 +36,8 @@ public sealed partial class CreateKeysRequest /// Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. /// [global::System.Text.Json.Serialization.JsonPropertyName("limit_reset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? LimitReset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.KeysPostRequestBodyContentApplicationJsonSchemaLimitResetJsonConverter))] + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? LimitReset { get; set; } /// /// Name for the new API key @@ -91,7 +91,7 @@ public CreateKeysRequest( global::System.DateTime? expiresAt, bool? includeByokInLimit, double? limit, - global::OpenRouter.OneOf? limitReset, + global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? limitReset, global::System.Guid? workspaceId) { this.CreatorUserId = creatorUserId; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs index 00b99e2f..32f91909 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs @@ -32,7 +32,7 @@ public sealed partial class CreateObservabilityDestinationRequest /// Optional structured filter rules controlling which events are forwarded. /// [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] - public global::OpenRouter.ObservabilityFilterRulesConfig? FilterRules { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigNullable? FilterRules { get; set; } /// /// Human-readable name for the destination. @@ -115,7 +115,7 @@ public CreateObservabilityDestinationRequest( global::OpenRouter.CreateObservabilityDestinationRequestType type, global::System.Collections.Generic.IList? apiKeyHashes, bool? enabled, - global::OpenRouter.ObservabilityFilterRulesConfig? filterRules, + global::OpenRouter.ObservabilityFilterRulesConfigNullable? filterRules, bool? privacyMode, double? samplingRate, global::System.Guid? workspaceId) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CustomToolCallOutputItemOutputOneOf1ItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CustomToolCallOutputItemOutputOneOf1ItemsVariant3.g.cs index bdaadf75..5d776085 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CustomToolCallOutputItemOutputOneOf1ItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CustomToolCallOutputItemOutputOneOf1ItemsVariant3.g.cs @@ -15,6 +15,12 @@ public sealed partial class CustomToolCallOutputItemOutputOneOf1ItemsVariant3 [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CustomToolCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter))] public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class CustomToolCallOutputItemOutputOneOf1ItemsVariant3 /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomToolCallOutputItemOutputOneOf1ItemsVariant3( string text, - global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type type) + global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersCategory.g.cs new file mode 100644 index 00000000..2c73947b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersCategory.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`. + /// + public enum DatasetsRankingsDailyGetParametersCategory + { + /// + /// + /// + Academia, + /// + /// + /// + Finance, + /// + /// + /// + Health, + /// + /// + /// + Legal, + /// + /// + /// + Marketing, + /// + /// + /// + MarketingSeo, + /// + /// + /// + Programming, + /// + /// + /// + Roleplay, + /// + /// + /// + Science, + /// + /// + /// + Technology, + /// + /// + /// + Translation, + /// + /// + /// + Trivia, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsRankingsDailyGetParametersCategoryExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsRankingsDailyGetParametersCategory value) + { + return value switch + { + DatasetsRankingsDailyGetParametersCategory.Academia => "academia", + DatasetsRankingsDailyGetParametersCategory.Finance => "finance", + DatasetsRankingsDailyGetParametersCategory.Health => "health", + DatasetsRankingsDailyGetParametersCategory.Legal => "legal", + DatasetsRankingsDailyGetParametersCategory.Marketing => "marketing", + DatasetsRankingsDailyGetParametersCategory.MarketingSeo => "marketing/seo", + DatasetsRankingsDailyGetParametersCategory.Programming => "programming", + DatasetsRankingsDailyGetParametersCategory.Roleplay => "roleplay", + DatasetsRankingsDailyGetParametersCategory.Science => "science", + DatasetsRankingsDailyGetParametersCategory.Technology => "technology", + DatasetsRankingsDailyGetParametersCategory.Translation => "translation", + DatasetsRankingsDailyGetParametersCategory.Trivia => "trivia", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsRankingsDailyGetParametersCategory? ToEnum(string value) + { + return value switch + { + "academia" => DatasetsRankingsDailyGetParametersCategory.Academia, + "finance" => DatasetsRankingsDailyGetParametersCategory.Finance, + "health" => DatasetsRankingsDailyGetParametersCategory.Health, + "legal" => DatasetsRankingsDailyGetParametersCategory.Legal, + "marketing" => DatasetsRankingsDailyGetParametersCategory.Marketing, + "marketing/seo" => DatasetsRankingsDailyGetParametersCategory.MarketingSeo, + "programming" => DatasetsRankingsDailyGetParametersCategory.Programming, + "roleplay" => DatasetsRankingsDailyGetParametersCategory.Roleplay, + "science" => DatasetsRankingsDailyGetParametersCategory.Science, + "technology" => DatasetsRankingsDailyGetParametersCategory.Technology, + "translation" => DatasetsRankingsDailyGetParametersCategory.Translation, + "trivia" => DatasetsRankingsDailyGetParametersCategory.Trivia, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersContextBucket.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersContextBucket.g.cs new file mode 100644 index 00000000..33f50254 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersContextBucket.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`. + /// + public enum DatasetsRankingsDailyGetParametersContextBucket + { + /// + /// + /// + x100k, + /// + /// + /// + x10k, + /// + /// + /// + x10m, + /// + /// + /// + x1k, + /// + /// + /// + x1m, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsRankingsDailyGetParametersContextBucketExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsRankingsDailyGetParametersContextBucket value) + { + return value switch + { + DatasetsRankingsDailyGetParametersContextBucket.x100k => "100K", + DatasetsRankingsDailyGetParametersContextBucket.x10k => "10K", + DatasetsRankingsDailyGetParametersContextBucket.x10m => "10M", + DatasetsRankingsDailyGetParametersContextBucket.x1k => "1K", + DatasetsRankingsDailyGetParametersContextBucket.x1m => "1M", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsRankingsDailyGetParametersContextBucket? ToEnum(string value) + { + return value switch + { + "100K" => DatasetsRankingsDailyGetParametersContextBucket.x100k, + "10K" => DatasetsRankingsDailyGetParametersContextBucket.x10k, + "10M" => DatasetsRankingsDailyGetParametersContextBucket.x10m, + "1K" => DatasetsRankingsDailyGetParametersContextBucket.x1k, + "1M" => DatasetsRankingsDailyGetParametersContextBucket.x1m, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersLanguageType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersLanguageType.g.cs new file mode 100644 index 00000000..75dd9cf5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersLanguageType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`. + /// + public enum DatasetsRankingsDailyGetParametersLanguageType + { + /// + /// + /// + Natural, + /// + /// + /// + Programming, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsRankingsDailyGetParametersLanguageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsRankingsDailyGetParametersLanguageType value) + { + return value switch + { + DatasetsRankingsDailyGetParametersLanguageType.Natural => "natural", + DatasetsRankingsDailyGetParametersLanguageType.Programming => "programming", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsRankingsDailyGetParametersLanguageType? ToEnum(string value) + { + return value switch + { + "natural" => DatasetsRankingsDailyGetParametersLanguageType.Natural, + "programming" => DatasetsRankingsDailyGetParametersLanguageType.Programming, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersModality.g.cs new file mode 100644 index 00000000..7aefb3b4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersModality.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + public enum DatasetsRankingsDailyGetParametersModality + { + /// + /// `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + Audio, + /// + /// `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + Image, + /// + /// `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + ImageOutput, + /// + /// `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + Text, + /// + /// `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`. + /// + ToolCalling, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsRankingsDailyGetParametersModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsRankingsDailyGetParametersModality value) + { + return value switch + { + DatasetsRankingsDailyGetParametersModality.Audio => "audio", + DatasetsRankingsDailyGetParametersModality.Image => "image", + DatasetsRankingsDailyGetParametersModality.ImageOutput => "image_output", + DatasetsRankingsDailyGetParametersModality.Text => "text", + DatasetsRankingsDailyGetParametersModality.ToolCalling => "tool_calling", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsRankingsDailyGetParametersModality? ToEnum(string value) + { + return value switch + { + "audio" => DatasetsRankingsDailyGetParametersModality.Audio, + "image" => DatasetsRankingsDailyGetParametersModality.Image, + "image_output" => DatasetsRankingsDailyGetParametersModality.ImageOutput, + "text" => DatasetsRankingsDailyGetParametersModality.Text, + "tool_calling" => DatasetsRankingsDailyGetParametersModality.ToolCalling, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersPeriod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersPeriod.g.cs new file mode 100644 index 00000000..cb90ff36 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsRankingsDailyGetParametersPeriod.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries. + /// + public enum DatasetsRankingsDailyGetParametersPeriod + { + /// + /// + /// + Day, + /// + /// + /// + Month, + /// + /// + /// + Week, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsRankingsDailyGetParametersPeriodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsRankingsDailyGetParametersPeriod value) + { + return value switch + { + DatasetsRankingsDailyGetParametersPeriod.Day => "day", + DatasetsRankingsDailyGetParametersPeriod.Month => "month", + DatasetsRankingsDailyGetParametersPeriod.Week => "week", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsRankingsDailyGetParametersPeriod? ToEnum(string value) + { + return value switch + { + "day" => DatasetsRankingsDailyGetParametersPeriod.Day, + "month" => DatasetsRankingsDailyGetParametersPeriod.Month, + "week" => DatasetsRankingsDailyGetParametersPeriod.Week, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessage.g.cs index 417af5d5..f20fe377 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessage.g.cs @@ -12,15 +12,15 @@ public sealed partial class EasyInputMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.EasyInputMessageContentJsonConverter))] - public global::OpenRouter.EasyInputMessageContent? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Content { get; set; } /// /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.EasyInputMessagePhaseJsonConverter))] - public global::OpenRouter.EasyInputMessagePhase? Phase { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Phase { get; set; } /// /// @@ -57,8 +57,8 @@ public sealed partial class EasyInputMessage #endif public EasyInputMessage( global::OpenRouter.EasyInputMessageRole role, - global::OpenRouter.EasyInputMessageContent? content, - global::OpenRouter.EasyInputMessagePhase? phase, + global::OpenRouter.OneOf? content, + global::OpenRouter.OneOf? phase, global::OpenRouter.EasyInputMessageType? type) { this.Content = content; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContent.g.cs index fc56ee2e..d47b6169 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContent.g.cs @@ -82,43 +82,6 @@ public bool TryPickEasyInputMessageContentVariant2( public string PickEasyInputMessageContentVariant2() => IsEasyInputMessageContentVariant2 ? EasyInputMessageContentVariant2! : throw new global::System.InvalidOperationException($"Expected union variant 'EasyInputMessageContentVariant2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? EasyInputMessageContentVariant3 { get; init; } -#else - public object? EasyInputMessageContentVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EasyInputMessageContentVariant3))] -#endif - public bool IsEasyInputMessageContentVariant3 => EasyInputMessageContentVariant3 != null; - - /// - /// - /// - public bool TryPickEasyInputMessageContentVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = EasyInputMessageContentVariant3; - return IsEasyInputMessageContentVariant3; - } - - /// - /// - /// - public object PickEasyInputMessageContentVariant3() => IsEasyInputMessageContentVariant3 - ? EasyInputMessageContentVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'EasyInputMessageContentVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public EasyInputMessageContent(string? value) /// public EasyInputMessageContent( global::System.Collections.Generic.IList? easyInputMessageContent0, - string? easyInputMessageContentVariant2, - object? easyInputMessageContentVariant3 + string? easyInputMessageContentVariant2 ) { EasyInputMessageContent0 = easyInputMessageContent0; EasyInputMessageContentVariant2 = easyInputMessageContentVariant2; - EasyInputMessageContentVariant3 = easyInputMessageContentVariant3; } /// /// /// public object? Object => - EasyInputMessageContentVariant3 as object ?? EasyInputMessageContentVariant2 as object ?? EasyInputMessageContent0 as object ; @@ -170,8 +130,7 @@ EasyInputMessageContent0 as object /// public override string? ToString() => EasyInputMessageContent0?.ToString() ?? - EasyInputMessageContentVariant2?.ToString() ?? - EasyInputMessageContentVariant3?.ToString() + EasyInputMessageContentVariant2?.ToString() ; /// @@ -179,7 +138,7 @@ EasyInputMessageContent0 as object /// public bool Validate() { - return IsEasyInputMessageContent0 && !IsEasyInputMessageContentVariant2 && !IsEasyInputMessageContentVariant3 || !IsEasyInputMessageContent0 && IsEasyInputMessageContentVariant2 && !IsEasyInputMessageContentVariant3 || !IsEasyInputMessageContent0 && !IsEasyInputMessageContentVariant2 && IsEasyInputMessageContentVariant3; + return IsEasyInputMessageContent0 && !IsEasyInputMessageContentVariant2 || !IsEasyInputMessageContent0 && IsEasyInputMessageContentVariant2; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func, TResult>? easyInputMessageContent0 = null, global::System.Func? easyInputMessageContentVariant2 = null, - global::System.Func? easyInputMessageContentVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return easyInputMessageContentVariant2(EasyInputMessageContentVariant2!); } - else if (IsEasyInputMessageContentVariant3 && easyInputMessageContentVariant3 != null) - { - return easyInputMessageContentVariant3(EasyInputMessageContentVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action>? easyInputMessageContent0 = null, global::System.Action? easyInputMessageContentVariant2 = null, - - global::System.Action? easyInputMessageContentVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { easyInputMessageContentVariant2?.Invoke(EasyInputMessageContentVariant2!); } - else if (IsEasyInputMessageContentVariant3) - { - easyInputMessageContentVariant3?.Invoke(EasyInputMessageContentVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action>? easyInputMessageContent0 = null, global::System.Action? easyInputMessageContentVariant2 = null, - global::System.Action? easyInputMessageContentVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { easyInputMessageContentVariant2?.Invoke(EasyInputMessageContentVariant2!); } - else if (IsEasyInputMessageContentVariant3) - { - easyInputMessageContentVariant3?.Invoke(EasyInputMessageContentVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(global::System.Collections.Generic.IList), EasyInputMessageContentVariant2, typeof(string), - EasyInputMessageContentVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(EasyInputMessageContent other) { return global::System.Collections.Generic.EqualityComparer?>.Default.Equals(EasyInputMessageContent0, other.EasyInputMessageContent0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessageContentVariant2, other.EasyInputMessageContentVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessageContentVariant3, other.EasyInputMessageContentVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessageContentVariant2, other.EasyInputMessageContentVariant2) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.Json.g.cs deleted file mode 100644 index 118e230b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class EasyInputMessageContentVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.EasyInputMessageContentVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.EasyInputMessageContentVariant3), - jsonSerializerContext) as global::OpenRouter.EasyInputMessageContentVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.EasyInputMessageContentVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.EasyInputMessageContentVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.EasyInputMessageContentVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EasyInputMessageContentVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.g.cs deleted file mode 100644 index f381c2d1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessageContentVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class EasyInputMessageContentVariant3 - { - - /// - /// 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.EasyInputMessagePhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhase.g.cs index 62fb9ce0..cac49e76 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhase.g.cs @@ -82,43 +82,6 @@ public bool TryPickEasyInputMessagePhase1( public global::OpenRouter.EasyInputMessagePhase1 PickEasyInputMessagePhase1() => IsEasyInputMessagePhase1 ? EasyInputMessagePhase1!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'EasyInputMessagePhase1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? EasyInputMessagePhaseVariant3 { get; init; } -#else - public object? EasyInputMessagePhaseVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EasyInputMessagePhaseVariant3))] -#endif - public bool IsEasyInputMessagePhaseVariant3 => EasyInputMessagePhaseVariant3 != null; - - /// - /// - /// - public bool TryPickEasyInputMessagePhaseVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = EasyInputMessagePhaseVariant3; - return IsEasyInputMessagePhaseVariant3; - } - - /// - /// - /// - public object PickEasyInputMessagePhaseVariant3() => IsEasyInputMessagePhaseVariant3 - ? EasyInputMessagePhaseVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'EasyInputMessagePhaseVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public EasyInputMessagePhase(global::OpenRouter.EasyInputMessagePhase1? value) /// public EasyInputMessagePhase( global::OpenRouter.EasyInputMessagePhase0? easyInputMessagePhase0, - global::OpenRouter.EasyInputMessagePhase1? easyInputMessagePhase1, - object? easyInputMessagePhaseVariant3 + global::OpenRouter.EasyInputMessagePhase1? easyInputMessagePhase1 ) { EasyInputMessagePhase0 = easyInputMessagePhase0; EasyInputMessagePhase1 = easyInputMessagePhase1; - EasyInputMessagePhaseVariant3 = easyInputMessagePhaseVariant3; } /// /// /// public object? Object => - EasyInputMessagePhaseVariant3 as object ?? EasyInputMessagePhase1 as object ?? EasyInputMessagePhase0 as object ; @@ -193,8 +153,7 @@ EasyInputMessagePhase0 as object /// public override string? ToString() => EasyInputMessagePhase0?.ToValueString() ?? - EasyInputMessagePhase1?.ToValueString() ?? - EasyInputMessagePhaseVariant3?.ToString() + EasyInputMessagePhase1?.ToValueString() ; /// @@ -202,7 +161,7 @@ EasyInputMessagePhase0 as object /// public bool Validate() { - return IsEasyInputMessagePhase0 && !IsEasyInputMessagePhase1 && !IsEasyInputMessagePhaseVariant3 || !IsEasyInputMessagePhase0 && IsEasyInputMessagePhase1 && !IsEasyInputMessagePhaseVariant3 || !IsEasyInputMessagePhase0 && !IsEasyInputMessagePhase1 && IsEasyInputMessagePhaseVariant3; + return IsEasyInputMessagePhase0 && !IsEasyInputMessagePhase1 || !IsEasyInputMessagePhase0 && IsEasyInputMessagePhase1; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? easyInputMessagePhase0 = null, global::System.Func? easyInputMessagePhase1 = null, - global::System.Func? easyInputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return easyInputMessagePhase1(EasyInputMessagePhase1!); } - else if (IsEasyInputMessagePhaseVariant3 && easyInputMessagePhaseVariant3 != null) - { - return easyInputMessagePhaseVariant3(EasyInputMessagePhaseVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? easyInputMessagePhase0 = null, global::System.Action? easyInputMessagePhase1 = null, - - global::System.Action? easyInputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { easyInputMessagePhase1?.Invoke(EasyInputMessagePhase1!); } - else if (IsEasyInputMessagePhaseVariant3) - { - easyInputMessagePhaseVariant3?.Invoke(EasyInputMessagePhaseVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? easyInputMessagePhase0 = null, global::System.Action? easyInputMessagePhase1 = null, - global::System.Action? easyInputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { easyInputMessagePhase1?.Invoke(EasyInputMessagePhase1!); } - else if (IsEasyInputMessagePhaseVariant3) - { - easyInputMessagePhaseVariant3?.Invoke(EasyInputMessagePhaseVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.EasyInputMessagePhase0), EasyInputMessagePhase1, typeof(global::OpenRouter.EasyInputMessagePhase1), - EasyInputMessagePhaseVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(EasyInputMessagePhase other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessagePhase0, other.EasyInputMessagePhase0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessagePhase1, other.EasyInputMessagePhase1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessagePhaseVariant3, other.EasyInputMessagePhaseVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(EasyInputMessagePhase1, other.EasyInputMessagePhase1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.Json.g.cs deleted file mode 100644 index 1d3a0fb3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class EasyInputMessagePhaseVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.EasyInputMessagePhaseVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.EasyInputMessagePhaseVariant3), - jsonSerializerContext) as global::OpenRouter.EasyInputMessagePhaseVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.EasyInputMessagePhaseVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.EasyInputMessagePhaseVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.EasyInputMessagePhaseVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EasyInputMessagePhaseVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.g.cs deleted file mode 100644 index 1453367e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EasyInputMessagePhaseVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class EasyInputMessagePhaseVariant3 - { - - /// - /// 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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider.g.cs index 6d90228f..413ab3cf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider.g.cs @@ -22,8 +22,8 @@ public sealed partial class EmbeddingsPostRequestBodyContentApplicationJsonSchem /// - deny: use only providers which do not collect user data. /// [global::System.Text.Json.Serialization.JsonPropertyName("data_collection")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? DataCollection { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionJsonConverter))] + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? DataCollection { get; set; } /// /// Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used. @@ -85,8 +85,8 @@ public sealed partial class EmbeddingsPostRequestBodyContentApplicationJsonSchem /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. /// [global::System.Text.Json.Serialization.JsonPropertyName("sort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortJsonConverter))] - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Sort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Sort { get; set; } /// /// Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. @@ -151,7 +151,7 @@ public sealed partial class EmbeddingsPostRequestBodyContentApplicationJsonSchem #endif public EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider( bool? allowFallbacks, - global::OpenRouter.OneOf? dataCollection, + global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? dataCollection, bool? enforceDistillableText, global::System.Collections.Generic.IList? ignore, global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? maxPrice, @@ -161,7 +161,7 @@ public EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider( global::OpenRouter.PreferredMinThroughput? preferredMinThroughput, global::System.Collections.Generic.IList? quantizations, bool? requireParameters, - global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? sort, + global::OpenRouter.OneOf? sort, bool? zdr) { this.AllowFallbacks = allowFallbacks; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs index b38dcacd..a28a4ef1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs @@ -82,43 +82,6 @@ public bool TryPickProviderSortConfig( public global::OpenRouter.ProviderSortConfig PickProviderSortConfig() => IsProviderSortConfig ? ProviderSortConfig! : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderSortConfig' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 { get; init; } -#else - public object? EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3))] -#endif - public bool IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 => EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 != null; - - /// - /// - /// - public bool TryPickEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - return IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// - /// - public object PickEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3() => IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - ? EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort(global: /// public EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort( global::OpenRouter.ProviderSort? providerSort, - global::OpenRouter.ProviderSortConfig? providerSortConfig, - object? embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 + global::OpenRouter.ProviderSortConfig? providerSortConfig ) { ProviderSort = providerSort; ProviderSortConfig = providerSortConfig; - EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; } /// /// /// public object? Object => - EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 as object ?? ProviderSortConfig as object ?? ProviderSort as object ; @@ -193,8 +153,7 @@ ProviderSort as object /// public override string? ToString() => ProviderSort?.ToValueString() ?? - ProviderSortConfig?.ToString() ?? - EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.ToString() + ProviderSortConfig?.ToString() ; /// @@ -202,7 +161,7 @@ ProviderSort as object /// public bool Validate() { - return IsProviderSort && !IsProviderSortConfig && !IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 || !IsProviderSort && IsProviderSortConfig && !IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 || !IsProviderSort && !IsProviderSortConfig && IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; + return IsProviderSort && !IsProviderSortConfig || !IsProviderSort && IsProviderSortConfig; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? providerSort = null, global::System.Func? providerSortConfig = null, - global::System.Func? embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return providerSortConfig(ProviderSortConfig!); } - else if (IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 && embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 != null) - { - return embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - - global::System.Action? embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.Invoke(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - global::System.Action? embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - embeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.Invoke(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.ProviderSort), ProviderSortConfig, typeof(global::OpenRouter.ProviderSortConfig), - EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSort, other.ProviderSort) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3, other.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs deleted file mode 100644 index cf1329ca..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3), - jsonSerializerContext) as global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs deleted file mode 100644 index 4ebeed16..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - { - - /// - /// 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.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage.g.cs index 6d81ddae..80d2de78 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage.g.cs @@ -18,8 +18,7 @@ public sealed partial class EmbeddingsPostResponsesContentApplicationJsonSchemaU /// Breakdown of upstream inference costs /// [global::System.Text.Json.Serialization.JsonPropertyName("cost_details")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? CostDetails { get; set; } + public global::OpenRouter.CostDetails? CostDetails { get; set; } /// /// Whether a request was made using a Bring Your Own Key configuration @@ -81,7 +80,7 @@ public EmbeddingsPostResponsesContentApplicationJsonSchemaUsage( int promptTokens, int totalTokens, double? cost, - global::OpenRouter.OneOf? costDetails, + global::OpenRouter.CostDetails? costDetails, bool? isByok, global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? promptTokensDetails) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.Json.g.cs deleted file mode 100644 index 5cccb3a7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails), - jsonSerializerContext) as global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.g.cs deleted file mode 100644 index cefc11c1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Breakdown of upstream inference costs - /// - public sealed partial class EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("upstream_inference_completions_cost")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double UpstreamInferenceCompletionsCost { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("upstream_inference_cost")] - public double? UpstreamInferenceCost { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("upstream_inference_prompt_cost")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double UpstreamInferencePromptCost { 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 EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails( - double upstreamInferenceCompletionsCost, - double upstreamInferencePromptCost, - double? upstreamInferenceCost) - { - this.UpstreamInferenceCompletionsCost = upstreamInferenceCompletionsCost; - this.UpstreamInferenceCost = upstreamInferenceCost; - this.UpstreamInferencePromptCost = upstreamInferencePromptCost; - } - - /// - /// Initializes a new instance of the class. - /// - public EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs index e525edee..5970e7ec 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs @@ -19,8 +19,8 @@ public sealed partial class ExchangeAuthCodeForApiKeyRequest /// The method used to generate the code challenge /// [global::System.Text.Json.Serialization.JsonPropertyName("code_challenge_method")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? CodeChallengeMethod { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodJsonConverter))] + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? CodeChallengeMethod { get; set; } /// /// The code verifier if code_challenge was used in the authorization request @@ -51,7 +51,7 @@ public sealed partial class ExchangeAuthCodeForApiKeyRequest #endif public ExchangeAuthCodeForApiKeyRequest( string code, - global::OpenRouter.OneOf? codeChallengeMethod, + global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod, string? codeVerifier) { this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerTool.g.cs index 080680c4..1c4672ea 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerTool.g.cs @@ -12,8 +12,8 @@ public sealed partial class FileSearchServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.FileSearchServerToolFiltersJsonConverter))] - public global::OpenRouter.FileSearchServerToolFilters? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Filters { get; set; } /// /// @@ -60,7 +60,7 @@ public sealed partial class FileSearchServerTool #endif public FileSearchServerTool( global::System.Collections.Generic.IList vectorStoreIds, - global::OpenRouter.FileSearchServerToolFilters? filters, + global::OpenRouter.OneOf? filters, int? maxNumResults, global::OpenRouter.FileSearchServerToolRankingOptions? rankingOptions, global::OpenRouter.FileSearchServerToolType type) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFilters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFilters.g.cs index 56dcb658..a1ae0396 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFilters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFilters.g.cs @@ -82,43 +82,6 @@ public bool TryPickCompoundFilter( public global::OpenRouter.CompoundFilter PickCompoundFilter() => IsCompoundFilter ? CompoundFilter! : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilter' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? FileSearchServerToolFiltersVariant3 { get; init; } -#else - public object? FileSearchServerToolFiltersVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearchServerToolFiltersVariant3))] -#endif - public bool IsFileSearchServerToolFiltersVariant3 => FileSearchServerToolFiltersVariant3 != null; - - /// - /// - /// - public bool TryPickFileSearchServerToolFiltersVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = FileSearchServerToolFiltersVariant3; - return IsFileSearchServerToolFiltersVariant3; - } - - /// - /// - /// - public object PickFileSearchServerToolFiltersVariant3() => IsFileSearchServerToolFiltersVariant3 - ? FileSearchServerToolFiltersVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchServerToolFiltersVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public FileSearchServerToolFilters(global::OpenRouter.CompoundFilter? value) /// public FileSearchServerToolFilters( global::OpenRouter.FileSearchServerToolFilters0? fileSearchServerToolFilters0, - global::OpenRouter.CompoundFilter? compoundFilter, - object? fileSearchServerToolFiltersVariant3 + global::OpenRouter.CompoundFilter? compoundFilter ) { FileSearchServerToolFilters0 = fileSearchServerToolFilters0; CompoundFilter = compoundFilter; - FileSearchServerToolFiltersVariant3 = fileSearchServerToolFiltersVariant3; } /// /// /// public object? Object => - FileSearchServerToolFiltersVariant3 as object ?? CompoundFilter as object ?? FileSearchServerToolFilters0 as object ; @@ -193,8 +153,7 @@ FileSearchServerToolFilters0 as object /// public override string? ToString() => FileSearchServerToolFilters0?.ToString() ?? - CompoundFilter?.ToString() ?? - FileSearchServerToolFiltersVariant3?.ToString() + CompoundFilter?.ToString() ; /// @@ -202,7 +161,7 @@ FileSearchServerToolFilters0 as object /// public bool Validate() { - return IsFileSearchServerToolFilters0 && !IsCompoundFilter && !IsFileSearchServerToolFiltersVariant3 || !IsFileSearchServerToolFilters0 && IsCompoundFilter && !IsFileSearchServerToolFiltersVariant3 || !IsFileSearchServerToolFilters0 && !IsCompoundFilter && IsFileSearchServerToolFiltersVariant3; + return IsFileSearchServerToolFilters0 && !IsCompoundFilter || !IsFileSearchServerToolFilters0 && IsCompoundFilter; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? fileSearchServerToolFilters0 = null, global::System.Func? compoundFilter = null, - global::System.Func? fileSearchServerToolFiltersVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return compoundFilter(CompoundFilter!); } - else if (IsFileSearchServerToolFiltersVariant3 && fileSearchServerToolFiltersVariant3 != null) - { - return fileSearchServerToolFiltersVariant3(FileSearchServerToolFiltersVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? fileSearchServerToolFilters0 = null, global::System.Action? compoundFilter = null, - - global::System.Action? fileSearchServerToolFiltersVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { compoundFilter?.Invoke(CompoundFilter!); } - else if (IsFileSearchServerToolFiltersVariant3) - { - fileSearchServerToolFiltersVariant3?.Invoke(FileSearchServerToolFiltersVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? fileSearchServerToolFilters0 = null, global::System.Action? compoundFilter = null, - global::System.Action? fileSearchServerToolFiltersVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { compoundFilter?.Invoke(CompoundFilter!); } - else if (IsFileSearchServerToolFiltersVariant3) - { - fileSearchServerToolFiltersVariant3?.Invoke(FileSearchServerToolFiltersVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.FileSearchServerToolFilters0), CompoundFilter, typeof(global::OpenRouter.CompoundFilter), - FileSearchServerToolFiltersVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(FileSearchServerToolFilters other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearchServerToolFilters0, other.FileSearchServerToolFilters0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilter, other.CompoundFilter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearchServerToolFiltersVariant3, other.FileSearchServerToolFiltersVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilter, other.CompoundFilter) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.Json.g.cs deleted file mode 100644 index 3f148549..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class FileSearchServerToolFiltersVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.FileSearchServerToolFiltersVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.FileSearchServerToolFiltersVariant3), - jsonSerializerContext) as global::OpenRouter.FileSearchServerToolFiltersVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.FileSearchServerToolFiltersVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.FileSearchServerToolFiltersVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.FileSearchServerToolFiltersVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.FileSearchServerToolFiltersVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.g.cs deleted file mode 100644 index 1c8e159e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FileSearchServerToolFiltersVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class FileSearchServerToolFiltersVariant3 - { - - /// - /// 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.FunctionCallOutputItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItem.g.cs index 60cfb4f7..0ca98c4e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItem.g.cs @@ -33,8 +33,8 @@ public sealed partial class FunctionCallOutputItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - public global::OpenRouter.ToolCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Status { get; set; } /// /// @@ -64,7 +64,7 @@ public FunctionCallOutputItem( string callId, global::OpenRouter.FunctionCallOutputItemOutput output, string? id, - global::OpenRouter.ToolCallStatus? status, + global::OpenRouter.OneOf? status, global::OpenRouter.FunctionCallOutputItemType type) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItemOutputOneOf1ItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItemOutputOneOf1ItemsVariant3.g.cs index c5521064..c5499473 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItemOutputOneOf1ItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FunctionCallOutputItemOutputOneOf1ItemsVariant3.g.cs @@ -15,6 +15,12 @@ public sealed partial class FunctionCallOutputItemOutputOneOf1ItemsVariant3 [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1ItemsVariant3TypeJsonConverter))] public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class FunctionCallOutputItemOutputOneOf1ItemsVariant3 /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCallOutputItemOutputOneOf1ItemsVariant3( string text, - global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type type) + global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs index bbc812ef..a85f2d80 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs @@ -15,13 +15,13 @@ public sealed partial class FusionServerToolConfig public global::System.Collections.Generic.IList? AnalysisModels { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } /// - /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies. + /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, panelists default to 32000 and the judge to 50000. /// [global::System.Text.Json.Serialization.JsonPropertyName("max_completion_tokens")] public int? MaxCompletionTokens { get; set; } @@ -69,10 +69,10 @@ public sealed partial class FusionServerToolConfig /// Slugs of models to run in parallel as the analysis panel. Each model receives the user prompt with openrouter:web_search and openrouter:web_fetch enabled, then a judge model summarizes the collective output into structured analysis JSON. Capped at 8 models to bound cost amplification. Defaults to the Quality preset from /labs/fusion. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// - /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies. + /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, panelists default to 32000 and the judge to 50000. /// /// /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs index 3a4c202f..61daef0e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseData.g.cs @@ -12,9 +12,9 @@ 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.GenerationResponseDataApiTypeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf ApiType { get; set; } + public required global::OpenRouter.GenerationResponseDataApiType ApiType { get; set; } /// /// ID of the app that made the request @@ -428,7 +428,7 @@ public sealed partial class GenerationResponseData [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationResponseData( - global::OpenRouter.OneOf apiType, + global::OpenRouter.GenerationResponseDataApiType apiType, string createdAt, global::OpenRouter.GenerationResponseDataDataRegion dataRegion, string id, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetGuardrailResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetGuardrailResponseData.g.cs index 2f6a9f07..e6e406e3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetGuardrailResponseData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetGuardrailResponseData.g.cs @@ -46,7 +46,7 @@ public sealed partial class GetGuardrailResponseData public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -70,11 +70,17 @@ public sealed partial class GetGuardrailResponseData public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Unique identifier for the guardrail /// @@ -164,7 +170,7 @@ public sealed partial class GetGuardrailResponseData /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -176,7 +182,10 @@ public sealed partial class GetGuardrailResponseData /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model canonical_slugs to exclude from routing @@ -211,6 +220,7 @@ public GetGuardrailResponseData( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -228,6 +238,7 @@ public GetGuardrailResponseData( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.Id = id; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Guardrail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Guardrail.g.cs index 0aacfd37..39313f71 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.Guardrail.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Guardrail.g.cs @@ -46,7 +46,7 @@ public sealed partial class Guardrail public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -70,11 +70,17 @@ public sealed partial class Guardrail public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Unique identifier for the guardrail /// @@ -164,7 +170,7 @@ public sealed partial class Guardrail /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -176,7 +182,10 @@ public sealed partial class Guardrail /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model canonical_slugs to exclude from routing @@ -211,6 +220,7 @@ public Guardrail( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -228,6 +238,7 @@ public Guardrail( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.Id = id; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.Json.g.cs new file mode 100644 index 00000000..8fdc80e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferences + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferences? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferences), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferences; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferences? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferences? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferences), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferences; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.g.cs new file mode 100644 index 00000000..2560866b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferences.g.cs @@ -0,0 +1,106 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider routing preferences and provider-specific passthrough configuration. + /// + public sealed partial class ImageGenerationProviderPreferences + { + /// + /// Whether to allow backup providers to serve requests
+ /// - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
+ /// - false: use only the primary/custom provider, and return the upstream error if it's unavailable. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("allow_fallbacks")] + public bool? AllowFallbacks { get; set; } + + /// + /// List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ignore")] + public global::System.Collections.Generic.IList? Ignore { get; set; } + + /// + /// List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("only")] + public global::System.Collections.Generic.IList? Only { get; set; } + + /// + /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("options")] + public global::OpenRouter.ImageGenerationProviderPreferencesOptions? Options { get; set; } + + /// + /// An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("order")] + public global::System.Collections.Generic.IList? Order { get; set; } + + /// + /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Sort { 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. + /// + /// + /// Whether to allow backup providers to serve requests
+ /// - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
+ /// - false: use only the primary/custom provider, and return the upstream error if it's unavailable. + /// + /// + /// List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request. + /// + /// + /// List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request. + /// + /// + /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. + /// + /// + /// An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message. + /// + /// + /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationProviderPreferences( + bool? allowFallbacks, + global::System.Collections.Generic.IList? ignore, + global::System.Collections.Generic.IList? only, + global::OpenRouter.ImageGenerationProviderPreferencesOptions? options, + global::System.Collections.Generic.IList? order, + global::OpenRouter.OneOf? sort) + { + this.AllowFallbacks = allowFallbacks; + this.Ignore = ignore; + this.Only = only; + this.Options = options; + this.Order = order; + this.Sort = sort; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationProviderPreferences() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.Json.g.cs new file mode 100644 index 00000000..e3860f04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ImageGenerationProviderPreferencesIgnoreItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesIgnoreItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesIgnoreItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesIgnoreItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.g.cs new file mode 100644 index 00000000..1cd465ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesIgnoreItems.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ImageGenerationProviderPreferencesIgnoreItems : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ProviderName? ProviderName { get; init; } +#else + public global::OpenRouter.ProviderName? ProviderName { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderName))] +#endif + public bool IsProviderName => ProviderName != null; + + /// + /// + /// + public bool TryPickProviderName( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ProviderName? value) + { + value = ProviderName; + return IsProviderName; + } + + /// + /// + /// + public global::OpenRouter.ProviderName PickProviderName() => IsProviderName + ? ProviderName!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderName' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ImageGenerationProviderPreferencesIgnoreItemsVariant2 { get; init; } +#else + public string? ImageGenerationProviderPreferencesIgnoreItemsVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationProviderPreferencesIgnoreItemsVariant2))] +#endif + public bool IsImageGenerationProviderPreferencesIgnoreItemsVariant2 => ImageGenerationProviderPreferencesIgnoreItemsVariant2 != null; + + /// + /// + /// + public bool TryPickImageGenerationProviderPreferencesIgnoreItemsVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ImageGenerationProviderPreferencesIgnoreItemsVariant2; + return IsImageGenerationProviderPreferencesIgnoreItemsVariant2; + } + + /// + /// + /// + public string PickImageGenerationProviderPreferencesIgnoreItemsVariant2() => IsImageGenerationProviderPreferencesIgnoreItemsVariant2 + ? ImageGenerationProviderPreferencesIgnoreItemsVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationProviderPreferencesIgnoreItemsVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesIgnoreItems(global::OpenRouter.ProviderName value) => new ImageGenerationProviderPreferencesIgnoreItems((global::OpenRouter.ProviderName?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ProviderName?(ImageGenerationProviderPreferencesIgnoreItems @this) => @this.ProviderName; + + /// + /// + /// + public ImageGenerationProviderPreferencesIgnoreItems(global::OpenRouter.ProviderName? value) + { + ProviderName = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesIgnoreItems FromProviderName(global::OpenRouter.ProviderName? value) => new ImageGenerationProviderPreferencesIgnoreItems(value); + + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesIgnoreItems(string value) => new ImageGenerationProviderPreferencesIgnoreItems((string?)value); + + /// + /// + /// + public static implicit operator string?(ImageGenerationProviderPreferencesIgnoreItems @this) => @this.ImageGenerationProviderPreferencesIgnoreItemsVariant2; + + /// + /// + /// + public ImageGenerationProviderPreferencesIgnoreItems(string? value) + { + ImageGenerationProviderPreferencesIgnoreItemsVariant2 = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesIgnoreItems FromImageGenerationProviderPreferencesIgnoreItemsVariant2(string? value) => new ImageGenerationProviderPreferencesIgnoreItems(value); + + /// + /// + /// + public ImageGenerationProviderPreferencesIgnoreItems( + global::OpenRouter.ProviderName? providerName, + string? imageGenerationProviderPreferencesIgnoreItemsVariant2 + ) + { + ProviderName = providerName; + ImageGenerationProviderPreferencesIgnoreItemsVariant2 = imageGenerationProviderPreferencesIgnoreItemsVariant2; + } + + /// + /// + /// + public object? Object => + ImageGenerationProviderPreferencesIgnoreItemsVariant2 as object ?? + ProviderName as object + ; + + /// + /// + /// + public override string? ToString() => + ProviderName?.ToValueString() ?? + ImageGenerationProviderPreferencesIgnoreItemsVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsProviderName && !IsImageGenerationProviderPreferencesIgnoreItemsVariant2 || !IsProviderName && IsImageGenerationProviderPreferencesIgnoreItemsVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? providerName = null, + global::System.Func? imageGenerationProviderPreferencesIgnoreItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName && providerName != null) + { + return providerName(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesIgnoreItemsVariant2 && imageGenerationProviderPreferencesIgnoreItemsVariant2 != null) + { + return imageGenerationProviderPreferencesIgnoreItemsVariant2(ImageGenerationProviderPreferencesIgnoreItemsVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? providerName = null, + + global::System.Action? imageGenerationProviderPreferencesIgnoreItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesIgnoreItemsVariant2) + { + imageGenerationProviderPreferencesIgnoreItemsVariant2?.Invoke(ImageGenerationProviderPreferencesIgnoreItemsVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? providerName = null, + global::System.Action? imageGenerationProviderPreferencesIgnoreItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesIgnoreItemsVariant2) + { + imageGenerationProviderPreferencesIgnoreItemsVariant2?.Invoke(ImageGenerationProviderPreferencesIgnoreItemsVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ProviderName, + typeof(global::OpenRouter.ProviderName), + ImageGenerationProviderPreferencesIgnoreItemsVariant2, + typeof(string), + }; + 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(ImageGenerationProviderPreferencesIgnoreItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderName, other.ProviderName) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationProviderPreferencesIgnoreItemsVariant2, other.ImageGenerationProviderPreferencesIgnoreItemsVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ImageGenerationProviderPreferencesIgnoreItems obj1, ImageGenerationProviderPreferencesIgnoreItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ImageGenerationProviderPreferencesIgnoreItems obj1, ImageGenerationProviderPreferencesIgnoreItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ImageGenerationProviderPreferencesIgnoreItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.Json.g.cs new file mode 100644 index 00000000..d1bb8eab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ImageGenerationProviderPreferencesOnlyItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOnlyItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOnlyItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOnlyItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.g.cs new file mode 100644 index 00000000..7b8a1aac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOnlyItems.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ImageGenerationProviderPreferencesOnlyItems : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ProviderName? ProviderName { get; init; } +#else + public global::OpenRouter.ProviderName? ProviderName { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderName))] +#endif + public bool IsProviderName => ProviderName != null; + + /// + /// + /// + public bool TryPickProviderName( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ProviderName? value) + { + value = ProviderName; + return IsProviderName; + } + + /// + /// + /// + public global::OpenRouter.ProviderName PickProviderName() => IsProviderName + ? ProviderName!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderName' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ImageGenerationProviderPreferencesOnlyItemsVariant2 { get; init; } +#else + public string? ImageGenerationProviderPreferencesOnlyItemsVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationProviderPreferencesOnlyItemsVariant2))] +#endif + public bool IsImageGenerationProviderPreferencesOnlyItemsVariant2 => ImageGenerationProviderPreferencesOnlyItemsVariant2 != null; + + /// + /// + /// + public bool TryPickImageGenerationProviderPreferencesOnlyItemsVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ImageGenerationProviderPreferencesOnlyItemsVariant2; + return IsImageGenerationProviderPreferencesOnlyItemsVariant2; + } + + /// + /// + /// + public string PickImageGenerationProviderPreferencesOnlyItemsVariant2() => IsImageGenerationProviderPreferencesOnlyItemsVariant2 + ? ImageGenerationProviderPreferencesOnlyItemsVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationProviderPreferencesOnlyItemsVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesOnlyItems(global::OpenRouter.ProviderName value) => new ImageGenerationProviderPreferencesOnlyItems((global::OpenRouter.ProviderName?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ProviderName?(ImageGenerationProviderPreferencesOnlyItems @this) => @this.ProviderName; + + /// + /// + /// + public ImageGenerationProviderPreferencesOnlyItems(global::OpenRouter.ProviderName? value) + { + ProviderName = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesOnlyItems FromProviderName(global::OpenRouter.ProviderName? value) => new ImageGenerationProviderPreferencesOnlyItems(value); + + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesOnlyItems(string value) => new ImageGenerationProviderPreferencesOnlyItems((string?)value); + + /// + /// + /// + public static implicit operator string?(ImageGenerationProviderPreferencesOnlyItems @this) => @this.ImageGenerationProviderPreferencesOnlyItemsVariant2; + + /// + /// + /// + public ImageGenerationProviderPreferencesOnlyItems(string? value) + { + ImageGenerationProviderPreferencesOnlyItemsVariant2 = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesOnlyItems FromImageGenerationProviderPreferencesOnlyItemsVariant2(string? value) => new ImageGenerationProviderPreferencesOnlyItems(value); + + /// + /// + /// + public ImageGenerationProviderPreferencesOnlyItems( + global::OpenRouter.ProviderName? providerName, + string? imageGenerationProviderPreferencesOnlyItemsVariant2 + ) + { + ProviderName = providerName; + ImageGenerationProviderPreferencesOnlyItemsVariant2 = imageGenerationProviderPreferencesOnlyItemsVariant2; + } + + /// + /// + /// + public object? Object => + ImageGenerationProviderPreferencesOnlyItemsVariant2 as object ?? + ProviderName as object + ; + + /// + /// + /// + public override string? ToString() => + ProviderName?.ToValueString() ?? + ImageGenerationProviderPreferencesOnlyItemsVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsProviderName && !IsImageGenerationProviderPreferencesOnlyItemsVariant2 || !IsProviderName && IsImageGenerationProviderPreferencesOnlyItemsVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? providerName = null, + global::System.Func? imageGenerationProviderPreferencesOnlyItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName && providerName != null) + { + return providerName(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOnlyItemsVariant2 && imageGenerationProviderPreferencesOnlyItemsVariant2 != null) + { + return imageGenerationProviderPreferencesOnlyItemsVariant2(ImageGenerationProviderPreferencesOnlyItemsVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? providerName = null, + + global::System.Action? imageGenerationProviderPreferencesOnlyItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOnlyItemsVariant2) + { + imageGenerationProviderPreferencesOnlyItemsVariant2?.Invoke(ImageGenerationProviderPreferencesOnlyItemsVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? providerName = null, + global::System.Action? imageGenerationProviderPreferencesOnlyItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOnlyItemsVariant2) + { + imageGenerationProviderPreferencesOnlyItemsVariant2?.Invoke(ImageGenerationProviderPreferencesOnlyItemsVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ProviderName, + typeof(global::OpenRouter.ProviderName), + ImageGenerationProviderPreferencesOnlyItemsVariant2, + typeof(string), + }; + 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(ImageGenerationProviderPreferencesOnlyItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderName, other.ProviderName) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationProviderPreferencesOnlyItemsVariant2, other.ImageGenerationProviderPreferencesOnlyItemsVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ImageGenerationProviderPreferencesOnlyItems obj1, ImageGenerationProviderPreferencesOnlyItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ImageGenerationProviderPreferencesOnlyItems obj1, ImageGenerationProviderPreferencesOnlyItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ImageGenerationProviderPreferencesOnlyItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.Json.g.cs new file mode 100644 index 00000000..50bf7462 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptions + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptions), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptions; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptions? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptions; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.g.cs new file mode 100644 index 00000000..defaa392 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptions.g.cs @@ -0,0 +1,1160 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. + /// + public sealed partial class ImageGenerationProviderPreferencesOptions + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("01ai")] + public object? x01ai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ai21")] + public object? Ai21 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aion-labs")] + public object? AionLabs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("akashml")] + public object? Akashml { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("alibaba")] + public object? Alibaba { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("amazon-bedrock")] + public object? AmazonBedrock { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("amazon-nova")] + public object? AmazonNova { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ambient")] + public object? Ambient { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("anthropic")] + public object? Anthropic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("anyscale")] + public object? Anyscale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arcee-ai")] + public object? ArceeAi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("atlas-cloud")] + public object? AtlasCloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("atoma")] + public object? Atoma { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avian")] + public object? Avian { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("azure")] + public object? Azure { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baidu")] + public object? Baidu { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseten")] + public object? Baseten { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("black-forest-labs")] + public object? BlackForestLabs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("byteplus")] + public object? Byteplus { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("centml")] + public object? Centml { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cerebras")] + public object? Cerebras { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chutes")] + public object? Chutes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cirrascale")] + public object? Cirrascale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("clarifai")] + public object? Clarifai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cloudflare")] + public object? Cloudflare { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cohere")] + public object? Cohere { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crofai")] + public object? Crofai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crucible")] + public object? Crucible { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crusoe")] + public object? Crusoe { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("darkbloom")] + public object? Darkbloom { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("decart")] + public object? Decart { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepgram")] + public object? Deepgram { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepinfra")] + public object? Deepinfra { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepseek")] + public object? Deepseek { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dekallm")] + public object? Dekallm { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("digitalocean")] + public object? Digitalocean { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enfer")] + public object? Enfer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fake-provider")] + public object? FakeProvider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("featherless")] + public object? Featherless { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fireworks")] + public object? Fireworks { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fish-audio")] + public object? FishAudio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("friendli")] + public object? Friendli { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gmicloud")] + public object? Gmicloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google-ai-studio")] + public object? GoogleAiStudio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google-vertex")] + public object? GoogleVertex { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gopomelo")] + public object? Gopomelo { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groq")] + public object? Groq { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("heygen")] + public object? Heygen { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("huggingface")] + public object? Huggingface { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic")] + public object? Hyperbolic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic-quantized")] + public object? HyperbolicQuantized { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inception")] + public object? Inception { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inceptron")] + public object? Inceptron { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inferact-vllm")] + public object? InferactVllm { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inference-net")] + public object? InferenceNet { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("infermatic")] + public object? Infermatic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inflection")] + public object? Inflection { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inocloud")] + public object? Inocloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("io-net")] + public object? IoNet { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ionstream")] + public object? Ionstream { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("klusterai")] + public object? Klusterai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("krea")] + public object? Krea { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lambda")] + public object? Lambda { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lepton")] + public object? Lepton { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("liquid")] + public object? Liquid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lynn")] + public object? Lynn { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lynn-private")] + public object? LynnPrivate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mancer")] + public object? Mancer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mancer-old")] + public object? MancerOld { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mara")] + public object? Mara { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minimax")] + public object? Minimax { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mistral")] + public object? Mistral { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modal")] + public object? Modal { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelrun")] + public object? Modelrun { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modular")] + public object? Modular { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("moonshotai")] + public object? Moonshotai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("morph")] + public object? Morph { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ncompass")] + public object? Ncompass { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nebius")] + public object? Nebius { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nex-agi")] + public object? NexAgi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextbit")] + public object? Nextbit { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nineteen")] + public object? Nineteen { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("novita")] + public object? Novita { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nvidia")] + public object? Nvidia { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("octoai")] + public object? Octoai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("open-inference")] + public object? OpenInference { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("openai")] + public object? Openai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parasail")] + public object? Parasail { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("perceptron")] + public object? Perceptron { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("perplexity")] + public object? Perplexity { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("phala")] + public object? Phala { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("poolside")] + public object? Poolside { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("quiver")] + public object? Quiver { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recraft")] + public object? Recraft { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recursal")] + public object? Recursal { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reflection")] + public object? Reflection { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reka")] + public object? Reka { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("relace")] + public object? Relace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("replicate")] + public object? Replicate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sail-research")] + public object? SailResearch { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sakana")] + public object? Sakana { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sambanova")] + public object? Sambanova { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sambanova-cloaked")] + public object? SambanovaCloaked { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public object? Seed { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sf-compute")] + public object? SfCompute { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("siliconflow")] + public object? Siliconflow { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceful")] + public object? Sourceful { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stealth")] + public object? Stealth { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stepfun")] + public object? Stepfun { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("streamlake")] + public object? Streamlake { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("switchpoint")] + public object? Switchpoint { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("targon")] + public object? Targon { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tencent")] + public object? Tencent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenstorrent")] + public object? Tenstorrent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("together")] + public object? Together { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("together-lite")] + public object? TogetherLite { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ubicloud")] + public object? Ubicloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("upstage")] + public object? Upstage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("venice")] + public object? Venice { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("wafer")] + public object? Wafer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("wandb")] + public object? Wandb { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("xai")] + public object? Xai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("xiaomi")] + public object? Xiaomi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("z-ai")] + public object? ZAi { 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 ImageGenerationProviderPreferencesOptions( + object? x01ai, + object? ai21, + object? aionLabs, + object? akashml, + object? alibaba, + object? amazonBedrock, + object? amazonNova, + object? ambient, + object? anthropic, + object? anyscale, + object? arceeAi, + object? atlasCloud, + object? atoma, + object? avian, + object? azure, + object? baidu, + object? baseten, + object? blackForestLabs, + object? byteplus, + object? centml, + object? cerebras, + object? chutes, + object? cirrascale, + object? clarifai, + object? cloudflare, + object? cohere, + object? crofai, + object? crucible, + object? crusoe, + object? darkbloom, + object? decart, + object? deepgram, + object? deepinfra, + object? deepseek, + object? dekallm, + object? digitalocean, + object? enfer, + object? fakeProvider, + object? featherless, + object? fireworks, + object? fishAudio, + object? friendli, + object? gmicloud, + object? googleAiStudio, + object? googleVertex, + object? gopomelo, + object? groq, + object? heygen, + object? huggingface, + object? hyperbolic, + object? hyperbolicQuantized, + object? inception, + object? inceptron, + object? inferactVllm, + object? inferenceNet, + object? infermatic, + object? inflection, + object? inocloud, + object? ioNet, + object? ionstream, + object? klusterai, + object? krea, + object? lambda, + object? lepton, + object? liquid, + object? lynn, + object? lynnPrivate, + object? mancer, + object? mancerOld, + object? mara, + object? meta, + object? minimax, + object? mistral, + object? modal, + object? modelrun, + object? modular, + object? moonshotai, + object? morph, + object? ncompass, + object? nebius, + object? nexAgi, + object? nextbit, + object? nineteen, + object? novita, + object? nvidia, + object? octoai, + object? openInference, + object? openai, + object? parasail, + object? perceptron, + object? perplexity, + object? phala, + object? poolside, + object? quiver, + object? recraft, + object? recursal, + object? reflection, + object? reka, + object? relace, + object? replicate, + object? sailResearch, + object? sakana, + object? sambanova, + object? sambanovaCloaked, + object? seed, + object? sfCompute, + object? siliconflow, + object? sourceful, + object? stealth, + object? stepfun, + object? streamlake, + object? switchpoint, + object? targon, + object? tencent, + object? tenstorrent, + object? together, + object? togetherLite, + object? ubicloud, + object? upstage, + object? venice, + object? wafer, + object? wandb, + object? xai, + object? xiaomi, + object? zAi) + { + this.x01ai = x01ai; + this.Ai21 = ai21; + this.AionLabs = aionLabs; + this.Akashml = akashml; + this.Alibaba = alibaba; + this.AmazonBedrock = amazonBedrock; + this.AmazonNova = amazonNova; + this.Ambient = ambient; + this.Anthropic = anthropic; + this.Anyscale = anyscale; + this.ArceeAi = arceeAi; + this.AtlasCloud = atlasCloud; + this.Atoma = atoma; + this.Avian = avian; + this.Azure = azure; + this.Baidu = baidu; + this.Baseten = baseten; + this.BlackForestLabs = blackForestLabs; + this.Byteplus = byteplus; + this.Centml = centml; + this.Cerebras = cerebras; + this.Chutes = chutes; + this.Cirrascale = cirrascale; + this.Clarifai = clarifai; + this.Cloudflare = cloudflare; + this.Cohere = cohere; + this.Crofai = crofai; + this.Crucible = crucible; + this.Crusoe = crusoe; + this.Darkbloom = darkbloom; + this.Decart = decart; + this.Deepgram = deepgram; + this.Deepinfra = deepinfra; + this.Deepseek = deepseek; + this.Dekallm = dekallm; + this.Digitalocean = digitalocean; + this.Enfer = enfer; + this.FakeProvider = fakeProvider; + this.Featherless = featherless; + this.Fireworks = fireworks; + this.FishAudio = fishAudio; + this.Friendli = friendli; + this.Gmicloud = gmicloud; + this.GoogleAiStudio = googleAiStudio; + this.GoogleVertex = googleVertex; + this.Gopomelo = gopomelo; + this.Groq = groq; + this.Heygen = heygen; + this.Huggingface = huggingface; + this.Hyperbolic = hyperbolic; + this.HyperbolicQuantized = hyperbolicQuantized; + this.Inception = inception; + this.Inceptron = inceptron; + this.InferactVllm = inferactVllm; + this.InferenceNet = inferenceNet; + this.Infermatic = infermatic; + this.Inflection = inflection; + this.Inocloud = inocloud; + this.IoNet = ioNet; + this.Ionstream = ionstream; + this.Klusterai = klusterai; + this.Krea = krea; + this.Lambda = lambda; + this.Lepton = lepton; + this.Liquid = liquid; + this.Lynn = lynn; + this.LynnPrivate = lynnPrivate; + this.Mancer = mancer; + this.MancerOld = mancerOld; + this.Mara = mara; + this.Meta = meta; + this.Minimax = minimax; + this.Mistral = mistral; + this.Modal = modal; + this.Modelrun = modelrun; + this.Modular = modular; + this.Moonshotai = moonshotai; + this.Morph = morph; + this.Ncompass = ncompass; + this.Nebius = nebius; + this.NexAgi = nexAgi; + this.Nextbit = nextbit; + this.Nineteen = nineteen; + this.Novita = novita; + this.Nvidia = nvidia; + this.Octoai = octoai; + this.OpenInference = openInference; + this.Openai = openai; + this.Parasail = parasail; + this.Perceptron = perceptron; + this.Perplexity = perplexity; + this.Phala = phala; + this.Poolside = poolside; + this.Quiver = quiver; + this.Recraft = recraft; + this.Recursal = recursal; + this.Reflection = reflection; + this.Reka = reka; + this.Relace = relace; + this.Replicate = replicate; + this.SailResearch = sailResearch; + this.Sakana = sakana; + this.Sambanova = sambanova; + this.SambanovaCloaked = sambanovaCloaked; + this.Seed = seed; + this.SfCompute = sfCompute; + this.Siliconflow = siliconflow; + this.Sourceful = sourceful; + this.Stealth = stealth; + this.Stepfun = stepfun; + this.Streamlake = streamlake; + this.Switchpoint = switchpoint; + this.Targon = targon; + this.Tencent = tencent; + this.Tenstorrent = tenstorrent; + this.Together = together; + this.TogetherLite = togetherLite; + this.Ubicloud = ubicloud; + this.Upstage = upstage; + this.Venice = venice; + this.Wafer = wafer; + this.Wandb = wandb; + this.Xai = xai; + this.Xiaomi = xiaomi; + this.ZAi = zAi; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationProviderPreferencesOptions() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.Json.g.cs new file mode 100644 index 00000000..74579b2e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAi21 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi21? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi21), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi21; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi21? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAi21? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAi21), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi21; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.g.cs new file mode 100644 index 00000000..7aa2bd88 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi21.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAi21 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAi212.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi212.Json.g.cs new file mode 100644 index 00000000..3c36c931 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi212.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAi212 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi212? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi212), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi212; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi212? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAi212? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAi212), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAi212; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi212.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi212.g.cs new file mode 100644 index 00000000..15318cca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAi212.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAi212 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAionLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs.Json.g.cs new file mode 100644 index 00000000..7c46567f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAionLabs + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAionLabs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAionLabs), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs.g.cs new file mode 100644 index 00000000..0ebd8449 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAionLabs + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAionLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs2.Json.g.cs new file mode 100644 index 00000000..587fd86e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAionLabs2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAionLabs2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAionLabs2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAionLabs2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs2.g.cs new file mode 100644 index 00000000..8908d18c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAionLabs2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAionLabs2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAkashml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml.Json.g.cs new file mode 100644 index 00000000..00a61820 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAkashml + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAkashml? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAkashml), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml.g.cs new file mode 100644 index 00000000..634fdab5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAkashml + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAkashml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml2.Json.g.cs new file mode 100644 index 00000000..3e503f06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAkashml2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAkashml2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAkashml2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAkashml2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml2.g.cs new file mode 100644 index 00000000..27ce5656 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAkashml2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAkashml2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAlibaba.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba.Json.g.cs new file mode 100644 index 00000000..f3d1b662 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAlibaba + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAlibaba? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAlibaba), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba.g.cs new file mode 100644 index 00000000..8805e447 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAlibaba + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAlibaba2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba2.Json.g.cs new file mode 100644 index 00000000..e56141c8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAlibaba2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAlibaba2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAlibaba2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAlibaba2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba2.g.cs new file mode 100644 index 00000000..405d845c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAlibaba2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAlibaba2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock.Json.g.cs new file mode 100644 index 00000000..a88893f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonBedrock + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock.g.cs new file mode 100644 index 00000000..b735a170 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonBedrock + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.Json.g.cs new file mode 100644 index 00000000..4f034352 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonBedrock2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmazonBedrock2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonBedrock2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.g.cs new file mode 100644 index 00000000..ac39da4d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonBedrock2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonBedrock2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonNova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova.Json.g.cs new file mode 100644 index 00000000..91e39057 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonNova + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonNova? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmazonNova), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova.g.cs new file mode 100644 index 00000000..1f707dda --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonNova + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonNova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova2.Json.g.cs new file mode 100644 index 00000000..57c8d66b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonNova2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmazonNova2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmazonNova2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmazonNova2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova2.g.cs new file mode 100644 index 00000000..106e05ef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmazonNova2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmazonNova2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmbient.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient.Json.g.cs new file mode 100644 index 00000000..9a151b28 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmbient + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmbient? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmbient), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient.g.cs new file mode 100644 index 00000000..dfcb36b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmbient + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmbient2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient2.Json.g.cs new file mode 100644 index 00000000..401eb818 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAmbient2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAmbient2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAmbient2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAmbient2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient2.g.cs new file mode 100644 index 00000000..8b9dc64e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAmbient2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAmbient2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnthropic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic.Json.g.cs new file mode 100644 index 00000000..c5c45e87 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAnthropic + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnthropic? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAnthropic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic.g.cs new file mode 100644 index 00000000..5544fc3b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAnthropic + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnthropic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic2.Json.g.cs new file mode 100644 index 00000000..15c8942f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAnthropic2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnthropic2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAnthropic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnthropic2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic2.g.cs new file mode 100644 index 00000000..24981384 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnthropic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAnthropic2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnyscale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale.Json.g.cs new file mode 100644 index 00000000..fb11b050 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAnyscale + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnyscale? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAnyscale), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale.g.cs new file mode 100644 index 00000000..0774fbed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAnyscale + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnyscale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale2.Json.g.cs new file mode 100644 index 00000000..27ed7a30 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAnyscale2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAnyscale2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAnyscale2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAnyscale2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale2.g.cs new file mode 100644 index 00000000..532a4d6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAnyscale2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAnyscale2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsArceeAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi.Json.g.cs new file mode 100644 index 00000000..f9c2bde6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsArceeAi + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsArceeAi? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsArceeAi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi.g.cs new file mode 100644 index 00000000..8c27dcb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsArceeAi + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsArceeAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi2.Json.g.cs new file mode 100644 index 00000000..51bb41d0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsArceeAi2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsArceeAi2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsArceeAi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsArceeAi2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi2.g.cs new file mode 100644 index 00000000..ce907d85 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsArceeAi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsArceeAi2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtlasCloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud.Json.g.cs new file mode 100644 index 00000000..ce528edf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAtlasCloud + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtlasCloud? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAtlasCloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud.g.cs new file mode 100644 index 00000000..910779c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAtlasCloud + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtlasCloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud2.Json.g.cs new file mode 100644 index 00000000..e5cd92b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAtlasCloud2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtlasCloud2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAtlasCloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtlasCloud2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud2.g.cs new file mode 100644 index 00000000..62b1cc8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtlasCloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAtlasCloud2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtoma.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma.Json.g.cs new file mode 100644 index 00000000..4da66795 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAtoma + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtoma? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAtoma), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma.g.cs new file mode 100644 index 00000000..9c837868 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAtoma + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtoma2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma2.Json.g.cs new file mode 100644 index 00000000..fc4a4e8c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAtoma2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAtoma2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAtoma2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAtoma2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma2.g.cs new file mode 100644 index 00000000..d23b2cc6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAtoma2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAtoma2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAvian.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian.Json.g.cs new file mode 100644 index 00000000..c8c0302d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAvian + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAvian? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAvian), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian.g.cs new file mode 100644 index 00000000..e54921ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAvian + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAvian2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian2.Json.g.cs new file mode 100644 index 00000000..52651068 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAvian2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAvian2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAvian2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAvian2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian2.g.cs new file mode 100644 index 00000000..5ffe0af8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAvian2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAvian2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAzure.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure.Json.g.cs new file mode 100644 index 00000000..6fc67276 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAzure + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAzure? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAzure), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure.g.cs new file mode 100644 index 00000000..ac675e75 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAzure + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAzure2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure2.Json.g.cs new file mode 100644 index 00000000..b50facab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsAzure2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsAzure2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsAzure2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsAzure2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure2.g.cs new file mode 100644 index 00000000..dcddda97 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsAzure2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsAzure2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaidu.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu.Json.g.cs new file mode 100644 index 00000000..e6805bb6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBaidu + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaidu? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBaidu), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu.g.cs new file mode 100644 index 00000000..0ffd02bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBaidu + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaidu2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu2.Json.g.cs new file mode 100644 index 00000000..8be0eabb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBaidu2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaidu2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBaidu2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaidu2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu2.g.cs new file mode 100644 index 00000000..dbb2b189 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaidu2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBaidu2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaseten.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten.Json.g.cs new file mode 100644 index 00000000..a6bc731b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBaseten + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaseten? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBaseten), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten.g.cs new file mode 100644 index 00000000..375c8b72 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBaseten + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaseten2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten2.Json.g.cs new file mode 100644 index 00000000..bc398f43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBaseten2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBaseten2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBaseten2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBaseten2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten2.g.cs new file mode 100644 index 00000000..139e986c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBaseten2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBaseten2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs.Json.g.cs new file mode 100644 index 00000000..2ee03227 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBlackForestLabs + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs.g.cs new file mode 100644 index 00000000..85a4448f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBlackForestLabs + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.Json.g.cs new file mode 100644 index 00000000..38876d35 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsBlackForestLabs2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsBlackForestLabs2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsBlackForestLabs2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.g.cs new file mode 100644 index 00000000..b65beda2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsBlackForestLabs2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsBlackForestLabs2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsByteplus.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus.Json.g.cs new file mode 100644 index 00000000..3be74aeb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsByteplus + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsByteplus? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsByteplus), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus.g.cs new file mode 100644 index 00000000..090edc24 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsByteplus + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsByteplus2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus2.Json.g.cs new file mode 100644 index 00000000..f1a1e590 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsByteplus2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsByteplus2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsByteplus2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsByteplus2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus2.g.cs new file mode 100644 index 00000000..f05f6a91 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsByteplus2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsByteplus2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCentml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml.Json.g.cs new file mode 100644 index 00000000..94f0340c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCentml + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCentml? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCentml), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml.g.cs new file mode 100644 index 00000000..5d651c6b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCentml + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCentml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml2.Json.g.cs new file mode 100644 index 00000000..9b840c0a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCentml2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCentml2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCentml2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCentml2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml2.g.cs new file mode 100644 index 00000000..28e0f54c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCentml2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCentml2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCerebras.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras.Json.g.cs new file mode 100644 index 00000000..f609b337 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCerebras + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCerebras? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCerebras), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras.g.cs new file mode 100644 index 00000000..aa5cf63b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCerebras + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCerebras2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras2.Json.g.cs new file mode 100644 index 00000000..148e5561 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCerebras2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCerebras2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCerebras2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCerebras2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras2.g.cs new file mode 100644 index 00000000..14ebdee9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCerebras2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCerebras2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsChutes.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes.Json.g.cs new file mode 100644 index 00000000..8f00662e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsChutes + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsChutes? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsChutes), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes.g.cs new file mode 100644 index 00000000..6d8695d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsChutes + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsChutes2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes2.Json.g.cs new file mode 100644 index 00000000..3dfc1bb0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsChutes2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsChutes2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsChutes2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsChutes2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes2.g.cs new file mode 100644 index 00000000..d0a71cef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsChutes2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsChutes2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCirrascale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale.Json.g.cs new file mode 100644 index 00000000..342a7d5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCirrascale + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCirrascale? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCirrascale), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale.g.cs new file mode 100644 index 00000000..ee3d507c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCirrascale + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCirrascale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale2.Json.g.cs new file mode 100644 index 00000000..89d4d7f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCirrascale2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCirrascale2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCirrascale2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCirrascale2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale2.g.cs new file mode 100644 index 00000000..75cb8650 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCirrascale2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCirrascale2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsClarifai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai.Json.g.cs new file mode 100644 index 00000000..9c0747e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsClarifai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsClarifai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsClarifai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai.g.cs new file mode 100644 index 00000000..8a3801fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsClarifai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsClarifai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai2.Json.g.cs new file mode 100644 index 00000000..adbd6e71 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsClarifai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsClarifai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsClarifai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsClarifai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai2.g.cs new file mode 100644 index 00000000..72bce2d6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsClarifai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsClarifai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCloudflare.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare.Json.g.cs new file mode 100644 index 00000000..cfcb4a4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCloudflare + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCloudflare? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCloudflare), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare.g.cs new file mode 100644 index 00000000..966dd4e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCloudflare + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCloudflare2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare2.Json.g.cs new file mode 100644 index 00000000..2791e40f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCloudflare2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCloudflare2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCloudflare2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCloudflare2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare2.g.cs new file mode 100644 index 00000000..3e651d59 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCloudflare2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCloudflare2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCohere.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere.Json.g.cs new file mode 100644 index 00000000..90e110dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCohere + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCohere? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCohere), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere.g.cs new file mode 100644 index 00000000..6be1f353 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCohere + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCohere2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere2.Json.g.cs new file mode 100644 index 00000000..2602fb46 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCohere2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCohere2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCohere2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCohere2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere2.g.cs new file mode 100644 index 00000000..97be528f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCohere2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCohere2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrofai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai.Json.g.cs new file mode 100644 index 00000000..656ab979 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrofai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrofai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrofai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai.g.cs new file mode 100644 index 00000000..017ab1a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrofai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrofai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai2.Json.g.cs new file mode 100644 index 00000000..29126437 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrofai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrofai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrofai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrofai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai2.g.cs new file mode 100644 index 00000000..d819117e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrofai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrofai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrucible.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible.Json.g.cs new file mode 100644 index 00000000..6b3830a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrucible + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrucible? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrucible), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible.g.cs new file mode 100644 index 00000000..2550ca5f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrucible + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrucible2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible2.Json.g.cs new file mode 100644 index 00000000..3e92d6d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrucible2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrucible2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrucible2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrucible2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible2.g.cs new file mode 100644 index 00000000..0a84320a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrucible2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrucible2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrusoe.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe.Json.g.cs new file mode 100644 index 00000000..0ac54d4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrusoe + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrusoe? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrusoe), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe.g.cs new file mode 100644 index 00000000..1ee6d0ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrusoe + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrusoe2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe2.Json.g.cs new file mode 100644 index 00000000..12863dd6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsCrusoe2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsCrusoe2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsCrusoe2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsCrusoe2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe2.g.cs new file mode 100644 index 00000000..eb320fb0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsCrusoe2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsCrusoe2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDarkbloom.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom.Json.g.cs new file mode 100644 index 00000000..e4c5612f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDarkbloom + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDarkbloom? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDarkbloom), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom.g.cs new file mode 100644 index 00000000..c730ced7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDarkbloom + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDarkbloom2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom2.Json.g.cs new file mode 100644 index 00000000..13cc69fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDarkbloom2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDarkbloom2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDarkbloom2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDarkbloom2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom2.g.cs new file mode 100644 index 00000000..a0c424bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDarkbloom2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDarkbloom2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDecart.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart.Json.g.cs new file mode 100644 index 00000000..8dafd5f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDecart + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDecart? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDecart), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart.g.cs new file mode 100644 index 00000000..ee48777a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDecart + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDecart2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart2.Json.g.cs new file mode 100644 index 00000000..7a1c6231 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDecart2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDecart2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDecart2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDecart2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart2.g.cs new file mode 100644 index 00000000..eda2d6ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDecart2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDecart2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepgram.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram.Json.g.cs new file mode 100644 index 00000000..a05d4f17 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepgram + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepgram), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram.g.cs new file mode 100644 index 00000000..a00a4019 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepgram + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepgram2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram2.Json.g.cs new file mode 100644 index 00000000..0bd2eba1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepgram2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepgram2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepgram2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram2.g.cs new file mode 100644 index 00000000..9092c13a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepgram2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepgram2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepinfra.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra.Json.g.cs new file mode 100644 index 00000000..a57f3ef3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepinfra + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepinfra? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepinfra), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra.g.cs new file mode 100644 index 00000000..3c6cd754 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepinfra + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepinfra2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra2.Json.g.cs new file mode 100644 index 00000000..390a7a02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepinfra2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepinfra2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepinfra2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepinfra2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra2.g.cs new file mode 100644 index 00000000..73280b04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepinfra2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepinfra2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepseek.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek.Json.g.cs new file mode 100644 index 00000000..38c60475 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepseek + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepseek? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepseek), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek.g.cs new file mode 100644 index 00000000..665a34e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepseek + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepseek2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek2.Json.g.cs new file mode 100644 index 00000000..ca26931c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepseek2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDeepseek2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDeepseek2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDeepseek2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek2.g.cs new file mode 100644 index 00000000..49156b5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDeepseek2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDeepseek2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDekallm.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm.Json.g.cs new file mode 100644 index 00000000..2e3bfab4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDekallm + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDekallm? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDekallm), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm.g.cs new file mode 100644 index 00000000..ec55836b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDekallm + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDekallm2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm2.Json.g.cs new file mode 100644 index 00000000..58fa7fc4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDekallm2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDekallm2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDekallm2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDekallm2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm2.g.cs new file mode 100644 index 00000000..31dd972c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDekallm2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDekallm2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDigitalocean.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean.Json.g.cs new file mode 100644 index 00000000..9c6ced74 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDigitalocean + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDigitalocean? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDigitalocean), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean.g.cs new file mode 100644 index 00000000..c1d90472 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDigitalocean + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDigitalocean2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean2.Json.g.cs new file mode 100644 index 00000000..a0346522 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsDigitalocean2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsDigitalocean2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsDigitalocean2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsDigitalocean2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean2.g.cs new file mode 100644 index 00000000..2833d4e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsDigitalocean2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsDigitalocean2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsEnfer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer.Json.g.cs new file mode 100644 index 00000000..4d106d14 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsEnfer + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsEnfer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsEnfer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer.g.cs new file mode 100644 index 00000000..00c15e1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsEnfer + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsEnfer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer2.Json.g.cs new file mode 100644 index 00000000..1538fc61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsEnfer2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsEnfer2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsEnfer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsEnfer2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer2.g.cs new file mode 100644 index 00000000..7636e487 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsEnfer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsEnfer2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFakeProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider.Json.g.cs new file mode 100644 index 00000000..afeee621 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFakeProvider + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFakeProvider? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFakeProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider.g.cs new file mode 100644 index 00000000..a6cfc04e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFakeProvider + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFakeProvider2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider2.Json.g.cs new file mode 100644 index 00000000..adddb7dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFakeProvider2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFakeProvider2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFakeProvider2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFakeProvider2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider2.g.cs new file mode 100644 index 00000000..60df7503 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFakeProvider2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFakeProvider2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFeatherless.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless.Json.g.cs new file mode 100644 index 00000000..43af348f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFeatherless + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFeatherless? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFeatherless), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless.g.cs new file mode 100644 index 00000000..f18be8fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFeatherless + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFeatherless2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless2.Json.g.cs new file mode 100644 index 00000000..f04d1711 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFeatherless2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFeatherless2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFeatherless2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFeatherless2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless2.g.cs new file mode 100644 index 00000000..1ed0b896 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFeatherless2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFeatherless2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFireworks.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks.Json.g.cs new file mode 100644 index 00000000..08f240e1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFireworks + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFireworks? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFireworks), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks.g.cs new file mode 100644 index 00000000..d6a10728 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFireworks + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFireworks2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks2.Json.g.cs new file mode 100644 index 00000000..3306770a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFireworks2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFireworks2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFireworks2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFireworks2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks2.g.cs new file mode 100644 index 00000000..a1786726 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFireworks2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFireworks2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFishAudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio.Json.g.cs new file mode 100644 index 00000000..d80e786e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFishAudio + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFishAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio.g.cs new file mode 100644 index 00000000..834d9552 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFishAudio + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFishAudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio2.Json.g.cs new file mode 100644 index 00000000..968846db --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFishAudio2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFishAudio2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFishAudio2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio2.g.cs new file mode 100644 index 00000000..f5e8eadf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFishAudio2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFishAudio2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFriendli.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli.Json.g.cs new file mode 100644 index 00000000..9e04ac90 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFriendli + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFriendli? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFriendli), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli.g.cs new file mode 100644 index 00000000..50c7932f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFriendli + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFriendli2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli2.Json.g.cs new file mode 100644 index 00000000..d6809170 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsFriendli2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsFriendli2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsFriendli2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsFriendli2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli2.g.cs new file mode 100644 index 00000000..b21c7a31 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsFriendli2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsFriendli2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGmicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud.Json.g.cs new file mode 100644 index 00000000..61e5767f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGmicloud + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGmicloud? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGmicloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud.g.cs new file mode 100644 index 00000000..173b5fd8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGmicloud + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGmicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud2.Json.g.cs new file mode 100644 index 00000000..db142e43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGmicloud2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGmicloud2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGmicloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGmicloud2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud2.g.cs new file mode 100644 index 00000000..8b9ec6c7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGmicloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGmicloud2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.Json.g.cs new file mode 100644 index 00000000..c581e684 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleAiStudio + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.g.cs new file mode 100644 index 00000000..df2fe42b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleAiStudio + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.Json.g.cs new file mode 100644 index 00000000..785c68da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleAiStudio2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.g.cs new file mode 100644 index 00000000..eb158854 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleAiStudio2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleAiStudio2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleVertex.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex.Json.g.cs new file mode 100644 index 00000000..717e963b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleVertex + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleVertex? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGoogleVertex), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex.g.cs new file mode 100644 index 00000000..ddf9ccd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleVertex + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleVertex2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex2.Json.g.cs new file mode 100644 index 00000000..15824ed2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleVertex2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGoogleVertex2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGoogleVertex2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGoogleVertex2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex2.g.cs new file mode 100644 index 00000000..2416139f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGoogleVertex2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGoogleVertex2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGopomelo.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo.Json.g.cs new file mode 100644 index 00000000..15464795 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGopomelo + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGopomelo? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGopomelo), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo.g.cs new file mode 100644 index 00000000..b5db6fea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGopomelo + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGopomelo2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo2.Json.g.cs new file mode 100644 index 00000000..2c343cd4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGopomelo2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGopomelo2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGopomelo2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGopomelo2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo2.g.cs new file mode 100644 index 00000000..96cd6ff3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGopomelo2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGopomelo2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGroq.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq.Json.g.cs new file mode 100644 index 00000000..b17595f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGroq + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGroq? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGroq), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq.g.cs new file mode 100644 index 00000000..dcbf0ecb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGroq + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGroq2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq2.Json.g.cs new file mode 100644 index 00000000..50085e8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsGroq2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsGroq2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsGroq2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsGroq2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq2.g.cs new file mode 100644 index 00000000..f14873fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsGroq2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsGroq2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHeygen.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen.Json.g.cs new file mode 100644 index 00000000..85d123a4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHeygen + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHeygen? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHeygen), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen.g.cs new file mode 100644 index 00000000..94fa2b62 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHeygen + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHeygen2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen2.Json.g.cs new file mode 100644 index 00000000..20bd66f0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHeygen2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHeygen2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHeygen2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHeygen2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen2.g.cs new file mode 100644 index 00000000..4eceef8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHeygen2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHeygen2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHuggingface.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface.Json.g.cs new file mode 100644 index 00000000..ea57bc6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHuggingface + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHuggingface? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHuggingface), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface.g.cs new file mode 100644 index 00000000..d35c0e28 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHuggingface + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHuggingface2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface2.Json.g.cs new file mode 100644 index 00000000..5556fad1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHuggingface2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHuggingface2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHuggingface2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHuggingface2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface2.g.cs new file mode 100644 index 00000000..dd1b2369 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHuggingface2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHuggingface2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic.Json.g.cs new file mode 100644 index 00000000..ff95950f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolic + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolic? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHyperbolic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic.g.cs new file mode 100644 index 00000000..156368be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolic + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic2.Json.g.cs new file mode 100644 index 00000000..b6375d02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolic2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolic2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHyperbolic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolic2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic2.g.cs new file mode 100644 index 00000000..6d7f4113 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolic2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.Json.g.cs new file mode 100644 index 00000000..b3c6e835 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolicQuantized + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.g.cs new file mode 100644 index 00000000..8723a953 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolicQuantized + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.Json.g.cs new file mode 100644 index 00000000..ead0f986 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.g.cs new file mode 100644 index 00000000..c326f8ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsHyperbolicQuantized2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInception.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception.Json.g.cs new file mode 100644 index 00000000..4e53291c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInception + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInception? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInception), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception.g.cs new file mode 100644 index 00000000..44a15198 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInception + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInception2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception2.Json.g.cs new file mode 100644 index 00000000..2cfa0303 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInception2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInception2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInception2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInception2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception2.g.cs new file mode 100644 index 00000000..7c082485 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInception2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInception2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron.Json.g.cs new file mode 100644 index 00000000..195cfd73 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInceptron + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInceptron? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInceptron), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron.g.cs new file mode 100644 index 00000000..ef92f875 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInceptron + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron2.Json.g.cs new file mode 100644 index 00000000..985813e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInceptron2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInceptron2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInceptron2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInceptron2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron2.g.cs new file mode 100644 index 00000000..d920a4fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInceptron2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInceptron2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferactVllm.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm.Json.g.cs new file mode 100644 index 00000000..bc9196d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInferactVllm + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferactVllm? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInferactVllm), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm.g.cs new file mode 100644 index 00000000..7bd175e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInferactVllm + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferactVllm2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm2.Json.g.cs new file mode 100644 index 00000000..96c3daf1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInferactVllm2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferactVllm2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInferactVllm2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferactVllm2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm2.g.cs new file mode 100644 index 00000000..1aa42b51 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferactVllm2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInferactVllm2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferenceNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet.Json.g.cs new file mode 100644 index 00000000..e63053de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInferenceNet + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferenceNet? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInferenceNet), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet.g.cs new file mode 100644 index 00000000..721c3e26 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInferenceNet + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferenceNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet2.Json.g.cs new file mode 100644 index 00000000..7f98e5c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInferenceNet2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInferenceNet2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInferenceNet2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInferenceNet2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet2.g.cs new file mode 100644 index 00000000..5762540c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInferenceNet2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInferenceNet2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInfermatic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic.Json.g.cs new file mode 100644 index 00000000..9a513f8c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInfermatic + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInfermatic? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInfermatic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic.g.cs new file mode 100644 index 00000000..530f3886 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInfermatic + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInfermatic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic2.Json.g.cs new file mode 100644 index 00000000..2b0e5f7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInfermatic2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInfermatic2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInfermatic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInfermatic2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic2.g.cs new file mode 100644 index 00000000..c535fffd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInfermatic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInfermatic2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection.Json.g.cs new file mode 100644 index 00000000..3094b044 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInflection + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInflection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInflection), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection.g.cs new file mode 100644 index 00000000..42376847 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInflection + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection2.Json.g.cs new file mode 100644 index 00000000..fa972f41 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInflection2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInflection2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInflection2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInflection2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection2.g.cs new file mode 100644 index 00000000..57de49bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInflection2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInflection2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInocloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud.Json.g.cs new file mode 100644 index 00000000..724b5a2c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInocloud + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInocloud? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInocloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud.g.cs new file mode 100644 index 00000000..39af3fbb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInocloud + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInocloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud2.Json.g.cs new file mode 100644 index 00000000..29954428 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsInocloud2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsInocloud2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsInocloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsInocloud2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud2.g.cs new file mode 100644 index 00000000..4651fb8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsInocloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsInocloud2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIoNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet.Json.g.cs new file mode 100644 index 00000000..70cd6e37 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsIoNet + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIoNet? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsIoNet), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet.g.cs new file mode 100644 index 00000000..9cbeebd5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsIoNet + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIoNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet2.Json.g.cs new file mode 100644 index 00000000..10699975 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsIoNet2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIoNet2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsIoNet2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIoNet2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet2.g.cs new file mode 100644 index 00000000..6515f185 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIoNet2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsIoNet2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIonstream.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream.Json.g.cs new file mode 100644 index 00000000..6e8ac0ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsIonstream + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIonstream? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsIonstream), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream.g.cs new file mode 100644 index 00000000..c1a512a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsIonstream + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIonstream2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream2.Json.g.cs new file mode 100644 index 00000000..43812443 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsIonstream2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsIonstream2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsIonstream2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsIonstream2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream2.g.cs new file mode 100644 index 00000000..03e98627 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsIonstream2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsIonstream2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKlusterai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai.Json.g.cs new file mode 100644 index 00000000..9fb4a6ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsKlusterai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKlusterai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsKlusterai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai.g.cs new file mode 100644 index 00000000..3030389f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsKlusterai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKlusterai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai2.Json.g.cs new file mode 100644 index 00000000..1eaa879e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsKlusterai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKlusterai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsKlusterai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKlusterai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai2.g.cs new file mode 100644 index 00000000..3f781abf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKlusterai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsKlusterai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKrea.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea.Json.g.cs new file mode 100644 index 00000000..7944ee4c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsKrea + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKrea? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsKrea), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea.g.cs new file mode 100644 index 00000000..a081275a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsKrea + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKrea2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea2.Json.g.cs new file mode 100644 index 00000000..e3c08d8e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsKrea2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsKrea2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsKrea2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsKrea2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea2.g.cs new file mode 100644 index 00000000..bae252cd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsKrea2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsKrea2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLambda.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda.Json.g.cs new file mode 100644 index 00000000..b1670d7a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLambda + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLambda? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLambda), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda.g.cs new file mode 100644 index 00000000..32a45398 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLambda + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLambda2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda2.Json.g.cs new file mode 100644 index 00000000..df5580cf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLambda2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLambda2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLambda2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLambda2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda2.g.cs new file mode 100644 index 00000000..f5deb617 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLambda2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLambda2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLepton.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton.Json.g.cs new file mode 100644 index 00000000..ce1fc6a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLepton + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLepton? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLepton), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton.g.cs new file mode 100644 index 00000000..9ffc9b31 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLepton + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLepton2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton2.Json.g.cs new file mode 100644 index 00000000..6811084a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLepton2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLepton2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLepton2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLepton2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton2.g.cs new file mode 100644 index 00000000..9a8f06ec --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLepton2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLepton2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLiquid.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid.Json.g.cs new file mode 100644 index 00000000..101322c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLiquid + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLiquid? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLiquid), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid.g.cs new file mode 100644 index 00000000..070182a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLiquid + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLiquid2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid2.Json.g.cs new file mode 100644 index 00000000..24678ea3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLiquid2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLiquid2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLiquid2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLiquid2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid2.g.cs new file mode 100644 index 00000000..808720a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLiquid2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLiquid2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynn.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn.Json.g.cs new file mode 100644 index 00000000..57211e2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLynn + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynn? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLynn), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn.g.cs new file mode 100644 index 00000000..5c0d0b78 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLynn + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynn2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn2.Json.g.cs new file mode 100644 index 00000000..624621ae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLynn2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynn2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLynn2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynn2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn2.g.cs new file mode 100644 index 00000000..109b7e07 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynn2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLynn2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynnPrivate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate.Json.g.cs new file mode 100644 index 00000000..39be53e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLynnPrivate + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynnPrivate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLynnPrivate), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate.g.cs new file mode 100644 index 00000000..c40b9104 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLynnPrivate + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynnPrivate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate2.Json.g.cs new file mode 100644 index 00000000..496d3057 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsLynnPrivate2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsLynnPrivate2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsLynnPrivate2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsLynnPrivate2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate2.g.cs new file mode 100644 index 00000000..d78d2ac5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsLynnPrivate2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsLynnPrivate2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer.Json.g.cs new file mode 100644 index 00000000..522bfa54 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMancer + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMancer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer.g.cs new file mode 100644 index 00000000..17d5d855 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMancer + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer2.Json.g.cs new file mode 100644 index 00000000..86c3fd25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMancer2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancer2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMancer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancer2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer2.g.cs new file mode 100644 index 00000000..576e1c35 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMancer2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancerOld.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld.Json.g.cs new file mode 100644 index 00000000..ac8987b5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMancerOld + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancerOld? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMancerOld), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld.g.cs new file mode 100644 index 00000000..b1b1e3c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMancerOld + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancerOld2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld2.Json.g.cs new file mode 100644 index 00000000..00f366e1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMancerOld2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMancerOld2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMancerOld2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMancerOld2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld2.g.cs new file mode 100644 index 00000000..efa1fce5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMancerOld2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMancerOld2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMara.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara.Json.g.cs new file mode 100644 index 00000000..286c0c5a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMara + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMara? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMara), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara.g.cs new file mode 100644 index 00000000..3f165bb9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMara + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMara2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara2.Json.g.cs new file mode 100644 index 00000000..3689563b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMara2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMara2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMara2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMara2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara2.g.cs new file mode 100644 index 00000000..9243863e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMara2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMara2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMeta.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta.Json.g.cs new file mode 100644 index 00000000..f354c511 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMeta + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMeta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMeta), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta.g.cs new file mode 100644 index 00000000..56995b34 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMeta + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMeta2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta2.Json.g.cs new file mode 100644 index 00000000..6606ccd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMeta2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMeta2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMeta2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMeta2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta2.g.cs new file mode 100644 index 00000000..e4db5e09 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMeta2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMeta2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMinimax.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax.Json.g.cs new file mode 100644 index 00000000..633daa5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMinimax + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMinimax? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMinimax), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax.g.cs new file mode 100644 index 00000000..cb0b15e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMinimax + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMinimax2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax2.Json.g.cs new file mode 100644 index 00000000..ab709238 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMinimax2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMinimax2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMinimax2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMinimax2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax2.g.cs new file mode 100644 index 00000000..bd96d1ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMinimax2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMinimax2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMistral.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral.Json.g.cs new file mode 100644 index 00000000..2882e0c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMistral + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMistral? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMistral), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral.g.cs new file mode 100644 index 00000000..27cba8e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMistral + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMistral2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral2.Json.g.cs new file mode 100644 index 00000000..695724d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMistral2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMistral2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMistral2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMistral2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral2.g.cs new file mode 100644 index 00000000..bcbf85bb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMistral2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMistral2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal.Json.g.cs new file mode 100644 index 00000000..26705345 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModal + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModal? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModal), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal.g.cs new file mode 100644 index 00000000..1714914b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModal + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal2.Json.g.cs new file mode 100644 index 00000000..3d13333f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModal2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModal2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModal2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModal2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal2.g.cs new file mode 100644 index 00000000..d3a16b68 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModal2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModal2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModelrun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun.Json.g.cs new file mode 100644 index 00000000..773bd055 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModelrun + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModelrun? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModelrun), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun.g.cs new file mode 100644 index 00000000..7f00201c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModelrun + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModelrun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun2.Json.g.cs new file mode 100644 index 00000000..5bbe7457 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModelrun2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModelrun2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModelrun2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModelrun2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun2.g.cs new file mode 100644 index 00000000..e2f61532 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModelrun2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModelrun2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModular.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular.Json.g.cs new file mode 100644 index 00000000..3ee0ae4c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModular + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModular? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModular), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular.g.cs new file mode 100644 index 00000000..0429006d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModular + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModular2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular2.Json.g.cs new file mode 100644 index 00000000..590e37e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsModular2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsModular2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsModular2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsModular2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular2.g.cs new file mode 100644 index 00000000..91bafb80 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsModular2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsModular2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMoonshotai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai.Json.g.cs new file mode 100644 index 00000000..6814658c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMoonshotai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMoonshotai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMoonshotai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai.g.cs new file mode 100644 index 00000000..d8653d61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMoonshotai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMoonshotai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai2.Json.g.cs new file mode 100644 index 00000000..1b0364e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMoonshotai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMoonshotai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMoonshotai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMoonshotai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai2.g.cs new file mode 100644 index 00000000..0934e4a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMoonshotai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMoonshotai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMorph.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph.Json.g.cs new file mode 100644 index 00000000..fd9f4db3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMorph + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMorph? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMorph), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph.g.cs new file mode 100644 index 00000000..61d9a534 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMorph + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMorph2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph2.Json.g.cs new file mode 100644 index 00000000..80dc691e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsMorph2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsMorph2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsMorph2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsMorph2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph2.g.cs new file mode 100644 index 00000000..b9755a35 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsMorph2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsMorph2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNcompass.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass.Json.g.cs new file mode 100644 index 00000000..43ce387a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNcompass + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNcompass? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNcompass), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass.g.cs new file mode 100644 index 00000000..da0a4e13 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNcompass + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNcompass2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass2.Json.g.cs new file mode 100644 index 00000000..72c17b7c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNcompass2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNcompass2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNcompass2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNcompass2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass2.g.cs new file mode 100644 index 00000000..ed4db020 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNcompass2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNcompass2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNebius.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius.Json.g.cs new file mode 100644 index 00000000..6461f173 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNebius + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNebius? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNebius), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius.g.cs new file mode 100644 index 00000000..ca146321 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNebius + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNebius2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius2.Json.g.cs new file mode 100644 index 00000000..6153e5e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNebius2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNebius2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNebius2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNebius2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius2.g.cs new file mode 100644 index 00000000..5801a195 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNebius2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNebius2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNexAgi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi.Json.g.cs new file mode 100644 index 00000000..6cbdf96c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNexAgi + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNexAgi? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNexAgi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi.g.cs new file mode 100644 index 00000000..c41c09ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNexAgi + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNexAgi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi2.Json.g.cs new file mode 100644 index 00000000..257b5cdc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNexAgi2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNexAgi2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNexAgi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNexAgi2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi2.g.cs new file mode 100644 index 00000000..f3aa8fb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNexAgi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNexAgi2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNextbit.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit.Json.g.cs new file mode 100644 index 00000000..ca16232e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNextbit + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNextbit? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNextbit), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit.g.cs new file mode 100644 index 00000000..72b51e99 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNextbit + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNextbit2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit2.Json.g.cs new file mode 100644 index 00000000..7ae3a551 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNextbit2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNextbit2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNextbit2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNextbit2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit2.g.cs new file mode 100644 index 00000000..a6a87172 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNextbit2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNextbit2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNineteen.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen.Json.g.cs new file mode 100644 index 00000000..28866414 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNineteen + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNineteen? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNineteen), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen.g.cs new file mode 100644 index 00000000..97c8a388 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNineteen + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNineteen2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen2.Json.g.cs new file mode 100644 index 00000000..a902d3ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNineteen2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNineteen2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNineteen2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNineteen2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen2.g.cs new file mode 100644 index 00000000..9f0d4cc5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNineteen2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNineteen2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNovita.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita.Json.g.cs new file mode 100644 index 00000000..f2bfb5c7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNovita + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNovita? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNovita), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita.g.cs new file mode 100644 index 00000000..e5cf8e82 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNovita + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNovita2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita2.Json.g.cs new file mode 100644 index 00000000..5946d46a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNovita2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNovita2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNovita2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNovita2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita2.g.cs new file mode 100644 index 00000000..e0893b34 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNovita2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNovita2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNvidia.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia.Json.g.cs new file mode 100644 index 00000000..c6435d4d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNvidia + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNvidia? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNvidia), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia.g.cs new file mode 100644 index 00000000..cb4a93f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNvidia + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNvidia2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia2.Json.g.cs new file mode 100644 index 00000000..65828735 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsNvidia2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsNvidia2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsNvidia2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsNvidia2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia2.g.cs new file mode 100644 index 00000000..86f89799 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsNvidia2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsNvidia2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOctoai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai.Json.g.cs new file mode 100644 index 00000000..3c5c61b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOctoai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOctoai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOctoai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai.g.cs new file mode 100644 index 00000000..94646d89 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOctoai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOctoai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai2.Json.g.cs new file mode 100644 index 00000000..2a27a314 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOctoai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOctoai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOctoai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOctoai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai2.g.cs new file mode 100644 index 00000000..10d8ce0e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOctoai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOctoai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenInference.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference.Json.g.cs new file mode 100644 index 00000000..fa5d073b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenInference + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenInference? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOpenInference), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference.g.cs new file mode 100644 index 00000000..cf7ffd30 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenInference + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenInference2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference2.Json.g.cs new file mode 100644 index 00000000..3ca945f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenInference2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenInference2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOpenInference2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenInference2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference2.g.cs new file mode 100644 index 00000000..0a5c9b66 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenInference2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenInference2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai.Json.g.cs new file mode 100644 index 00000000..40dfdb4c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOpenai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai.g.cs new file mode 100644 index 00000000..1e51dc50 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai2.Json.g.cs new file mode 100644 index 00000000..f5347141 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsOpenai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsOpenai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsOpenai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai2.g.cs new file mode 100644 index 00000000..102ba17e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsOpenai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsOpenai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsParasail.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail.Json.g.cs new file mode 100644 index 00000000..6880de90 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsParasail + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsParasail? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsParasail), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail.g.cs new file mode 100644 index 00000000..c11d6608 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsParasail + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsParasail2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail2.Json.g.cs new file mode 100644 index 00000000..cad7a55f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsParasail2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsParasail2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsParasail2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsParasail2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail2.g.cs new file mode 100644 index 00000000..45a01d9f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsParasail2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsParasail2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron.Json.g.cs new file mode 100644 index 00000000..3269164b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPerceptron + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerceptron? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPerceptron), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron.g.cs new file mode 100644 index 00000000..624160f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPerceptron + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron2.Json.g.cs new file mode 100644 index 00000000..e42e9bdc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPerceptron2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerceptron2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPerceptron2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerceptron2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron2.g.cs new file mode 100644 index 00000000..f8404713 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerceptron2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPerceptron2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerplexity.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity.Json.g.cs new file mode 100644 index 00000000..b9fb4cfd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPerplexity + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerplexity? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPerplexity), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity.g.cs new file mode 100644 index 00000000..05f7ef75 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPerplexity + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerplexity2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity2.Json.g.cs new file mode 100644 index 00000000..e1ab11c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPerplexity2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPerplexity2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPerplexity2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPerplexity2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity2.g.cs new file mode 100644 index 00000000..74bf3136 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPerplexity2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPerplexity2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPhala.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala.Json.g.cs new file mode 100644 index 00000000..1966d598 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPhala + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPhala? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPhala), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala.g.cs new file mode 100644 index 00000000..8e3d79ca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPhala + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPhala2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala2.Json.g.cs new file mode 100644 index 00000000..a13e1789 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPhala2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPhala2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPhala2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPhala2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala2.g.cs new file mode 100644 index 00000000..38c1f9c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPhala2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPhala2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPoolside.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside.Json.g.cs new file mode 100644 index 00000000..86916335 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPoolside + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPoolside? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPoolside), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside.g.cs new file mode 100644 index 00000000..fbb795ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPoolside + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPoolside2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside2.Json.g.cs new file mode 100644 index 00000000..ad7c42f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsPoolside2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsPoolside2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsPoolside2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsPoolside2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside2.g.cs new file mode 100644 index 00000000..536ea026 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsPoolside2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsPoolside2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsQuiver.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver.Json.g.cs new file mode 100644 index 00000000..d58ef5a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsQuiver + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsQuiver? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsQuiver), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver.g.cs new file mode 100644 index 00000000..10d53df8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsQuiver + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsQuiver2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver2.Json.g.cs new file mode 100644 index 00000000..230f32c6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsQuiver2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsQuiver2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsQuiver2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsQuiver2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver2.g.cs new file mode 100644 index 00000000..8f0967b4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsQuiver2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsQuiver2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecraft.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft.Json.g.cs new file mode 100644 index 00000000..c3c6a0ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRecraft + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecraft? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRecraft), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft.g.cs new file mode 100644 index 00000000..fcc34500 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRecraft + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecraft2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft2.Json.g.cs new file mode 100644 index 00000000..726b8ec2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRecraft2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecraft2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRecraft2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecraft2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft2.g.cs new file mode 100644 index 00000000..7c209730 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecraft2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRecraft2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecursal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal.Json.g.cs new file mode 100644 index 00000000..ab45c153 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRecursal + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecursal? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRecursal), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal.g.cs new file mode 100644 index 00000000..879d35e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRecursal + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecursal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal2.Json.g.cs new file mode 100644 index 00000000..180a6c81 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRecursal2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRecursal2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRecursal2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRecursal2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal2.g.cs new file mode 100644 index 00000000..14855f4f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRecursal2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRecursal2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection.Json.g.cs new file mode 100644 index 00000000..1dad6521 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReflection + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReflection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReflection), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection.g.cs new file mode 100644 index 00000000..dc6aa5f7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReflection + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection2.Json.g.cs new file mode 100644 index 00000000..1fa884d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReflection2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReflection2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReflection2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReflection2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection2.g.cs new file mode 100644 index 00000000..61479ff8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReflection2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReflection2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReka.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka.Json.g.cs new file mode 100644 index 00000000..d815c865 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReka + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReka? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReka), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka.g.cs new file mode 100644 index 00000000..5eca338b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReka + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReka2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka2.Json.g.cs new file mode 100644 index 00000000..e3a42bda --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReka2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReka2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReka2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReka2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka2.g.cs new file mode 100644 index 00000000..0f9ae30e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReka2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReka2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRelace.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace.Json.g.cs new file mode 100644 index 00000000..8ddb9416 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRelace + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRelace? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRelace), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace.g.cs new file mode 100644 index 00000000..62d77426 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRelace + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRelace2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace2.Json.g.cs new file mode 100644 index 00000000..d089064d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsRelace2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsRelace2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsRelace2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsRelace2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace2.g.cs new file mode 100644 index 00000000..89f3470b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsRelace2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsRelace2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReplicate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate.Json.g.cs new file mode 100644 index 00000000..7aeb0a4f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReplicate + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReplicate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReplicate), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate.g.cs new file mode 100644 index 00000000..f752cd4b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReplicate + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReplicate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate2.Json.g.cs new file mode 100644 index 00000000..fc03dc48 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsReplicate2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsReplicate2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsReplicate2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsReplicate2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate2.g.cs new file mode 100644 index 00000000..7ae99fae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsReplicate2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsReplicate2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSailResearch.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch.Json.g.cs new file mode 100644 index 00000000..51857956 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSailResearch + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSailResearch), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch.g.cs new file mode 100644 index 00000000..1e8984cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSailResearch + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSailResearch2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch2.Json.g.cs new file mode 100644 index 00000000..fe7e0661 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSailResearch2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSailResearch2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSailResearch2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch2.g.cs new file mode 100644 index 00000000..6315426a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSailResearch2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSailResearch2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSakana.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana.Json.g.cs new file mode 100644 index 00000000..f4b66c4b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSakana + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSakana? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSakana), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana.g.cs new file mode 100644 index 00000000..f375e62a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSakana + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSakana2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana2.Json.g.cs new file mode 100644 index 00000000..6c85c0e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSakana2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSakana2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSakana2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSakana2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana2.g.cs new file mode 100644 index 00000000..f64ee73f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSakana2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSakana2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova.Json.g.cs new file mode 100644 index 00000000..3d80579a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanova + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanova? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSambanova), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova.g.cs new file mode 100644 index 00000000..39d69a47 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanova + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova2.Json.g.cs new file mode 100644 index 00000000..b7f43262 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanova2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanova2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSambanova2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanova2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova2.g.cs new file mode 100644 index 00000000..6b7b7051 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanova2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanova2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.Json.g.cs new file mode 100644 index 00000000..551509b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanovaCloaked + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.g.cs new file mode 100644 index 00000000..36ea6ff3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanovaCloaked + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.Json.g.cs new file mode 100644 index 00000000..762efc6c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanovaCloaked2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.g.cs new file mode 100644 index 00000000..4a71e227 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSambanovaCloaked2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSambanovaCloaked2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSeed.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed.Json.g.cs new file mode 100644 index 00000000..6dca56ad --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSeed + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSeed? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSeed), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed.g.cs new file mode 100644 index 00000000..994b92ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSeed + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSeed2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed2.Json.g.cs new file mode 100644 index 00000000..b1a13426 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSeed2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSeed2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSeed2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSeed2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed2.g.cs new file mode 100644 index 00000000..7520a855 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSeed2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSeed2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSfCompute.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute.Json.g.cs new file mode 100644 index 00000000..ec05a043 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSfCompute + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSfCompute? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSfCompute), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute.g.cs new file mode 100644 index 00000000..c8248c9b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSfCompute + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSfCompute2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute2.Json.g.cs new file mode 100644 index 00000000..f439dfae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSfCompute2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSfCompute2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSfCompute2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSfCompute2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute2.g.cs new file mode 100644 index 00000000..aa8fc347 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSfCompute2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSfCompute2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSiliconflow.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow.Json.g.cs new file mode 100644 index 00000000..f0432761 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSiliconflow + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSiliconflow? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSiliconflow), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow.g.cs new file mode 100644 index 00000000..b0043317 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSiliconflow + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSiliconflow2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow2.Json.g.cs new file mode 100644 index 00000000..9e4d627c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSiliconflow2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSiliconflow2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSiliconflow2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSiliconflow2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow2.g.cs new file mode 100644 index 00000000..fd229f80 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSiliconflow2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSiliconflow2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSourceful.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful.Json.g.cs new file mode 100644 index 00000000..fc2f08d9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSourceful + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSourceful? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSourceful), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful.g.cs new file mode 100644 index 00000000..b0946ac2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSourceful + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSourceful2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful2.Json.g.cs new file mode 100644 index 00000000..abde18a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSourceful2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSourceful2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSourceful2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSourceful2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful2.g.cs new file mode 100644 index 00000000..9c4d77ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSourceful2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSourceful2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStealth.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth.Json.g.cs new file mode 100644 index 00000000..46ae85b9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStealth + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStealth? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStealth), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth.g.cs new file mode 100644 index 00000000..9f9cf263 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStealth + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStealth2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth2.Json.g.cs new file mode 100644 index 00000000..25e13340 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStealth2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStealth2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStealth2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStealth2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth2.g.cs new file mode 100644 index 00000000..9eecb291 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStealth2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStealth2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStepfun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun.Json.g.cs new file mode 100644 index 00000000..a444b921 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStepfun + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStepfun? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStepfun), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun.g.cs new file mode 100644 index 00000000..97813cd5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStepfun + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStepfun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun2.Json.g.cs new file mode 100644 index 00000000..72b2b1d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStepfun2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStepfun2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStepfun2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStepfun2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun2.g.cs new file mode 100644 index 00000000..d96ab777 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStepfun2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStepfun2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStreamlake.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake.Json.g.cs new file mode 100644 index 00000000..f04d3519 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStreamlake + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStreamlake? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStreamlake), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake.g.cs new file mode 100644 index 00000000..1e8a4e45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStreamlake + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStreamlake2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake2.Json.g.cs new file mode 100644 index 00000000..69a71ceb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsStreamlake2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsStreamlake2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsStreamlake2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsStreamlake2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake2.g.cs new file mode 100644 index 00000000..75ba6719 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsStreamlake2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsStreamlake2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSwitchpoint.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint.Json.g.cs new file mode 100644 index 00000000..1b62d4e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSwitchpoint + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSwitchpoint? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSwitchpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint.g.cs new file mode 100644 index 00000000..28f18a65 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSwitchpoint + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSwitchpoint2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint2.Json.g.cs new file mode 100644 index 00000000..8e7e0e0e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsSwitchpoint2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsSwitchpoint2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsSwitchpoint2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsSwitchpoint2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint2.g.cs new file mode 100644 index 00000000..1e8812b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsSwitchpoint2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsSwitchpoint2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTargon.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon.Json.g.cs new file mode 100644 index 00000000..a3fd2668 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTargon + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTargon? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTargon), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon.g.cs new file mode 100644 index 00000000..c0568fc8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTargon + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTargon2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon2.Json.g.cs new file mode 100644 index 00000000..2268693b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTargon2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTargon2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTargon2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTargon2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon2.g.cs new file mode 100644 index 00000000..67ed0ee5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTargon2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTargon2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTencent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent.Json.g.cs new file mode 100644 index 00000000..8981effa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTencent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTencent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTencent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent.g.cs new file mode 100644 index 00000000..0da03c2e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTencent + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTencent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent2.Json.g.cs new file mode 100644 index 00000000..4ffb9bc4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTencent2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTencent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTencent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTencent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent2.g.cs new file mode 100644 index 00000000..54fe40ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTencent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTencent2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTenstorrent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent.Json.g.cs new file mode 100644 index 00000000..8d2a249e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTenstorrent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTenstorrent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent.g.cs new file mode 100644 index 00000000..5effe960 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTenstorrent + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTenstorrent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent2.Json.g.cs new file mode 100644 index 00000000..f951afc3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTenstorrent2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTenstorrent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent2.g.cs new file mode 100644 index 00000000..87119b45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTenstorrent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTenstorrent2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogether.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether.Json.g.cs new file mode 100644 index 00000000..f9780c99 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTogether + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogether? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTogether), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether.g.cs new file mode 100644 index 00000000..c86a2b3c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTogether + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogether2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether2.Json.g.cs new file mode 100644 index 00000000..ab9a835c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTogether2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogether2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTogether2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogether2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether2.g.cs new file mode 100644 index 00000000..45dfc73a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogether2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTogether2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogetherLite.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite.Json.g.cs new file mode 100644 index 00000000..3ddbc1e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTogetherLite + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogetherLite? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTogetherLite), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite.g.cs new file mode 100644 index 00000000..114c0457 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTogetherLite + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogetherLite2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite2.Json.g.cs new file mode 100644 index 00000000..8f16ede5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsTogetherLite2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsTogetherLite2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsTogetherLite2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsTogetherLite2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite2.g.cs new file mode 100644 index 00000000..fa49b6e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsTogetherLite2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsTogetherLite2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUbicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud.Json.g.cs new file mode 100644 index 00000000..69102bb8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsUbicloud + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUbicloud? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsUbicloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud.g.cs new file mode 100644 index 00000000..35583164 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsUbicloud + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUbicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud2.Json.g.cs new file mode 100644 index 00000000..68209345 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsUbicloud2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUbicloud2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsUbicloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUbicloud2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud2.g.cs new file mode 100644 index 00000000..2f714e30 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUbicloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsUbicloud2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUpstage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage.Json.g.cs new file mode 100644 index 00000000..aaec2ceb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsUpstage + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUpstage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsUpstage), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage.g.cs new file mode 100644 index 00000000..5ba4ed24 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsUpstage + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUpstage2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage2.Json.g.cs new file mode 100644 index 00000000..61ddf77c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsUpstage2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsUpstage2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsUpstage2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsUpstage2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage2.g.cs new file mode 100644 index 00000000..172249b9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsUpstage2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsUpstage2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsVenice.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice.Json.g.cs new file mode 100644 index 00000000..85bbbdc1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsVenice + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsVenice? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsVenice), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice.g.cs new file mode 100644 index 00000000..b6352389 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsVenice + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsVenice2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice2.Json.g.cs new file mode 100644 index 00000000..2a370841 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsVenice2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsVenice2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsVenice2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsVenice2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice2.g.cs new file mode 100644 index 00000000..0a7903a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsVenice2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsVenice2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWafer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer.Json.g.cs new file mode 100644 index 00000000..a8d15b17 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsWafer + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWafer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsWafer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer.g.cs new file mode 100644 index 00000000..2508929d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsWafer + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWafer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer2.Json.g.cs new file mode 100644 index 00000000..beaee396 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsWafer2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWafer2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsWafer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWafer2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer2.g.cs new file mode 100644 index 00000000..74ef5e3e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWafer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsWafer2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWandb.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb.Json.g.cs new file mode 100644 index 00000000..57506d45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsWandb + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWandb? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsWandb), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb.g.cs new file mode 100644 index 00000000..782f3cc4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsWandb + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWandb2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb2.Json.g.cs new file mode 100644 index 00000000..721592f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsWandb2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsWandb2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsWandb2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsWandb2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb2.g.cs new file mode 100644 index 00000000..87b32f58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsWandb2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsWandb2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai.Json.g.cs new file mode 100644 index 00000000..7112f1d4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsXai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsXai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai.g.cs new file mode 100644 index 00000000..b9ed1f08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsXai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai2.Json.g.cs new file mode 100644 index 00000000..770b8182 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsXai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsXai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai2.g.cs new file mode 100644 index 00000000..a00b1742 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsXai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXiaomi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi.Json.g.cs new file mode 100644 index 00000000..b6ac5234 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsXiaomi + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXiaomi? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsXiaomi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi.g.cs new file mode 100644 index 00000000..71edaaab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsXiaomi + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXiaomi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi2.Json.g.cs new file mode 100644 index 00000000..2bb80bf9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsXiaomi2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsXiaomi2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsXiaomi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsXiaomi2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi2.g.cs new file mode 100644 index 00000000..72440636 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsXiaomi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsXiaomi2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsZAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi.Json.g.cs new file mode 100644 index 00000000..b1e5f5e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsZAi + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsZAi? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsZAi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi.g.cs new file mode 100644 index 00000000..26d4cf32 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsZAi + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsZAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi2.Json.g.cs new file mode 100644 index 00000000..eb95e928 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsZAi2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsZAi2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsZAi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsZAi2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi2.g.cs new file mode 100644 index 00000000..41c90b70 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsZAi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsZAi2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsx01ai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai.Json.g.cs new file mode 100644 index 00000000..58f5ec38 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsx01ai + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsx01ai? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsx01ai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai.g.cs new file mode 100644 index 00000000..d036eb3d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsx01ai + { + + /// + /// 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.ImageGenerationProviderPreferencesOptionsx01ai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai2.Json.g.cs new file mode 100644 index 00000000..8b446a99 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationProviderPreferencesOptionsx01ai2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOptionsx01ai2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOptionsx01ai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOptionsx01ai2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai2.g.cs new file mode 100644 index 00000000..ca35262c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOptionsx01ai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationProviderPreferencesOptionsx01ai2 + { + + /// + /// 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.ImageGenerationProviderPreferencesOrderItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOrderItems.Json.g.cs new file mode 100644 index 00000000..2745d98a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOrderItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ImageGenerationProviderPreferencesOrderItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOrderItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesOrderItems), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesOrderItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesOrderItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesOrderItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesOrderItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesOrderItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOrderItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOrderItems.g.cs new file mode 100644 index 00000000..14aa8cd2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesOrderItems.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ImageGenerationProviderPreferencesOrderItems : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ProviderName? ProviderName { get; init; } +#else + public global::OpenRouter.ProviderName? ProviderName { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderName))] +#endif + public bool IsProviderName => ProviderName != null; + + /// + /// + /// + public bool TryPickProviderName( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ProviderName? value) + { + value = ProviderName; + return IsProviderName; + } + + /// + /// + /// + public global::OpenRouter.ProviderName PickProviderName() => IsProviderName + ? ProviderName!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderName' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ImageGenerationProviderPreferencesOrderItemsVariant2 { get; init; } +#else + public string? ImageGenerationProviderPreferencesOrderItemsVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationProviderPreferencesOrderItemsVariant2))] +#endif + public bool IsImageGenerationProviderPreferencesOrderItemsVariant2 => ImageGenerationProviderPreferencesOrderItemsVariant2 != null; + + /// + /// + /// + public bool TryPickImageGenerationProviderPreferencesOrderItemsVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ImageGenerationProviderPreferencesOrderItemsVariant2; + return IsImageGenerationProviderPreferencesOrderItemsVariant2; + } + + /// + /// + /// + public string PickImageGenerationProviderPreferencesOrderItemsVariant2() => IsImageGenerationProviderPreferencesOrderItemsVariant2 + ? ImageGenerationProviderPreferencesOrderItemsVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationProviderPreferencesOrderItemsVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesOrderItems(global::OpenRouter.ProviderName value) => new ImageGenerationProviderPreferencesOrderItems((global::OpenRouter.ProviderName?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ProviderName?(ImageGenerationProviderPreferencesOrderItems @this) => @this.ProviderName; + + /// + /// + /// + public ImageGenerationProviderPreferencesOrderItems(global::OpenRouter.ProviderName? value) + { + ProviderName = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesOrderItems FromProviderName(global::OpenRouter.ProviderName? value) => new ImageGenerationProviderPreferencesOrderItems(value); + + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesOrderItems(string value) => new ImageGenerationProviderPreferencesOrderItems((string?)value); + + /// + /// + /// + public static implicit operator string?(ImageGenerationProviderPreferencesOrderItems @this) => @this.ImageGenerationProviderPreferencesOrderItemsVariant2; + + /// + /// + /// + public ImageGenerationProviderPreferencesOrderItems(string? value) + { + ImageGenerationProviderPreferencesOrderItemsVariant2 = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesOrderItems FromImageGenerationProviderPreferencesOrderItemsVariant2(string? value) => new ImageGenerationProviderPreferencesOrderItems(value); + + /// + /// + /// + public ImageGenerationProviderPreferencesOrderItems( + global::OpenRouter.ProviderName? providerName, + string? imageGenerationProviderPreferencesOrderItemsVariant2 + ) + { + ProviderName = providerName; + ImageGenerationProviderPreferencesOrderItemsVariant2 = imageGenerationProviderPreferencesOrderItemsVariant2; + } + + /// + /// + /// + public object? Object => + ImageGenerationProviderPreferencesOrderItemsVariant2 as object ?? + ProviderName as object + ; + + /// + /// + /// + public override string? ToString() => + ProviderName?.ToValueString() ?? + ImageGenerationProviderPreferencesOrderItemsVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsProviderName && !IsImageGenerationProviderPreferencesOrderItemsVariant2 || !IsProviderName && IsImageGenerationProviderPreferencesOrderItemsVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? providerName = null, + global::System.Func? imageGenerationProviderPreferencesOrderItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName && providerName != null) + { + return providerName(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOrderItemsVariant2 && imageGenerationProviderPreferencesOrderItemsVariant2 != null) + { + return imageGenerationProviderPreferencesOrderItemsVariant2(ImageGenerationProviderPreferencesOrderItemsVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? providerName = null, + + global::System.Action? imageGenerationProviderPreferencesOrderItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOrderItemsVariant2) + { + imageGenerationProviderPreferencesOrderItemsVariant2?.Invoke(ImageGenerationProviderPreferencesOrderItemsVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? providerName = null, + global::System.Action? imageGenerationProviderPreferencesOrderItemsVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderName) + { + providerName?.Invoke(ProviderName!); + } + else if (IsImageGenerationProviderPreferencesOrderItemsVariant2) + { + imageGenerationProviderPreferencesOrderItemsVariant2?.Invoke(ImageGenerationProviderPreferencesOrderItemsVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ProviderName, + typeof(global::OpenRouter.ProviderName), + ImageGenerationProviderPreferencesOrderItemsVariant2, + typeof(string), + }; + 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(ImageGenerationProviderPreferencesOrderItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderName, other.ProviderName) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationProviderPreferencesOrderItemsVariant2, other.ImageGenerationProviderPreferencesOrderItemsVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ImageGenerationProviderPreferencesOrderItems obj1, ImageGenerationProviderPreferencesOrderItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ImageGenerationProviderPreferencesOrderItems obj1, ImageGenerationProviderPreferencesOrderItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ImageGenerationProviderPreferencesOrderItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.Json.g.cs new file mode 100644 index 00000000..0b14e107 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ImageGenerationProviderPreferencesSort + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesSort? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationProviderPreferencesSort), + jsonSerializerContext) as global::OpenRouter.ImageGenerationProviderPreferencesSort?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationProviderPreferencesSort? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ImageGenerationProviderPreferencesSort? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ImageGenerationProviderPreferencesSort), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationProviderPreferencesSort?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.g.cs new file mode 100644 index 00000000..5428a392 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationProviderPreferencesSort.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. + /// + public readonly partial struct ImageGenerationProviderPreferencesSort : global::System.IEquatable + { + /// + /// The provider sorting strategy (price, throughput, latency) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ProviderSort? ProviderSort { get; init; } +#else + public global::OpenRouter.ProviderSort? ProviderSort { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderSort))] +#endif + public bool IsProviderSort => ProviderSort != null; + + /// + /// + /// + public bool TryPickProviderSort( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ProviderSort? value) + { + value = ProviderSort; + return IsProviderSort; + } + + /// + /// + /// + public global::OpenRouter.ProviderSort PickProviderSort() => IsProviderSort + ? ProviderSort!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderSort' but the value was {ToString()}."); + + /// + /// The provider sorting strategy (price, throughput, latency) + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ProviderSortConfig? ProviderSortConfig { get; init; } +#else + public global::OpenRouter.ProviderSortConfig? ProviderSortConfig { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderSortConfig))] +#endif + public bool IsProviderSortConfig => ProviderSortConfig != null; + + /// + /// + /// + public bool TryPickProviderSortConfig( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ProviderSortConfig? value) + { + value = ProviderSortConfig; + return IsProviderSortConfig; + } + + /// + /// + /// + public global::OpenRouter.ProviderSortConfig PickProviderSortConfig() => IsProviderSortConfig + ? ProviderSortConfig! + : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderSortConfig' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesSort(global::OpenRouter.ProviderSort value) => new ImageGenerationProviderPreferencesSort((global::OpenRouter.ProviderSort?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ProviderSort?(ImageGenerationProviderPreferencesSort @this) => @this.ProviderSort; + + /// + /// + /// + public ImageGenerationProviderPreferencesSort(global::OpenRouter.ProviderSort? value) + { + ProviderSort = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesSort FromProviderSort(global::OpenRouter.ProviderSort? value) => new ImageGenerationProviderPreferencesSort(value); + + /// + /// + /// + public static implicit operator ImageGenerationProviderPreferencesSort(global::OpenRouter.ProviderSortConfig value) => new ImageGenerationProviderPreferencesSort((global::OpenRouter.ProviderSortConfig?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ProviderSortConfig?(ImageGenerationProviderPreferencesSort @this) => @this.ProviderSortConfig; + + /// + /// + /// + public ImageGenerationProviderPreferencesSort(global::OpenRouter.ProviderSortConfig? value) + { + ProviderSortConfig = value; + } + + /// + /// + /// + public static ImageGenerationProviderPreferencesSort FromProviderSortConfig(global::OpenRouter.ProviderSortConfig? value) => new ImageGenerationProviderPreferencesSort(value); + + /// + /// + /// + public ImageGenerationProviderPreferencesSort( + global::OpenRouter.ProviderSort? providerSort, + global::OpenRouter.ProviderSortConfig? providerSortConfig + ) + { + ProviderSort = providerSort; + ProviderSortConfig = providerSortConfig; + } + + /// + /// + /// + public object? Object => + ProviderSortConfig as object ?? + ProviderSort as object + ; + + /// + /// + /// + public override string? ToString() => + ProviderSort?.ToValueString() ?? + ProviderSortConfig?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsProviderSort && !IsProviderSortConfig || !IsProviderSort && IsProviderSortConfig; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? providerSort = null, + global::System.Func? providerSortConfig = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderSort && providerSort != null) + { + return providerSort(ProviderSort!); + } + else if (IsProviderSortConfig && providerSortConfig != null) + { + return providerSortConfig(ProviderSortConfig!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? providerSort = null, + + global::System.Action? providerSortConfig = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderSort) + { + providerSort?.Invoke(ProviderSort!); + } + else if (IsProviderSortConfig) + { + providerSortConfig?.Invoke(ProviderSortConfig!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? providerSort = null, + global::System.Action? providerSortConfig = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsProviderSort) + { + providerSort?.Invoke(ProviderSort!); + } + else if (IsProviderSortConfig) + { + providerSortConfig?.Invoke(ProviderSortConfig!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ProviderSort, + typeof(global::OpenRouter.ProviderSort), + ProviderSortConfig, + typeof(global::OpenRouter.ProviderSortConfig), + }; + 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(ImageGenerationProviderPreferencesSort other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSort, other.ProviderSort) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) + ; + } + + /// + /// + /// + public static bool operator ==(ImageGenerationProviderPreferencesSort obj1, ImageGenerationProviderPreferencesSort obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ImageGenerationProviderPreferencesSort obj1, ImageGenerationProviderPreferencesSort obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ImageGenerationProviderPreferencesSort o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs index ecbdaa07..e28823a4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs @@ -62,10 +62,10 @@ public sealed partial class ImageGenerationRequest public required string Prompt { get; set; } /// - /// Provider-specific passthrough configuration + /// Provider routing preferences and provider-specific passthrough configuration. /// [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public global::OpenRouter.ImageGenerationRequestProvider? Provider { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferences? Provider { get; set; } /// /// Rendering quality. Providers without a quality knob ignore this. @@ -88,7 +88,7 @@ public sealed partial class ImageGenerationRequest public int? Seed { get; set; } /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400. /// [global::System.Text.Json.Serialization.JsonPropertyName("size")] public string? Size { get; set; } @@ -133,7 +133,7 @@ public sealed partial class ImageGenerationRequest /// Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`. /// /// - /// Provider-specific passthrough configuration + /// Provider routing preferences and provider-specific passthrough configuration. /// /// /// Rendering quality. Providers without a quality knob ignore this. @@ -145,7 +145,7 @@ public sealed partial class ImageGenerationRequest /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400. /// /// /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. @@ -162,7 +162,7 @@ public ImageGenerationRequest( int? n, int? outputCompression, global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat, - global::OpenRouter.ImageGenerationRequestProvider? provider, + global::OpenRouter.ImageGenerationProviderPreferences? provider, global::OpenRouter.ImageGenerationRequestQuality? quality, global::OpenRouter.ImageGenerationRequestResolution? resolution, int? seed, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs deleted file mode 100644 index 597c2ef7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProvider - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProvider? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProvider), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProvider; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProvider? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProvider? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProvider; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs deleted file mode 100644 index b2140bda..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Provider-specific passthrough configuration - /// - public sealed partial class ImageGenerationRequestProvider - { - /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("options")] - public global::OpenRouter.ImageGenerationRequestProviderOptions? Options { 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. - /// - /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ImageGenerationRequestProvider( - global::OpenRouter.ImageGenerationRequestProviderOptions? options) - { - this.Options = options; - } - - /// - /// Initializes a new instance of the class. - /// - public ImageGenerationRequestProvider() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs deleted file mode 100644 index 822bc9de..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptions - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptions), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptions; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptions? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptions), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptions; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs deleted file mode 100644 index da2c274d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs +++ /dev/null @@ -1,1115 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. - /// - public sealed partial class ImageGenerationRequestProviderOptions - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("01ai")] - public object? x01ai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ai21")] - public object? Ai21 { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aion-labs")] - public object? AionLabs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("akashml")] - public object? Akashml { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("alibaba")] - public object? Alibaba { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("amazon-bedrock")] - public object? AmazonBedrock { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("amazon-nova")] - public object? AmazonNova { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ambient")] - public object? Ambient { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("anthropic")] - public object? Anthropic { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("anyscale")] - public object? Anyscale { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("arcee-ai")] - public object? ArceeAi { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("atlas-cloud")] - public object? AtlasCloud { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("atoma")] - public object? Atoma { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("avian")] - public object? Avian { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("azure")] - public object? Azure { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("baidu")] - public object? Baidu { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseten")] - public object? Baseten { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("black-forest-labs")] - public object? BlackForestLabs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("byteplus")] - public object? Byteplus { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("centml")] - public object? Centml { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cerebras")] - public object? Cerebras { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chutes")] - public object? Chutes { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cirrascale")] - public object? Cirrascale { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("clarifai")] - public object? Clarifai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cloudflare")] - public object? Cloudflare { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cohere")] - public object? Cohere { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("crofai")] - public object? Crofai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("crucible")] - public object? Crucible { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("crusoe")] - public object? Crusoe { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("darkbloom")] - public object? Darkbloom { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("decart")] - public object? Decart { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("deepinfra")] - public object? Deepinfra { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("deepseek")] - public object? Deepseek { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dekallm")] - public object? Dekallm { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("digitalocean")] - public object? Digitalocean { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enfer")] - public object? Enfer { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fake-provider")] - public object? FakeProvider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("featherless")] - public object? Featherless { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fireworks")] - public object? Fireworks { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("friendli")] - public object? Friendli { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("gmicloud")] - public object? Gmicloud { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google-ai-studio")] - public object? GoogleAiStudio { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("google-vertex")] - public object? GoogleVertex { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("gopomelo")] - public object? Gopomelo { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groq")] - public object? Groq { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("heygen")] - public object? Heygen { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("huggingface")] - public object? Huggingface { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic")] - public object? Hyperbolic { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic-quantized")] - public object? HyperbolicQuantized { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inception")] - public object? Inception { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inceptron")] - public object? Inceptron { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inferact-vllm")] - public object? InferactVllm { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inference-net")] - public object? InferenceNet { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("infermatic")] - public object? Infermatic { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inflection")] - public object? Inflection { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inocloud")] - public object? Inocloud { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("io-net")] - public object? IoNet { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ionstream")] - public object? Ionstream { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("klusterai")] - public object? Klusterai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lambda")] - public object? Lambda { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lepton")] - public object? Lepton { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("liquid")] - public object? Liquid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lynn")] - public object? Lynn { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lynn-private")] - public object? LynnPrivate { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mancer")] - public object? Mancer { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mancer-old")] - public object? MancerOld { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mara")] - public object? Mara { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("minimax")] - public object? Minimax { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mistral")] - public object? Mistral { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modal")] - public object? Modal { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelrun")] - public object? Modelrun { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modular")] - public object? Modular { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("moonshotai")] - public object? Moonshotai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("morph")] - public object? Morph { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ncompass")] - public object? Ncompass { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nebius")] - public object? Nebius { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nex-agi")] - public object? NexAgi { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextbit")] - public object? Nextbit { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nineteen")] - public object? Nineteen { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("novita")] - public object? Novita { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nvidia")] - public object? Nvidia { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("octoai")] - public object? Octoai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("open-inference")] - public object? OpenInference { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("openai")] - public object? Openai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parasail")] - public object? Parasail { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("perceptron")] - public object? Perceptron { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("perplexity")] - public object? Perplexity { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phala")] - public object? Phala { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("poolside")] - public object? Poolside { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("quiver")] - public object? Quiver { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recraft")] - public object? Recraft { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("recursal")] - public object? Recursal { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reflection")] - public object? Reflection { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reka")] - public object? Reka { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("relace")] - public object? Relace { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("replicate")] - public object? Replicate { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sakana-ai")] - public object? SakanaAi { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sambanova")] - public object? Sambanova { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sambanova-cloaked")] - public object? SambanovaCloaked { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public object? Seed { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sf-compute")] - public object? SfCompute { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("siliconflow")] - public object? Siliconflow { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceful")] - public object? Sourceful { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stealth")] - public object? Stealth { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stepfun")] - public object? Stepfun { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("streamlake")] - public object? Streamlake { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("switchpoint")] - public object? Switchpoint { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("targon")] - public object? Targon { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tenstorrent")] - public object? Tenstorrent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("together")] - public object? Together { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("together-lite")] - public object? TogetherLite { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ubicloud")] - public object? Ubicloud { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("upstage")] - public object? Upstage { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("venice")] - public object? Venice { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wafer")] - public object? Wafer { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wandb")] - public object? Wandb { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("xai")] - public object? Xai { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("xiaomi")] - public object? Xiaomi { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("z-ai")] - public object? ZAi { 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 ImageGenerationRequestProviderOptions( - object? x01ai, - object? ai21, - object? aionLabs, - object? akashml, - object? alibaba, - object? amazonBedrock, - object? amazonNova, - object? ambient, - object? anthropic, - object? anyscale, - object? arceeAi, - object? atlasCloud, - object? atoma, - object? avian, - object? azure, - object? baidu, - object? baseten, - object? blackForestLabs, - object? byteplus, - object? centml, - object? cerebras, - object? chutes, - object? cirrascale, - object? clarifai, - object? cloudflare, - object? cohere, - object? crofai, - object? crucible, - object? crusoe, - object? darkbloom, - object? decart, - object? deepinfra, - object? deepseek, - object? dekallm, - object? digitalocean, - object? enfer, - object? fakeProvider, - object? featherless, - object? fireworks, - object? friendli, - object? gmicloud, - object? googleAiStudio, - object? googleVertex, - object? gopomelo, - object? groq, - object? heygen, - object? huggingface, - object? hyperbolic, - object? hyperbolicQuantized, - object? inception, - object? inceptron, - object? inferactVllm, - object? inferenceNet, - object? infermatic, - object? inflection, - object? inocloud, - object? ioNet, - object? ionstream, - object? klusterai, - object? lambda, - object? lepton, - object? liquid, - object? lynn, - object? lynnPrivate, - object? mancer, - object? mancerOld, - object? mara, - object? meta, - object? minimax, - object? mistral, - object? modal, - object? modelrun, - object? modular, - object? moonshotai, - object? morph, - object? ncompass, - object? nebius, - object? nexAgi, - object? nextbit, - object? nineteen, - object? novita, - object? nvidia, - object? octoai, - object? openInference, - object? openai, - object? parasail, - object? perceptron, - object? perplexity, - object? phala, - object? poolside, - object? quiver, - object? recraft, - object? recursal, - object? reflection, - object? reka, - object? relace, - object? replicate, - object? sakanaAi, - object? sambanova, - object? sambanovaCloaked, - object? seed, - object? sfCompute, - object? siliconflow, - object? sourceful, - object? stealth, - object? stepfun, - object? streamlake, - object? switchpoint, - object? targon, - object? tenstorrent, - object? together, - object? togetherLite, - object? ubicloud, - object? upstage, - object? venice, - object? wafer, - object? wandb, - object? xai, - object? xiaomi, - object? zAi) - { - this.x01ai = x01ai; - this.Ai21 = ai21; - this.AionLabs = aionLabs; - this.Akashml = akashml; - this.Alibaba = alibaba; - this.AmazonBedrock = amazonBedrock; - this.AmazonNova = amazonNova; - this.Ambient = ambient; - this.Anthropic = anthropic; - this.Anyscale = anyscale; - this.ArceeAi = arceeAi; - this.AtlasCloud = atlasCloud; - this.Atoma = atoma; - this.Avian = avian; - this.Azure = azure; - this.Baidu = baidu; - this.Baseten = baseten; - this.BlackForestLabs = blackForestLabs; - this.Byteplus = byteplus; - this.Centml = centml; - this.Cerebras = cerebras; - this.Chutes = chutes; - this.Cirrascale = cirrascale; - this.Clarifai = clarifai; - this.Cloudflare = cloudflare; - this.Cohere = cohere; - this.Crofai = crofai; - this.Crucible = crucible; - this.Crusoe = crusoe; - this.Darkbloom = darkbloom; - this.Decart = decart; - this.Deepinfra = deepinfra; - this.Deepseek = deepseek; - this.Dekallm = dekallm; - this.Digitalocean = digitalocean; - this.Enfer = enfer; - this.FakeProvider = fakeProvider; - this.Featherless = featherless; - this.Fireworks = fireworks; - this.Friendli = friendli; - this.Gmicloud = gmicloud; - this.GoogleAiStudio = googleAiStudio; - this.GoogleVertex = googleVertex; - this.Gopomelo = gopomelo; - this.Groq = groq; - this.Heygen = heygen; - this.Huggingface = huggingface; - this.Hyperbolic = hyperbolic; - this.HyperbolicQuantized = hyperbolicQuantized; - this.Inception = inception; - this.Inceptron = inceptron; - this.InferactVllm = inferactVllm; - this.InferenceNet = inferenceNet; - this.Infermatic = infermatic; - this.Inflection = inflection; - this.Inocloud = inocloud; - this.IoNet = ioNet; - this.Ionstream = ionstream; - this.Klusterai = klusterai; - this.Lambda = lambda; - this.Lepton = lepton; - this.Liquid = liquid; - this.Lynn = lynn; - this.LynnPrivate = lynnPrivate; - this.Mancer = mancer; - this.MancerOld = mancerOld; - this.Mara = mara; - this.Meta = meta; - this.Minimax = minimax; - this.Mistral = mistral; - this.Modal = modal; - this.Modelrun = modelrun; - this.Modular = modular; - this.Moonshotai = moonshotai; - this.Morph = morph; - this.Ncompass = ncompass; - this.Nebius = nebius; - this.NexAgi = nexAgi; - this.Nextbit = nextbit; - this.Nineteen = nineteen; - this.Novita = novita; - this.Nvidia = nvidia; - this.Octoai = octoai; - this.OpenInference = openInference; - this.Openai = openai; - this.Parasail = parasail; - this.Perceptron = perceptron; - this.Perplexity = perplexity; - this.Phala = phala; - this.Poolside = poolside; - this.Quiver = quiver; - this.Recraft = recraft; - this.Recursal = recursal; - this.Reflection = reflection; - this.Reka = reka; - this.Relace = relace; - this.Replicate = replicate; - this.SakanaAi = sakanaAi; - this.Sambanova = sambanova; - this.SambanovaCloaked = sambanovaCloaked; - this.Seed = seed; - this.SfCompute = sfCompute; - this.Siliconflow = siliconflow; - this.Sourceful = sourceful; - this.Stealth = stealth; - this.Stepfun = stepfun; - this.Streamlake = streamlake; - this.Switchpoint = switchpoint; - this.Targon = targon; - this.Tenstorrent = tenstorrent; - this.Together = together; - this.TogetherLite = togetherLite; - this.Ubicloud = ubicloud; - this.Upstage = upstage; - this.Venice = venice; - this.Wafer = wafer; - this.Wandb = wandb; - this.Xai = xai; - this.Xiaomi = xiaomi; - this.ZAi = zAi; - } - - /// - /// Initializes a new instance of the class. - /// - public ImageGenerationRequestProviderOptions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs deleted file mode 100644 index e95953d1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAi21 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi21? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAi21), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi21; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi21? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAi21? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAi21), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi21; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs deleted file mode 100644 index af890e19..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAi21 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAi212.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.Json.g.cs deleted file mode 100644 index a625c056..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAi212 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi212? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAi212), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi212; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi212? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAi212? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAi212), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi212; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs deleted file mode 100644 index ec65645e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAi212 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs deleted file mode 100644 index ddc4fa6b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAionLabs - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAionLabs? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAionLabs), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs deleted file mode 100644 index 4860905f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAionLabs - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs deleted file mode 100644 index e873ec94..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAionLabs2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAionLabs2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAionLabs2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs deleted file mode 100644 index e2cc3391..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAionLabs2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs deleted file mode 100644 index bd98fb6e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAkashml - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAkashml? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAkashml), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs deleted file mode 100644 index 854af3db..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAkashml - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs deleted file mode 100644 index 570c811a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAkashml2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAkashml2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAkashml2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs deleted file mode 100644 index 92e7cec7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAkashml2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs deleted file mode 100644 index 50cf180f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAlibaba - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAlibaba? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAlibaba), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs deleted file mode 100644 index 108acf3c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAlibaba - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs deleted file mode 100644 index af6874bb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAlibaba2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAlibaba2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAlibaba2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs deleted file mode 100644 index 3751e441..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAlibaba2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs deleted file mode 100644 index 7d72fb13..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmazonBedrock), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs deleted file mode 100644 index 8e10af9a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs deleted file mode 100644 index 72b870f2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmazonBedrock2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs deleted file mode 100644 index d69c144b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs deleted file mode 100644 index b10eca72..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonNova? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmazonNova), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs deleted file mode 100644 index 8c0428a0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs deleted file mode 100644 index ff0deb97..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmazonNova2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmazonNova2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs deleted file mode 100644 index ed862e1f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs deleted file mode 100644 index c43bb42f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmbient - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmbient? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmbient), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs deleted file mode 100644 index 3e21c2d6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmbient - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs deleted file mode 100644 index 2b75f395..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAmbient2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAmbient2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAmbient2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs deleted file mode 100644 index 1635d487..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAmbient2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs deleted file mode 100644 index 014c3b76..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAnthropic - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAnthropic? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAnthropic), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs deleted file mode 100644 index f4dd19dc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAnthropic - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs deleted file mode 100644 index 9832902a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAnthropic2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAnthropic2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAnthropic2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs deleted file mode 100644 index a9b4153f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAnthropic2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs deleted file mode 100644 index f34ab727..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAnyscale - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAnyscale? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAnyscale), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs deleted file mode 100644 index 8a882b20..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAnyscale - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs deleted file mode 100644 index ac37e77a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAnyscale2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAnyscale2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAnyscale2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs deleted file mode 100644 index 26262492..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAnyscale2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs deleted file mode 100644 index b5a94a1a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsArceeAi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsArceeAi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsArceeAi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs deleted file mode 100644 index a7de87da..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsArceeAi - { - - /// - /// 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.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs deleted file mode 100644 index b4a7f6ef..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsArceeAi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsArceeAi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsArceeAi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs deleted file mode 100644 index 656dd737..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsArceeAi2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs deleted file mode 100644 index 76ea62c6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAtlasCloud? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAtlasCloud), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs deleted file mode 100644 index ad0b83e6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs deleted file mode 100644 index e1b3a197..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAtlasCloud2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAtlasCloud2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs deleted file mode 100644 index 694c1442..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs deleted file mode 100644 index 07e7ac29..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAtoma - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAtoma? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAtoma), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs deleted file mode 100644 index 7a05d623..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAtoma - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs deleted file mode 100644 index 4116af7f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAtoma2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAtoma2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAtoma2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs deleted file mode 100644 index eab3e695..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAtoma2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAvian.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.Json.g.cs deleted file mode 100644 index e2b5f42c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAvian - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAvian), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAvian? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAvian), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs deleted file mode 100644 index e9092969..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAvian - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs deleted file mode 100644 index 768d7534..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAvian2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAvian2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAvian2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs deleted file mode 100644 index 7baabfe7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAvian2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAzure.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.Json.g.cs deleted file mode 100644 index beadd73c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAzure - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAzure), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAzure? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAzure), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs deleted file mode 100644 index 704b173f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsAzure - { - - /// - /// 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.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs deleted file mode 100644 index c97d47a2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsAzure2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsAzure2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsAzure2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs deleted file mode 100644 index 1b155ab8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsAzure2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs deleted file mode 100644 index d669c6b2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBaidu - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBaidu? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBaidu), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs deleted file mode 100644 index 2361c8b0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsBaidu - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs deleted file mode 100644 index d4a61522..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBaidu2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBaidu2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBaidu2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs deleted file mode 100644 index 91fe6dd2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsBaidu2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs deleted file mode 100644 index e87ed76e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBaseten - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBaseten? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBaseten), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs deleted file mode 100644 index fe7f7e78..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsBaseten - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs deleted file mode 100644 index c41dc08a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBaseten2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBaseten2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBaseten2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs deleted file mode 100644 index 5fffefa6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsBaseten2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs deleted file mode 100644 index b8efa9f4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBlackForestLabs), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs deleted file mode 100644 index 62515c87..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs - { - - /// - /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs deleted file mode 100644 index 6057b725..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsBlackForestLabs2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs deleted file mode 100644 index cb682ec6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs deleted file mode 100644 index 47f8fdb0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsByteplus - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsByteplus? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsByteplus), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs deleted file mode 100644 index b0e24fd7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsByteplus - { - - /// - /// 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.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs deleted file mode 100644 index 74b2a841..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsByteplus2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsByteplus2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsByteplus2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs deleted file mode 100644 index c882a6d6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsByteplus2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCentml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.Json.g.cs deleted file mode 100644 index 3ce2bbfe..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCentml - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCentml), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCentml? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCentml), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs deleted file mode 100644 index 2629509b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCentml - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs deleted file mode 100644 index 22e5f11a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCentml2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCentml2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCentml2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs deleted file mode 100644 index f7176f98..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCentml2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs deleted file mode 100644 index 4e11a770..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCerebras - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCerebras? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCerebras), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs deleted file mode 100644 index bcae5ec0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCerebras - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs deleted file mode 100644 index 638bc603..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCerebras2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCerebras2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCerebras2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs deleted file mode 100644 index 1f48eaec..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCerebras2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsChutes.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.Json.g.cs deleted file mode 100644 index 8df36123..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsChutes - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsChutes), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsChutes? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsChutes), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs deleted file mode 100644 index 57a14e14..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsChutes - { - - /// - /// 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.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs deleted file mode 100644 index 7542499f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsChutes2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsChutes2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsChutes2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs deleted file mode 100644 index 7ab9f825..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsChutes2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs deleted file mode 100644 index 2802c6be..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCirrascale - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCirrascale? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCirrascale), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs deleted file mode 100644 index 8bf121dd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCirrascale - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs deleted file mode 100644 index 3dfeeb7e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCirrascale2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCirrascale2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCirrascale2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs deleted file mode 100644 index 778fd09d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCirrascale2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs deleted file mode 100644 index d50e3744..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsClarifai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsClarifai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsClarifai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs deleted file mode 100644 index 3545cf5d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsClarifai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs deleted file mode 100644 index cb52e7e5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsClarifai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsClarifai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsClarifai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs deleted file mode 100644 index ea8ae1a3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsClarifai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs deleted file mode 100644 index 1a2d2f18..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCloudflare - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCloudflare? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCloudflare), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs deleted file mode 100644 index 9be82765..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCloudflare - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs deleted file mode 100644 index 6f7dd72e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCloudflare2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCloudflare2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCloudflare2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs deleted file mode 100644 index 288c7b6b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCloudflare2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCohere.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.Json.g.cs deleted file mode 100644 index 9b96d10c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCohere - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCohere), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCohere? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCohere), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs deleted file mode 100644 index 22b0696f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCohere - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs deleted file mode 100644 index a9b21419..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCohere2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCohere2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCohere2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs deleted file mode 100644 index 25b29842..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCohere2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs deleted file mode 100644 index ae864bf1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrofai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrofai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrofai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs deleted file mode 100644 index 0969a49d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrofai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs deleted file mode 100644 index 80d2b37b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrofai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrofai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrofai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs deleted file mode 100644 index 98a6a0f0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrofai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs deleted file mode 100644 index c71121c0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrucible - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrucible? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrucible), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs deleted file mode 100644 index 34319ed9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrucible - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs deleted file mode 100644 index 3ae41c00..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrucible2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrucible2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrucible2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs deleted file mode 100644 index 7879df73..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrucible2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs deleted file mode 100644 index db3a417c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrusoe - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrusoe? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrusoe), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs deleted file mode 100644 index d959d9af..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrusoe - { - - /// - /// 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.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs deleted file mode 100644 index ffd94b89..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsCrusoe2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsCrusoe2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsCrusoe2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs deleted file mode 100644 index df86028d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsCrusoe2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs deleted file mode 100644 index 44af8208..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDarkbloom? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDarkbloom), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs deleted file mode 100644 index 8b96ca47..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs deleted file mode 100644 index 1c64145d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDarkbloom2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDarkbloom2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs deleted file mode 100644 index ba92b9b8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDecart.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.Json.g.cs deleted file mode 100644 index 41ad64ee..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDecart - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDecart), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDecart? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDecart), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs deleted file mode 100644 index 07948531..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDecart - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs deleted file mode 100644 index 2d751a0e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDecart2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDecart2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDecart2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs deleted file mode 100644 index e25a5a58..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDecart2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs deleted file mode 100644 index e1208728..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepinfra? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDeepinfra), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs deleted file mode 100644 index b2553965..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs deleted file mode 100644 index 5c5bd51e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepinfra2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDeepinfra2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs deleted file mode 100644 index 77ec320f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs deleted file mode 100644 index df137a58..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDeepseek - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepseek? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDeepseek), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs deleted file mode 100644 index 5aec5503..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDeepseek - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs deleted file mode 100644 index a7155df2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDeepseek2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDeepseek2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDeepseek2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs deleted file mode 100644 index 0f1b06a1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDeepseek2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs deleted file mode 100644 index ab94b8d5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDekallm - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDekallm? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDekallm), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs deleted file mode 100644 index 91d437f9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDekallm - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs deleted file mode 100644 index c47fc8c8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDekallm2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDekallm2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDekallm2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs deleted file mode 100644 index a3fef7bd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDekallm2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs deleted file mode 100644 index b9f142dc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDigitalocean? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDigitalocean), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs deleted file mode 100644 index da49b192..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean - { - - /// - /// 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.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs deleted file mode 100644 index 9e440bdd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsDigitalocean2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsDigitalocean2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs deleted file mode 100644 index c9c85202..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs deleted file mode 100644 index 9d58ed6d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsEnfer - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsEnfer? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsEnfer), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs deleted file mode 100644 index a0f6d655..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsEnfer - { - - /// - /// 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.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs deleted file mode 100644 index 62a52088..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsEnfer2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsEnfer2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsEnfer2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs deleted file mode 100644 index 2802246a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsEnfer2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs deleted file mode 100644 index 01a3f631..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFakeProvider? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFakeProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs deleted file mode 100644 index 22f844c7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs deleted file mode 100644 index 63ddf270..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFakeProvider2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFakeProvider2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs deleted file mode 100644 index f0a8525b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs deleted file mode 100644 index bff8daf8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFeatherless - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFeatherless? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFeatherless), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs deleted file mode 100644 index e933d684..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsFeatherless - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs deleted file mode 100644 index 4b0c3150..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFeatherless2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFeatherless2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFeatherless2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs deleted file mode 100644 index 48bab087..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsFeatherless2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs deleted file mode 100644 index 871f270c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFireworks - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFireworks? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFireworks), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs deleted file mode 100644 index 1650ad96..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsFireworks - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs deleted file mode 100644 index d1893281..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFireworks2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFireworks2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFireworks2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs deleted file mode 100644 index 5f733da3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsFireworks2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs deleted file mode 100644 index 1b30977f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFriendli - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFriendli? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFriendli), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs deleted file mode 100644 index d518b4af..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsFriendli - { - - /// - /// 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.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs deleted file mode 100644 index 3b8b9c2a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsFriendli2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsFriendli2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsFriendli2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs deleted file mode 100644 index ccc623f8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsFriendli2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs deleted file mode 100644 index ad736797..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGmicloud - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGmicloud? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGmicloud), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs deleted file mode 100644 index 8599bbbd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsGmicloud - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs deleted file mode 100644 index ae37f1c1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGmicloud2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGmicloud2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGmicloud2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs deleted file mode 100644 index 1fab9deb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsGmicloud2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs deleted file mode 100644 index 88b05bd3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGoogleAiStudio), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs deleted file mode 100644 index e2e3a069..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs deleted file mode 100644 index 233acb23..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs deleted file mode 100644 index 7710bed4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs deleted file mode 100644 index cd0d14c9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleVertex? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGoogleVertex), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs deleted file mode 100644 index b2079d46..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs deleted file mode 100644 index f000184e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGoogleVertex2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGoogleVertex2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs deleted file mode 100644 index 3dcd6949..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs deleted file mode 100644 index 7c3007af..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGopomelo - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGopomelo? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGopomelo), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs deleted file mode 100644 index 75ce77cb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsGopomelo - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs deleted file mode 100644 index 2473839c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGopomelo2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGopomelo2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGopomelo2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs deleted file mode 100644 index b095f840..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsGopomelo2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGroq.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.Json.g.cs deleted file mode 100644 index b9c23d22..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGroq - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGroq), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGroq? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGroq), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs deleted file mode 100644 index 193bff1f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsGroq - { - - /// - /// 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.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs deleted file mode 100644 index 68c33843..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsGroq2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsGroq2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsGroq2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs deleted file mode 100644 index e305a73c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsGroq2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHeygen.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen.Json.g.cs deleted file mode 100644 index f9b86558..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHeygen - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHeygen? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHeygen), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen.g.cs deleted file mode 100644 index acba96b4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsHeygen - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHeygen2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen2.Json.g.cs deleted file mode 100644 index 0c3e769a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHeygen2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHeygen2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHeygen2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHeygen2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen2.g.cs deleted file mode 100644 index fbf905b1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHeygen2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsHeygen2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs deleted file mode 100644 index 9c13e2b1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHuggingface - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHuggingface? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHuggingface), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs deleted file mode 100644 index bf013071..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsHuggingface - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs deleted file mode 100644 index 2a6d416c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHuggingface2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHuggingface2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHuggingface2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs deleted file mode 100644 index 5b34a101..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsHuggingface2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs deleted file mode 100644 index b0e4bb69..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolic? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHyperbolic), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs deleted file mode 100644 index bcc00dcb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs deleted file mode 100644 index 2b85a774..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolic2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHyperbolic2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs deleted file mode 100644 index 1bef98ca..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs deleted file mode 100644 index 94c29df8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs deleted file mode 100644 index d2714d4a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized - { - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs deleted file mode 100644 index 0d70f48a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs deleted file mode 100644 index 9feb840e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInception.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.Json.g.cs deleted file mode 100644 index fc1c18be..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInception - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInception), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInception? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInception), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs deleted file mode 100644 index 183a46ab..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInception - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInception2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.Json.g.cs deleted file mode 100644 index d3826534..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInception2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInception2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInception2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInception2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs deleted file mode 100644 index bb433b58..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInception2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs deleted file mode 100644 index bc629451..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInceptron - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInceptron? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInceptron), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs deleted file mode 100644 index 58b35cf0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInceptron - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs deleted file mode 100644 index dd8a6fb7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInceptron2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInceptron2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInceptron2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs deleted file mode 100644 index a0af884d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInceptron2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInferactVllm.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm.Json.g.cs deleted file mode 100644 index 4516706c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInferactVllm - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInferactVllm? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInferactVllm), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm.g.cs deleted file mode 100644 index 28e8f1ca..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInferactVllm - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInferactVllm2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm2.Json.g.cs deleted file mode 100644 index c7a9dd59..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInferactVllm2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInferactVllm2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInferactVllm2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm2.g.cs deleted file mode 100644 index 2adfd858..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferactVllm2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInferactVllm2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs deleted file mode 100644 index 2abf8444..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInferenceNet? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInferenceNet), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs deleted file mode 100644 index 7431cf55..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs deleted file mode 100644 index 10636105..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInferenceNet2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInferenceNet2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs deleted file mode 100644 index 9d881c02..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs deleted file mode 100644 index 339f9c03..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInfermatic - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInfermatic? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInfermatic), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs deleted file mode 100644 index 4dfb38bf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInfermatic - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs deleted file mode 100644 index 42ec9a36..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInfermatic2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInfermatic2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInfermatic2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs deleted file mode 100644 index bd46af07..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInfermatic2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.Json.g.cs deleted file mode 100644 index da3a629b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInflection - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInflection), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInflection? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInflection), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs deleted file mode 100644 index 3147ad9f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInflection - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs deleted file mode 100644 index e503c2d7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInflection2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInflection2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInflection2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs deleted file mode 100644 index 28792f01..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInflection2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs deleted file mode 100644 index dfc8aa9c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInocloud - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInocloud? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInocloud), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs deleted file mode 100644 index d73f0676..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsInocloud - { - - /// - /// 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.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs deleted file mode 100644 index 099a3ab1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsInocloud2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsInocloud2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsInocloud2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs deleted file mode 100644 index 3fbeb55d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsInocloud2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs deleted file mode 100644 index 4ce96eb3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsIoNet - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsIoNet? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsIoNet), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs deleted file mode 100644 index 38dc3c06..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsIoNet - { - - /// - /// 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.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs deleted file mode 100644 index 3ea01858..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsIoNet2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsIoNet2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsIoNet2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs deleted file mode 100644 index bf092636..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsIoNet2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs deleted file mode 100644 index 4b53ed9a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsIonstream - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsIonstream? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsIonstream), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs deleted file mode 100644 index 68944119..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsIonstream - { - - /// - /// 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.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs deleted file mode 100644 index 2da4fe7b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsIonstream2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsIonstream2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsIonstream2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs deleted file mode 100644 index 7a25ef5b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsIonstream2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs deleted file mode 100644 index 312855c4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsKlusterai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsKlusterai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsKlusterai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs deleted file mode 100644 index 67ec890b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsKlusterai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs deleted file mode 100644 index 0b415c2f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsKlusterai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsKlusterai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsKlusterai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs deleted file mode 100644 index e6d6dd90..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsKlusterai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLambda.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.Json.g.cs deleted file mode 100644 index d3daf0c1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLambda - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLambda), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLambda? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLambda), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs deleted file mode 100644 index 1f0078d9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsLambda - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs deleted file mode 100644 index 8b7b8384..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLambda2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLambda2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLambda2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs deleted file mode 100644 index 1b988bf5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsLambda2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLepton.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.Json.g.cs deleted file mode 100644 index 2402a268..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLepton - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLepton), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLepton? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLepton), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs deleted file mode 100644 index 4eca58b9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsLepton - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs deleted file mode 100644 index 571c3443..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLepton2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLepton2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLepton2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs deleted file mode 100644 index 4ec00f7d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsLepton2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs deleted file mode 100644 index 7c3500e6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLiquid - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLiquid? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLiquid), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs deleted file mode 100644 index fc4fbc2e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsLiquid - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs deleted file mode 100644 index 96b63d23..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLiquid2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLiquid2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLiquid2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs deleted file mode 100644 index 78f73c06..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsLiquid2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLynn.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.Json.g.cs deleted file mode 100644 index 7685aac7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLynn - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynn), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLynn? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLynn), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs deleted file mode 100644 index 53958028..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsLynn - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs deleted file mode 100644 index fec9ed83..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLynn2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLynn2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLynn2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs deleted file mode 100644 index d5d450ba..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsLynn2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs deleted file mode 100644 index 74229ac9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLynnPrivate? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLynnPrivate), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs deleted file mode 100644 index a0cba6d5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate - { - - /// - /// 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.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs deleted file mode 100644 index ced111df..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsLynnPrivate2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsLynnPrivate2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs deleted file mode 100644 index 749dae59..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMancer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.Json.g.cs deleted file mode 100644 index e6fbc922..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMancer - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancer), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMancer? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMancer), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs deleted file mode 100644 index 6cc24bc8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMancer - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs deleted file mode 100644 index 96b19827..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMancer2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMancer2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMancer2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs deleted file mode 100644 index 4e61c0ea..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMancer2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs deleted file mode 100644 index 84357e07..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMancerOld - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMancerOld? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMancerOld), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs deleted file mode 100644 index 00362886..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMancerOld - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs deleted file mode 100644 index c795eb00..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMancerOld2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMancerOld2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMancerOld2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs deleted file mode 100644 index ea89f1f3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMancerOld2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMara.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.Json.g.cs deleted file mode 100644 index 851aed25..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMara - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMara), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMara? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMara), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs deleted file mode 100644 index 967f1494..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMara - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMara2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.Json.g.cs deleted file mode 100644 index 9c2d23b2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMara2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMara2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMara2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMara2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs deleted file mode 100644 index 7cd03630..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMara2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMeta.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.Json.g.cs deleted file mode 100644 index 39c5af94..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMeta - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMeta), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMeta? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMeta), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs deleted file mode 100644 index 5592f60d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMeta - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs deleted file mode 100644 index 61fd29bb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMeta2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMeta2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMeta2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs deleted file mode 100644 index 4c8dc884..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMeta2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs deleted file mode 100644 index b96a900c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMinimax - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMinimax? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMinimax), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs deleted file mode 100644 index d96e70bc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMinimax - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs deleted file mode 100644 index f8bc2ac2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMinimax2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMinimax2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMinimax2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs deleted file mode 100644 index 17b06ec1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMinimax2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMistral.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.Json.g.cs deleted file mode 100644 index f93f6187..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMistral - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMistral), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMistral? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMistral), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs deleted file mode 100644 index 20f23e4d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMistral - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs deleted file mode 100644 index eb353a64..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMistral2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMistral2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMistral2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs deleted file mode 100644 index 140d1ee5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMistral2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.Json.g.cs deleted file mode 100644 index ea8ab6eb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModal - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModal), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModal? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModal), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs deleted file mode 100644 index b872331e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsModal - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.Json.g.cs deleted file mode 100644 index 839cd431..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModal2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModal2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModal2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModal2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs deleted file mode 100644 index 5b9e176e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsModal2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs deleted file mode 100644 index fe350271..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModelrun - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModelrun? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModelrun), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs deleted file mode 100644 index 629f1fcb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsModelrun - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs deleted file mode 100644 index 95d387c6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModelrun2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModelrun2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModelrun2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs deleted file mode 100644 index dca78e98..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsModelrun2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModular.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.Json.g.cs deleted file mode 100644 index 588e6766..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModular - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModular), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModular? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModular), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs deleted file mode 100644 index cf78939b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsModular - { - - /// - /// 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.ImageGenerationRequestProviderOptionsModular2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.Json.g.cs deleted file mode 100644 index 3fe7328b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsModular2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModular2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsModular2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsModular2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs deleted file mode 100644 index d74aa94e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsModular2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs deleted file mode 100644 index 827fa817..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMoonshotai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMoonshotai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs deleted file mode 100644 index 5f41182e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs deleted file mode 100644 index 5eec771d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMoonshotai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMoonshotai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs deleted file mode 100644 index 23191d83..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMorph.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.Json.g.cs deleted file mode 100644 index d06e6966..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMorph - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMorph), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMorph? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMorph), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs deleted file mode 100644 index 1db6c52d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsMorph - { - - /// - /// 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.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs deleted file mode 100644 index 506ea473..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsMorph2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsMorph2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsMorph2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs deleted file mode 100644 index ecbd997f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsMorph2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs deleted file mode 100644 index c4076b3c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNcompass - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNcompass? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNcompass), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs deleted file mode 100644 index b9b2fd98..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNcompass - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs deleted file mode 100644 index 13073954..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNcompass2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNcompass2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNcompass2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs deleted file mode 100644 index a8f239c9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNcompass2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNebius.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.Json.g.cs deleted file mode 100644 index 41675c2a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNebius - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNebius), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNebius? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNebius), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs deleted file mode 100644 index dd1fadfd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNebius - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs deleted file mode 100644 index 1efd2aa5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNebius2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNebius2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNebius2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs deleted file mode 100644 index 5f1a9f0b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNebius2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs deleted file mode 100644 index 3d91b44e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNexAgi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNexAgi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNexAgi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs deleted file mode 100644 index 90af6b5e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNexAgi - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs deleted file mode 100644 index 515a6742..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNexAgi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNexAgi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNexAgi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs deleted file mode 100644 index 36f3ce74..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNexAgi2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs deleted file mode 100644 index fb208a68..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNextbit - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNextbit? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNextbit), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs deleted file mode 100644 index db65f1ad..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNextbit - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs deleted file mode 100644 index 5b829016..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNextbit2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNextbit2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNextbit2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs deleted file mode 100644 index 31217a8e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNextbit2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs deleted file mode 100644 index fea0732e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNineteen - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNineteen? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNineteen), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs deleted file mode 100644 index b72d9c28..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNineteen - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs deleted file mode 100644 index 93c63454..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNineteen2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNineteen2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNineteen2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs deleted file mode 100644 index a6cc6759..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNineteen2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNovita.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.Json.g.cs deleted file mode 100644 index d217ed63..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNovita - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNovita), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNovita? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNovita), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs deleted file mode 100644 index 11779bd7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNovita - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs deleted file mode 100644 index 9a8ef476..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNovita2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNovita2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNovita2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs deleted file mode 100644 index 6c8b6adc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNovita2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs deleted file mode 100644 index db409552..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNvidia - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNvidia? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNvidia), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs deleted file mode 100644 index 7c9d0651..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsNvidia - { - - /// - /// 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.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs deleted file mode 100644 index c51e59f5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsNvidia2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsNvidia2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsNvidia2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs deleted file mode 100644 index 9ad59717..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsNvidia2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs deleted file mode 100644 index 1cb33cd4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOctoai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOctoai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOctoai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs deleted file mode 100644 index 4272a0a0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsOctoai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs deleted file mode 100644 index cfcdadc9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOctoai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOctoai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOctoai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs deleted file mode 100644 index ad812c43..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsOctoai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs deleted file mode 100644 index 6f062837..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOpenInference - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenInference? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOpenInference), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs deleted file mode 100644 index c0e166a7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsOpenInference - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs deleted file mode 100644 index 20af5563..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOpenInference2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenInference2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOpenInference2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs deleted file mode 100644 index a3b9735b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsOpenInference2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs deleted file mode 100644 index b35079da..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOpenai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOpenai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs deleted file mode 100644 index 7ebb8479..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsOpenai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs deleted file mode 100644 index 943a5dc0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsOpenai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsOpenai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsOpenai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs deleted file mode 100644 index 4189b454..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsOpenai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsParasail.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.Json.g.cs deleted file mode 100644 index 2e785567..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsParasail - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsParasail), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsParasail? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsParasail), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs deleted file mode 100644 index a436f003..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsParasail - { - - /// - /// 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.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs deleted file mode 100644 index 486c256f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsParasail2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsParasail2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsParasail2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs deleted file mode 100644 index 71d36e0a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsParasail2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs deleted file mode 100644 index 4c14f6fa..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPerceptron - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPerceptron? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPerceptron), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs deleted file mode 100644 index de0f8818..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsPerceptron - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs deleted file mode 100644 index c2dc6e8b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPerceptron2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPerceptron2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPerceptron2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs deleted file mode 100644 index a8dfa76a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsPerceptron2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs deleted file mode 100644 index b04e76bf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPerplexity - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPerplexity? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPerplexity), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs deleted file mode 100644 index 753bb750..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsPerplexity - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs deleted file mode 100644 index c8e42766..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPerplexity2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPerplexity2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPerplexity2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs deleted file mode 100644 index 7deda615..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsPerplexity2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPhala.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.Json.g.cs deleted file mode 100644 index 289c70b1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPhala - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPhala), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPhala? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPhala), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs deleted file mode 100644 index f2226fa4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsPhala - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs deleted file mode 100644 index a9924096..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPhala2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPhala2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPhala2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs deleted file mode 100644 index 241185c2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsPhala2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs deleted file mode 100644 index 648a0c3f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPoolside - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPoolside? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPoolside), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs deleted file mode 100644 index 32965811..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsPoolside - { - - /// - /// 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.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs deleted file mode 100644 index 953abef2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsPoolside2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsPoolside2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsPoolside2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs deleted file mode 100644 index c781f413..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsPoolside2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsQuiver.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver.Json.g.cs deleted file mode 100644 index 096c5a56..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsQuiver - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsQuiver? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsQuiver), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver.g.cs deleted file mode 100644 index 456b7645..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsQuiver - { - - /// - /// 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.ImageGenerationRequestProviderOptionsQuiver2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver2.Json.g.cs deleted file mode 100644 index 0bbb8c51..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsQuiver2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsQuiver2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsQuiver2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver2.g.cs deleted file mode 100644 index abbb0af5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsQuiver2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsQuiver2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs deleted file mode 100644 index f802909e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRecraft - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRecraft? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRecraft), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs deleted file mode 100644 index efbcd8c0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsRecraft - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs deleted file mode 100644 index 9376313c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRecraft2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRecraft2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRecraft2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs deleted file mode 100644 index 610c46aa..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsRecraft2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs deleted file mode 100644 index fd1f34f3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRecursal - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRecursal? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRecursal), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs deleted file mode 100644 index 88079375..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsRecursal - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs deleted file mode 100644 index cd235f98..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRecursal2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRecursal2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRecursal2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs deleted file mode 100644 index 6a2729cf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsRecursal2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.Json.g.cs deleted file mode 100644 index cf4d3572..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReflection - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReflection), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReflection? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReflection), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs deleted file mode 100644 index dcc53c32..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsReflection - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs deleted file mode 100644 index 95811ac7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReflection2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReflection2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReflection2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs deleted file mode 100644 index dd6edcb7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsReflection2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReka.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.Json.g.cs deleted file mode 100644 index f1565491..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReka - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReka), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReka? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReka), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs deleted file mode 100644 index 752b3a79..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsReka - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReka2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.Json.g.cs deleted file mode 100644 index fd732b30..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReka2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReka2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReka2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReka2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs deleted file mode 100644 index a26d4507..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsReka2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRelace.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.Json.g.cs deleted file mode 100644 index facebd8a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRelace - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRelace), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRelace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRelace), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs deleted file mode 100644 index bfa41b57..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsRelace - { - - /// - /// 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.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs deleted file mode 100644 index 59f004b1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsRelace2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsRelace2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsRelace2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs deleted file mode 100644 index 7cdbda3c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsRelace2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs deleted file mode 100644 index 04cd4d9c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReplicate - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReplicate? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReplicate), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs deleted file mode 100644 index ea40dbe3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsReplicate - { - - /// - /// 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.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs deleted file mode 100644 index 3f5a60a7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsReplicate2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsReplicate2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsReplicate2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs deleted file mode 100644 index bb2652d1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsReplicate2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSakanaAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi.Json.g.cs deleted file mode 100644 index 079a52ae..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSakanaAi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSakanaAi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi.g.cs deleted file mode 100644 index 69a48eda..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSakanaAi - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSakanaAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi2.Json.g.cs deleted file mode 100644 index fd8b0012..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSakanaAi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSakanaAi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi2.g.cs deleted file mode 100644 index d5a113f3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSakanaAi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSakanaAi2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs deleted file mode 100644 index 5d177e5d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSambanova - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanova? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSambanova), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs deleted file mode 100644 index bf3ac71e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSambanova - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs deleted file mode 100644 index 1fc3717f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSambanova2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanova2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSambanova2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs deleted file mode 100644 index 2fd865e5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSambanova2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs deleted file mode 100644 index bbeb57b3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSambanovaCloaked), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs deleted file mode 100644 index 03565d43..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs deleted file mode 100644 index 60cf8c35..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs deleted file mode 100644 index 1eb1e2c6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSeed.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.Json.g.cs deleted file mode 100644 index af860a23..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSeed - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSeed), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSeed? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSeed), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs deleted file mode 100644 index e97e1129..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSeed - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs deleted file mode 100644 index ee587f75..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSeed2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSeed2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSeed2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs deleted file mode 100644 index c26c6221..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSeed2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs deleted file mode 100644 index fd93af72..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSfCompute - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSfCompute? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSfCompute), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs deleted file mode 100644 index 6cf167f7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSfCompute - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs deleted file mode 100644 index ed4b6eda..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSfCompute2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSfCompute2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSfCompute2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs deleted file mode 100644 index d43013af..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSfCompute2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs deleted file mode 100644 index aca04308..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSiliconflow? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSiliconflow), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs deleted file mode 100644 index fb32a8f7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs deleted file mode 100644 index 4ce872d2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSiliconflow2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSiliconflow2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs deleted file mode 100644 index 434a14b7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs deleted file mode 100644 index 564551f9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSourceful - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSourceful? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSourceful), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs deleted file mode 100644 index a9a4b822..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSourceful - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs deleted file mode 100644 index 8ff9f434..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSourceful2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSourceful2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSourceful2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs deleted file mode 100644 index 87a02906..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSourceful2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStealth.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.Json.g.cs deleted file mode 100644 index f70b1ce2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStealth - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStealth), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStealth? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStealth), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs deleted file mode 100644 index da8f90e7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsStealth - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs deleted file mode 100644 index 77fbdbeb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStealth2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStealth2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStealth2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs deleted file mode 100644 index f23827cd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsStealth2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs deleted file mode 100644 index a3387d1b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStepfun - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStepfun? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStepfun), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs deleted file mode 100644 index fb9518a9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsStepfun - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs deleted file mode 100644 index 9a6f9319..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStepfun2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStepfun2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStepfun2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs deleted file mode 100644 index 6856d6eb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsStepfun2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs deleted file mode 100644 index b763c952..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStreamlake - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStreamlake? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStreamlake), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs deleted file mode 100644 index 50eddf01..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsStreamlake - { - - /// - /// 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.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs deleted file mode 100644 index b4d6cc16..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsStreamlake2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsStreamlake2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsStreamlake2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs deleted file mode 100644 index 37519731..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsStreamlake2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs deleted file mode 100644 index d6811923..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSwitchpoint? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSwitchpoint), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs deleted file mode 100644 index 17757f76..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint - { - - /// - /// 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.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs deleted file mode 100644 index bbbc773f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsSwitchpoint2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsSwitchpoint2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs deleted file mode 100644 index be6d1a29..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTargon.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.Json.g.cs deleted file mode 100644 index 0cb7f648..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTargon - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTargon), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTargon? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTargon), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs deleted file mode 100644 index a9420a70..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsTargon - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs deleted file mode 100644 index e85229cb..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTargon2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTargon2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTargon2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs deleted file mode 100644 index e135c491..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsTargon2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs deleted file mode 100644 index 283aa0b8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTenstorrent), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs deleted file mode 100644 index 06f35495..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs deleted file mode 100644 index 6d8e0cbf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTenstorrent2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs deleted file mode 100644 index 61e141aa..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTogether.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.Json.g.cs deleted file mode 100644 index 7629f2c5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTogether - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogether), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTogether? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTogether), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs deleted file mode 100644 index bde34b5c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsTogether - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs deleted file mode 100644 index 13ee4622..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTogether2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTogether2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTogether2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs deleted file mode 100644 index d0ec2e6a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsTogether2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs deleted file mode 100644 index d10b1d34..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTogetherLite? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTogetherLite), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs deleted file mode 100644 index 6b5bec52..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite - { - - /// - /// 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.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs deleted file mode 100644 index e3a2982b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsTogetherLite2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsTogetherLite2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs deleted file mode 100644 index 8474ae1e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs deleted file mode 100644 index 139eff38..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsUbicloud - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsUbicloud? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsUbicloud), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs deleted file mode 100644 index 7803ad03..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsUbicloud - { - - /// - /// 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.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs deleted file mode 100644 index 33cddf18..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsUbicloud2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsUbicloud2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsUbicloud2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs deleted file mode 100644 index 763ce6dc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsUbicloud2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs deleted file mode 100644 index 89408969..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsUpstage - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsUpstage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsUpstage), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs deleted file mode 100644 index 9e371f2c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsUpstage - { - - /// - /// 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.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs deleted file mode 100644 index 92a593a7..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsUpstage2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsUpstage2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsUpstage2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs deleted file mode 100644 index 38f0e341..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsUpstage2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsVenice.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.Json.g.cs deleted file mode 100644 index d3d0981a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsVenice - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsVenice), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsVenice? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsVenice), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs deleted file mode 100644 index cfd10729..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsVenice - { - - /// - /// 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.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs deleted file mode 100644 index 41e3ac3d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsVenice2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsVenice2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsVenice2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs deleted file mode 100644 index 20368f4c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsVenice2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsWafer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.Json.g.cs deleted file mode 100644 index 698f55b3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsWafer - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWafer), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsWafer? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsWafer), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs deleted file mode 100644 index 58efd06f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsWafer - { - - /// - /// 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.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs deleted file mode 100644 index 830a73bc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsWafer2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsWafer2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsWafer2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs deleted file mode 100644 index 0fddf3de..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsWafer2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsWandb.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.Json.g.cs deleted file mode 100644 index 4efe5989..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsWandb - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWandb), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsWandb? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsWandb), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs deleted file mode 100644 index 6e8410e3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsWandb - { - - /// - /// 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.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs deleted file mode 100644 index 22c8336b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsWandb2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsWandb2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsWandb2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs deleted file mode 100644 index b7f5d2d9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsWandb2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsXai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.Json.g.cs deleted file mode 100644 index 6f371cc6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsXai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsXai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsXai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs deleted file mode 100644 index 536e68ab..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsXai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsXai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.Json.g.cs deleted file mode 100644 index 7e808384..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsXai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsXai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsXai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs deleted file mode 100644 index fb25205f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsXai2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs deleted file mode 100644 index 40a1453f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsXiaomi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsXiaomi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsXiaomi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs deleted file mode 100644 index a2b36869..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsXiaomi - { - - /// - /// 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.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs deleted file mode 100644 index ed88f307..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsXiaomi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsXiaomi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsXiaomi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs deleted file mode 100644 index d270277f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsXiaomi2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsZAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.Json.g.cs deleted file mode 100644 index 02e8cdf2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsZAi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsZAi), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsZAi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsZAi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs deleted file mode 100644 index 87893adc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsZAi - { - - /// - /// 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.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs deleted file mode 100644 index 317c9863..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsZAi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsZAi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsZAi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs deleted file mode 100644 index 6afbbedc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsZAi2 - { - - /// - /// 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.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs deleted file mode 100644 index 87ddf9d5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsx01ai - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsx01ai? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsx01ai), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs deleted file mode 100644 index 975f5208..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ImageGenerationRequestProviderOptionsx01ai - { - - /// - /// 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.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs deleted file mode 100644 index eae8a9e4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ImageGenerationRequestProviderOptionsx01ai2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2), - jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ImageGenerationRequestProviderOptionsx01ai2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ImageGenerationRequestProviderOptionsx01ai2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs deleted file mode 100644 index e5d9bf25..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ImageGenerationRequestProviderOptionsx01ai2 - { - - /// - /// 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.ImageGenerationResponseDataItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs index 1b7a0d20..eec1f89a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs @@ -16,7 +16,7 @@ public sealed partial class ImageGenerationResponseDataItems public required string B64Json { get; set; } /// - /// Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`). + /// Media type (MIME type) of the image, e.g. `image/png`, `image/jpeg`, `image/webp`, `image/svg+xml`. May be omitted if the format could not be determined. /// [global::System.Text.Json.Serialization.JsonPropertyName("media_type")] public string? MediaType { get; set; } @@ -34,7 +34,7 @@ public sealed partial class ImageGenerationResponseDataItems /// Base64-encoded image bytes /// /// - /// Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`). + /// Media type (MIME type) of the image, e.g. `image/png`, `image/jpeg`, `image/webp`, `image/svg+xml`. May be omitted if the format could not be determined. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerTool.g.cs index a2d7b7a1..ce265398 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerTool.g.cs @@ -19,8 +19,8 @@ public sealed partial class ImageGenerationServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("input_fidelity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? InputFidelity { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolInputFidelityJsonConverter))] + public global::OpenRouter.ImageGenerationServerToolInputFidelity? InputFidelity { get; set; } /// /// @@ -32,8 +32,7 @@ public sealed partial class ImageGenerationServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolModelJsonConverter))] - public global::OpenRouter.ImageGenerationServerToolModel? Model { get; set; } + public string? Model { get; set; } /// /// @@ -72,8 +71,7 @@ public sealed partial class ImageGenerationServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolSizeJsonConverter))] - public global::OpenRouter.ImageGenerationServerToolSize? Size { get; set; } + public string? Size { get; set; } /// /// @@ -107,15 +105,15 @@ public sealed partial class ImageGenerationServerTool #endif public ImageGenerationServerTool( global::OpenRouter.ImageGenerationServerToolBackground? background, - global::OpenRouter.OneOf? inputFidelity, + global::OpenRouter.ImageGenerationServerToolInputFidelity? inputFidelity, global::OpenRouter.ImageGenerationServerToolInputImageMask? inputImageMask, - global::OpenRouter.ImageGenerationServerToolModel? model, + string? model, global::OpenRouter.ImageGenerationServerToolModeration? moderation, int? outputCompression, global::OpenRouter.ImageGenerationServerToolOutputFormat? outputFormat, int? partialImages, global::OpenRouter.ImageGenerationServerToolQuality? quality, - global::OpenRouter.ImageGenerationServerToolSize? size, + string? size, global::OpenRouter.ImageGenerationServerToolType type) { this.Background = background; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolModel.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolModel.g.cs deleted file mode 100644 index 33fe5810..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolModel.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ImageGenerationServerToolModel - { - /// - /// - /// - GptImage1, - /// - /// - /// - GptImage1Mini, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ImageGenerationServerToolModelExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ImageGenerationServerToolModel value) - { - return value switch - { - ImageGenerationServerToolModel.GptImage1 => "gpt-image-1", - ImageGenerationServerToolModel.GptImage1Mini => "gpt-image-1-mini", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ImageGenerationServerToolModel? ToEnum(string value) - { - return value switch - { - "gpt-image-1" => ImageGenerationServerToolModel.GptImage1, - "gpt-image-1-mini" => ImageGenerationServerToolModel.GptImage1Mini, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolSize.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolSize.g.cs deleted file mode 100644 index 59d8c804..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolSize.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ImageGenerationServerToolSize - { - /// - /// - /// - x1024x1024, - /// - /// - /// - x1024x1536, - /// - /// - /// - x1536x1024, - /// - /// - /// - Auto, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ImageGenerationServerToolSizeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ImageGenerationServerToolSize value) - { - return value switch - { - ImageGenerationServerToolSize.x1024x1024 => "1024x1024", - ImageGenerationServerToolSize.x1024x1536 => "1024x1536", - ImageGenerationServerToolSize.x1536x1024 => "1536x1024", - ImageGenerationServerToolSize.Auto => "auto", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ImageGenerationServerToolSize? ToEnum(string value) - { - return value switch - { - "1024x1024" => ImageGenerationServerToolSize.x1024x1024, - "1024x1536" => ImageGenerationServerToolSize.x1024x1536, - "1536x1024" => ImageGenerationServerToolSize.x1536x1024, - "auto" => ImageGenerationServerToolSize.Auto, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs index b379cd85..4611cf3f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs @@ -8,6 +8,12 @@ namespace OpenRouter /// public sealed partial class ImageGenerationUsage { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_creation")] + public global::OpenRouter.AnthropicCacheCreation? CacheCreation { get; set; } + /// /// The tokens generated /// @@ -105,6 +111,7 @@ public sealed partial class ImageGenerationUsage /// /// Sum of the above two fields /// + /// /// /// /// Cost of the completion @@ -133,6 +140,7 @@ public ImageGenerationUsage( int completionTokens, int promptTokens, int totalTokens, + global::OpenRouter.AnthropicCacheCreation? cacheCreation, global::OpenRouter.OneOf? completionTokensDetails, double? cost, global::OpenRouter.CostDetails? costDetails, @@ -143,6 +151,7 @@ public ImageGenerationUsage( string? serviceTier, global::OpenRouter.AnthropicSpeed? speed) { + this.CacheCreation = cacheCreation; this.CompletionTokens = completionTokens; this.CompletionTokensDetails = completionTokensDetails; this.Cost = cost; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageInputModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageInputModality.g.cs new file mode 100644 index 00000000..f554693b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageInputModality.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ImageInputModality + { + /// + /// + /// + Audio, + /// + /// + /// + File, + /// + /// + /// + Image, + /// + /// + /// + Text, + /// + /// + /// + Video, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageInputModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageInputModality value) + { + return value switch + { + ImageInputModality.Audio => "audio", + ImageInputModality.File => "file", + ImageInputModality.Image => "image", + ImageInputModality.Text => "text", + ImageInputModality.Video => "video", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageInputModality? ToEnum(string value) + { + return value switch + { + "audio" => ImageInputModality.Audio, + "file" => ImageInputModality.File, + "image" => ImageInputModality.Image, + "text" => ImageInputModality.Text, + "video" => ImageInputModality.Video, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs index e91e5cd6..20bc0717 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs @@ -13,7 +13,7 @@ public sealed partial class ImageModelArchitecture ///
[global::System.Text.Json.Serialization.JsonPropertyName("input_modalities")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList InputModalities { get; set; } + public required global::System.Collections.Generic.IList InputModalities { get; set; } /// /// Supported output modalities @@ -41,7 +41,7 @@ public sealed partial class ImageModelArchitecture [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageModelArchitecture( - global::System.Collections.Generic.IList inputModalities, + global::System.Collections.Generic.IList inputModalities, global::System.Collections.Generic.IList outputModalities) { this.InputModalities = inputModalities ?? throw new global::System.ArgumentNullException(nameof(inputModalities)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputText.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputText.g.cs index ad7761c6..5ea992c4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputText.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputText.g.cs @@ -8,6 +8,12 @@ namespace OpenRouter /// public sealed partial class InputText { + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -25,12 +31,17 @@ public sealed partial class InputText /// Initializes a new instance of the class. /// /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputText( - string text) + string text, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs index 966e737a..708937ca 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items.g.cs @@ -1230,6 +1230,43 @@ public bool TryPickOutputSubagentServerToolItem( ? OutputSubagentServerToolItem! : throw new global::System.InvalidOperationException($"Expected union variant 'OutputSubagentServerToolItem' but the value was {ToString()}."); + /// + /// An openrouter:files server tool output item + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputFilesServerToolItem? OutputFilesServerToolItem { get; init; } +#else + public global::OpenRouter.OutputFilesServerToolItem? OutputFilesServerToolItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OutputFilesServerToolItem))] +#endif + public bool IsOutputFilesServerToolItem => OutputFilesServerToolItem != null; + + /// + /// + /// + public bool TryPickOutputFilesServerToolItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OutputFilesServerToolItem? value) + { + value = OutputFilesServerToolItem; + return IsOutputFilesServerToolItem; + } + + /// + /// + /// + public global::OpenRouter.OutputFilesServerToolItem PickOutputFilesServerToolItem() => IsOutputFilesServerToolItem + ? OutputFilesServerToolItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'OutputFilesServerToolItem' but the value was {ToString()}."); + /// /// A local shell command execution call /// @@ -1637,6 +1674,43 @@ public bool TryPickCompactionItem( ? CompactionItem! : throw new global::System.InvalidOperationException($"Expected union variant 'CompactionItem' but the value was {ToString()}."); + /// + /// A context compaction marker with an optional encrypted summary + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ContextCompactionItem? ContextCompactionItem { get; init; } +#else + public global::OpenRouter.ContextCompactionItem? ContextCompactionItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ContextCompactionItem))] +#endif + public bool IsContextCompactionItem => ContextCompactionItem != null; + + /// + /// + /// + public bool TryPickContextCompactionItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ContextCompactionItem? value) + { + value = ContextCompactionItem; + return IsContextCompactionItem; + } + + /// + /// + /// + public global::OpenRouter.ContextCompactionItem PickContextCompactionItem() => IsContextCompactionItem + ? ContextCompactionItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'ContextCompactionItem' but the value was {ToString()}."); + /// /// A reference to a previous response item by ID /// @@ -1673,6 +1747,80 @@ public bool TryPickItemReferenceItem( public global::OpenRouter.ItemReferenceItem PickItemReferenceItem() => IsItemReferenceItem ? ItemReferenceItem! : throw new global::System.InvalidOperationException($"Expected union variant 'ItemReferenceItem' but the value was {ToString()}."); + + /// + /// Additional tools made available to the model at this point in the input + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AdditionalToolsItem? AdditionalToolsItem { get; init; } +#else + public global::OpenRouter.AdditionalToolsItem? AdditionalToolsItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AdditionalToolsItem))] +#endif + public bool IsAdditionalToolsItem => AdditionalToolsItem != null; + + /// + /// + /// + public bool TryPickAdditionalToolsItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AdditionalToolsItem? value) + { + value = AdditionalToolsItem; + return IsAdditionalToolsItem; + } + + /// + /// + /// + public global::OpenRouter.AdditionalToolsItem PickAdditionalToolsItem() => IsAdditionalToolsItem + ? AdditionalToolsItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalToolsItem' but the value was {ToString()}."); + + /// + /// A message routed between agents in a multi-agent session + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.AgentMessageItem? AgentMessageItem { get; init; } +#else + public global::OpenRouter.AgentMessageItem? AgentMessageItem { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageItem))] +#endif + public bool IsAgentMessageItem => AgentMessageItem != null; + + /// + /// + /// + public bool TryPickAgentMessageItem( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.AgentMessageItem? value) + { + value = AgentMessageItem; + return IsAgentMessageItem; + } + + /// + /// + /// + public global::OpenRouter.AgentMessageItem PickAgentMessageItem() => IsAgentMessageItem + ? AgentMessageItem! + : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageItem' but the value was {ToString()}."); /// /// /// @@ -2432,6 +2580,29 @@ public InputsOneOf1Items(global::OpenRouter.OutputSubagentServerToolItem? value) /// public static InputsOneOf1Items FromOutputSubagentServerToolItem(global::OpenRouter.OutputSubagentServerToolItem? value) => new InputsOneOf1Items(value); + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.OutputFilesServerToolItem value) => new InputsOneOf1Items((global::OpenRouter.OutputFilesServerToolItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputFilesServerToolItem?(InputsOneOf1Items @this) => @this.OutputFilesServerToolItem; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.OutputFilesServerToolItem? value) + { + OutputFilesServerToolItem = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromOutputFilesServerToolItem(global::OpenRouter.OutputFilesServerToolItem? value) => new InputsOneOf1Items(value); + /// /// /// @@ -2685,6 +2856,29 @@ public InputsOneOf1Items(global::OpenRouter.CompactionItem? value) /// public static InputsOneOf1Items FromCompactionItem(global::OpenRouter.CompactionItem? value) => new InputsOneOf1Items(value); + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.ContextCompactionItem value) => new InputsOneOf1Items((global::OpenRouter.ContextCompactionItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ContextCompactionItem?(InputsOneOf1Items @this) => @this.ContextCompactionItem; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.ContextCompactionItem? value) + { + ContextCompactionItem = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromContextCompactionItem(global::OpenRouter.ContextCompactionItem? value) => new InputsOneOf1Items(value); + /// /// /// @@ -2708,6 +2902,52 @@ public InputsOneOf1Items(global::OpenRouter.ItemReferenceItem? value) /// public static InputsOneOf1Items FromItemReferenceItem(global::OpenRouter.ItemReferenceItem? value) => new InputsOneOf1Items(value); + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.AdditionalToolsItem value) => new InputsOneOf1Items((global::OpenRouter.AdditionalToolsItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AdditionalToolsItem?(InputsOneOf1Items @this) => @this.AdditionalToolsItem; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.AdditionalToolsItem? value) + { + AdditionalToolsItem = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromAdditionalToolsItem(global::OpenRouter.AdditionalToolsItem? value) => new InputsOneOf1Items(value); + + /// + /// + /// + public static implicit operator InputsOneOf1Items(global::OpenRouter.AgentMessageItem value) => new InputsOneOf1Items((global::OpenRouter.AgentMessageItem?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.AgentMessageItem?(InputsOneOf1Items @this) => @this.AgentMessageItem; + + /// + /// + /// + public InputsOneOf1Items(global::OpenRouter.AgentMessageItem? value) + { + AgentMessageItem = value; + } + + /// + /// + /// + public static InputsOneOf1Items FromAgentMessageItem(global::OpenRouter.AgentMessageItem? value) => new InputsOneOf1Items(value); + /// /// /// @@ -2745,6 +2985,7 @@ public InputsOneOf1Items( global::OpenRouter.OutputFusionServerToolItem? outputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem? outputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem? outputSubagentServerToolItem, + global::OpenRouter.OutputFilesServerToolItem? outputFilesServerToolItem, global::OpenRouter.LocalShellCallItem? localShellCallItem, global::OpenRouter.LocalShellCallOutputItem? localShellCallOutputItem, global::OpenRouter.ShellCallItem? shellCallItem, @@ -2756,7 +2997,10 @@ public InputsOneOf1Items( global::OpenRouter.CustomToolCallItem? customToolCallItem, global::OpenRouter.CustomToolCallOutputItem? customToolCallOutputItem, global::OpenRouter.CompactionItem? compactionItem, - global::OpenRouter.ItemReferenceItem? itemReferenceItem + global::OpenRouter.ContextCompactionItem? contextCompactionItem, + global::OpenRouter.ItemReferenceItem? itemReferenceItem, + global::OpenRouter.AdditionalToolsItem? additionalToolsItem, + global::OpenRouter.AgentMessageItem? agentMessageItem ) { ReasoningItem = reasoningItem; @@ -2792,6 +3036,7 @@ public InputsOneOf1Items( OutputFusionServerToolItem = outputFusionServerToolItem; OutputAdvisorServerToolItem = outputAdvisorServerToolItem; OutputSubagentServerToolItem = outputSubagentServerToolItem; + OutputFilesServerToolItem = outputFilesServerToolItem; LocalShellCallItem = localShellCallItem; LocalShellCallOutputItem = localShellCallOutputItem; ShellCallItem = shellCallItem; @@ -2803,14 +3048,20 @@ public InputsOneOf1Items( CustomToolCallItem = customToolCallItem; CustomToolCallOutputItem = customToolCallOutputItem; CompactionItem = compactionItem; + ContextCompactionItem = contextCompactionItem; ItemReferenceItem = itemReferenceItem; + AdditionalToolsItem = additionalToolsItem; + AgentMessageItem = agentMessageItem; } /// /// /// public object? Object => + AgentMessageItem as object ?? + AdditionalToolsItem as object ?? ItemReferenceItem as object ?? + ContextCompactionItem as object ?? CompactionItem as object ?? CustomToolCallOutputItem as object ?? CustomToolCallItem as object ?? @@ -2822,6 +3073,7 @@ ShellCallOutputItem as object ?? ShellCallItem as object ?? LocalShellCallOutputItem as object ?? LocalShellCallItem as object ?? + OutputFilesServerToolItem as object ?? OutputSubagentServerToolItem as object ?? OutputAdvisorServerToolItem as object ?? OutputFusionServerToolItem as object ?? @@ -2894,6 +3146,7 @@ ReasoningItem as object OutputFusionServerToolItem?.ToString() ?? OutputAdvisorServerToolItem?.ToString() ?? OutputSubagentServerToolItem?.ToString() ?? + OutputFilesServerToolItem?.ToString() ?? LocalShellCallItem?.ToString() ?? LocalShellCallOutputItem?.ToString() ?? ShellCallItem?.ToString() ?? @@ -2905,7 +3158,10 @@ ReasoningItem as object CustomToolCallItem?.ToString() ?? CustomToolCallOutputItem?.ToString() ?? CompactionItem?.ToString() ?? - ItemReferenceItem?.ToString() + ContextCompactionItem?.ToString() ?? + ItemReferenceItem?.ToString() ?? + AdditionalToolsItem?.ToString() ?? + AgentMessageItem?.ToString() ; /// @@ -2913,7 +3169,7 @@ ReasoningItem as object /// public bool Validate() { - return IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && IsCustomToolCallOutputItem && !IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && IsCompactionItem && !IsItemReferenceItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && IsItemReferenceItem; + return IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && IsItemReferenceItem && !IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && IsAdditionalToolsItem && !IsAgentMessageItem || !IsReasoningItem && !IsEasyInputMessage && !IsInputMessageItem && !IsFunctionCallItem && !IsFunctionCallOutputItem && !IsApplyPatchCallItem && !IsApplyPatchCallOutputItem && !IsInputsOneOf1Items7 && !IsInputsOneOf1Items8 && !IsOutputFunctionCallItem && !IsOutputCustomToolCallItem && !IsOutputWebSearchCallItem && !IsOutputFileSearchCallItem && !IsOutputImageGenerationCallItem && !IsOutputCodeInterpreterCallItem && !IsOutputComputerCallItem && !IsOutputDatetimeItem && !IsOutputWebSearchServerToolItem && !IsOutputCodeInterpreterServerToolItem && !IsOutputFileSearchServerToolItem && !IsOutputImageGenerationServerToolItem && !IsOutputBrowserUseServerToolItem && !IsOutputBashServerToolItem && !IsOutputTextEditorServerToolItem && !IsOutputApplyPatchServerToolItem && !IsOutputWebFetchServerToolItem && !IsOutputToolSearchServerToolItem && !IsOutputMemoryServerToolItem && !IsOutputMcpServerToolItem && !IsOutputSearchModelsServerToolItem && !IsOutputFusionServerToolItem && !IsOutputAdvisorServerToolItem && !IsOutputSubagentServerToolItem && !IsOutputFilesServerToolItem && !IsLocalShellCallItem && !IsLocalShellCallOutputItem && !IsShellCallItem && !IsShellCallOutputItem && !IsMcpListToolsItem && !IsMcpApprovalRequestItem && !IsMcpApprovalResponseItem && !IsMcpCallItem && !IsCustomToolCallItem && !IsCustomToolCallOutputItem && !IsCompactionItem && !IsContextCompactionItem && !IsItemReferenceItem && !IsAdditionalToolsItem && IsAgentMessageItem; } /// @@ -2953,6 +3209,7 @@ public bool Validate() global::System.Func? outputFusionServerToolItem = null, global::System.Func? outputAdvisorServerToolItem = null, global::System.Func? outputSubagentServerToolItem = null, + global::System.Func? outputFilesServerToolItem = null, global::System.Func? localShellCallItem = null, global::System.Func? localShellCallOutputItem = null, global::System.Func? shellCallItem = null, @@ -2964,7 +3221,10 @@ public bool Validate() global::System.Func? customToolCallItem = null, global::System.Func? customToolCallOutputItem = null, global::System.Func? compactionItem = null, + global::System.Func? contextCompactionItem = null, global::System.Func? itemReferenceItem = null, + global::System.Func? additionalToolsItem = null, + global::System.Func? agentMessageItem = null, bool validate = true) { if (validate) @@ -3104,6 +3364,10 @@ public bool Validate() { return outputSubagentServerToolItem(OutputSubagentServerToolItem!); } + else if (IsOutputFilesServerToolItem && outputFilesServerToolItem != null) + { + return outputFilesServerToolItem(OutputFilesServerToolItem!); + } else if (IsLocalShellCallItem && localShellCallItem != null) { return localShellCallItem(LocalShellCallItem!); @@ -3148,10 +3412,22 @@ public bool Validate() { return compactionItem(CompactionItem!); } + else if (IsContextCompactionItem && contextCompactionItem != null) + { + return contextCompactionItem(ContextCompactionItem!); + } else if (IsItemReferenceItem && itemReferenceItem != null) { return itemReferenceItem(ItemReferenceItem!); } + else if (IsAdditionalToolsItem && additionalToolsItem != null) + { + return additionalToolsItem(AdditionalToolsItem!); + } + else if (IsAgentMessageItem && agentMessageItem != null) + { + return agentMessageItem(AgentMessageItem!); + } return default(TResult); } @@ -3226,6 +3502,8 @@ public void Match( global::System.Action? outputSubagentServerToolItem = null, + global::System.Action? outputFilesServerToolItem = null, + global::System.Action? localShellCallItem = null, global::System.Action? localShellCallOutputItem = null, @@ -3248,7 +3526,13 @@ public void Match( global::System.Action? compactionItem = null, + global::System.Action? contextCompactionItem = null, + global::System.Action? itemReferenceItem = null, + + global::System.Action? additionalToolsItem = null, + + global::System.Action? agentMessageItem = null, bool validate = true) { if (validate) @@ -3388,6 +3672,10 @@ public void Match( { outputSubagentServerToolItem?.Invoke(OutputSubagentServerToolItem!); } + else if (IsOutputFilesServerToolItem) + { + outputFilesServerToolItem?.Invoke(OutputFilesServerToolItem!); + } else if (IsLocalShellCallItem) { localShellCallItem?.Invoke(LocalShellCallItem!); @@ -3432,10 +3720,22 @@ public void Match( { compactionItem?.Invoke(CompactionItem!); } + else if (IsContextCompactionItem) + { + contextCompactionItem?.Invoke(ContextCompactionItem!); + } else if (IsItemReferenceItem) { itemReferenceItem?.Invoke(ItemReferenceItem!); } + else if (IsAdditionalToolsItem) + { + additionalToolsItem?.Invoke(AdditionalToolsItem!); + } + else if (IsAgentMessageItem) + { + agentMessageItem?.Invoke(AgentMessageItem!); + } } /// @@ -3475,6 +3775,7 @@ public void Switch( global::System.Action? outputFusionServerToolItem = null, global::System.Action? outputAdvisorServerToolItem = null, global::System.Action? outputSubagentServerToolItem = null, + global::System.Action? outputFilesServerToolItem = null, global::System.Action? localShellCallItem = null, global::System.Action? localShellCallOutputItem = null, global::System.Action? shellCallItem = null, @@ -3486,7 +3787,10 @@ public void Switch( global::System.Action? customToolCallItem = null, global::System.Action? customToolCallOutputItem = null, global::System.Action? compactionItem = null, + global::System.Action? contextCompactionItem = null, global::System.Action? itemReferenceItem = null, + global::System.Action? additionalToolsItem = null, + global::System.Action? agentMessageItem = null, bool validate = true) { if (validate) @@ -3626,6 +3930,10 @@ public void Switch( { outputSubagentServerToolItem?.Invoke(OutputSubagentServerToolItem!); } + else if (IsOutputFilesServerToolItem) + { + outputFilesServerToolItem?.Invoke(OutputFilesServerToolItem!); + } else if (IsLocalShellCallItem) { localShellCallItem?.Invoke(LocalShellCallItem!); @@ -3670,10 +3978,22 @@ public void Switch( { compactionItem?.Invoke(CompactionItem!); } + else if (IsContextCompactionItem) + { + contextCompactionItem?.Invoke(ContextCompactionItem!); + } else if (IsItemReferenceItem) { itemReferenceItem?.Invoke(ItemReferenceItem!); } + else if (IsAdditionalToolsItem) + { + additionalToolsItem?.Invoke(AdditionalToolsItem!); + } + else if (IsAgentMessageItem) + { + agentMessageItem?.Invoke(AgentMessageItem!); + } } /// @@ -3749,6 +4069,8 @@ public override int GetHashCode() typeof(global::OpenRouter.OutputAdvisorServerToolItem), OutputSubagentServerToolItem, typeof(global::OpenRouter.OutputSubagentServerToolItem), + OutputFilesServerToolItem, + typeof(global::OpenRouter.OutputFilesServerToolItem), LocalShellCallItem, typeof(global::OpenRouter.LocalShellCallItem), LocalShellCallOutputItem, @@ -3771,8 +4093,14 @@ public override int GetHashCode() typeof(global::OpenRouter.CustomToolCallOutputItem), CompactionItem, typeof(global::OpenRouter.CompactionItem), + ContextCompactionItem, + typeof(global::OpenRouter.ContextCompactionItem), ItemReferenceItem, typeof(global::OpenRouter.ItemReferenceItem), + AdditionalToolsItem, + typeof(global::OpenRouter.AdditionalToolsItem), + AgentMessageItem, + typeof(global::OpenRouter.AgentMessageItem), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -3822,6 +4150,7 @@ public bool Equals(InputsOneOf1Items other) global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputFusionServerToolItem, other.OutputFusionServerToolItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputAdvisorServerToolItem, other.OutputAdvisorServerToolItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputSubagentServerToolItem, other.OutputSubagentServerToolItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputFilesServerToolItem, other.OutputFilesServerToolItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(LocalShellCallItem, other.LocalShellCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(LocalShellCallOutputItem, other.LocalShellCallOutputItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCallItem, other.ShellCallItem) && @@ -3833,7 +4162,10 @@ public bool Equals(InputsOneOf1Items other) global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCallItem, other.CustomToolCallItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCallOutputItem, other.CustomToolCallOutputItem) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CompactionItem, other.CompactionItem) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ItemReferenceItem, other.ItemReferenceItem) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompactionItem, other.ContextCompactionItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ItemReferenceItem, other.ItemReferenceItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AdditionalToolsItem, other.AdditionalToolsItem) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageItem, other.AgentMessageItem) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs index c5449423..92a60c2f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1Items7.g.cs @@ -12,8 +12,8 @@ public sealed partial class InputsOneOf1Items7 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf7ContentJsonConverter))] - public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Content { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class InputsOneOf1Items7 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputsOneOf1Items7( - global::OpenRouter.InputsOneOf1ItemsOneOf7Content? content) + global::OpenRouter.OneOf? content) { this.Content = content; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs index b1c9eea4..6380fbb2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7Content.g.cs @@ -82,43 +82,6 @@ public bool TryPickInputsOneOf1ItemsOneOf7ContentVariant2( public string PickInputsOneOf1ItemsOneOf7ContentVariant2() => IsInputsOneOf1ItemsOneOf7ContentVariant2 ? InputsOneOf1ItemsOneOf7ContentVariant2! : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf7ContentVariant2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? InputsOneOf1ItemsOneOf7ContentVariant3 { get; init; } -#else - public object? InputsOneOf1ItemsOneOf7ContentVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputsOneOf1ItemsOneOf7ContentVariant3))] -#endif - public bool IsInputsOneOf1ItemsOneOf7ContentVariant3 => InputsOneOf1ItemsOneOf7ContentVariant3 != null; - - /// - /// - /// - public bool TryPickInputsOneOf1ItemsOneOf7ContentVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = InputsOneOf1ItemsOneOf7ContentVariant3; - return IsInputsOneOf1ItemsOneOf7ContentVariant3; - } - - /// - /// - /// - public object PickInputsOneOf1ItemsOneOf7ContentVariant3() => IsInputsOneOf1ItemsOneOf7ContentVariant3 - ? InputsOneOf1ItemsOneOf7ContentVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'InputsOneOf1ItemsOneOf7ContentVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public InputsOneOf1ItemsOneOf7Content(string? value) /// public InputsOneOf1ItemsOneOf7Content( global::System.Collections.Generic.IList? inputsOneOf1ItemsOneOf7Content0, - string? inputsOneOf1ItemsOneOf7ContentVariant2, - object? inputsOneOf1ItemsOneOf7ContentVariant3 + string? inputsOneOf1ItemsOneOf7ContentVariant2 ) { InputsOneOf1ItemsOneOf7Content0 = inputsOneOf1ItemsOneOf7Content0; InputsOneOf1ItemsOneOf7ContentVariant2 = inputsOneOf1ItemsOneOf7ContentVariant2; - InputsOneOf1ItemsOneOf7ContentVariant3 = inputsOneOf1ItemsOneOf7ContentVariant3; } /// /// /// public object? Object => - InputsOneOf1ItemsOneOf7ContentVariant3 as object ?? InputsOneOf1ItemsOneOf7ContentVariant2 as object ?? InputsOneOf1ItemsOneOf7Content0 as object ; @@ -170,8 +130,7 @@ InputsOneOf1ItemsOneOf7Content0 as object /// public override string? ToString() => InputsOneOf1ItemsOneOf7Content0?.ToString() ?? - InputsOneOf1ItemsOneOf7ContentVariant2?.ToString() ?? - InputsOneOf1ItemsOneOf7ContentVariant3?.ToString() + InputsOneOf1ItemsOneOf7ContentVariant2?.ToString() ; /// @@ -179,7 +138,7 @@ InputsOneOf1ItemsOneOf7Content0 as object /// public bool Validate() { - return IsInputsOneOf1ItemsOneOf7Content0 && !IsInputsOneOf1ItemsOneOf7ContentVariant2 && !IsInputsOneOf1ItemsOneOf7ContentVariant3 || !IsInputsOneOf1ItemsOneOf7Content0 && IsInputsOneOf1ItemsOneOf7ContentVariant2 && !IsInputsOneOf1ItemsOneOf7ContentVariant3 || !IsInputsOneOf1ItemsOneOf7Content0 && !IsInputsOneOf1ItemsOneOf7ContentVariant2 && IsInputsOneOf1ItemsOneOf7ContentVariant3; + return IsInputsOneOf1ItemsOneOf7Content0 && !IsInputsOneOf1ItemsOneOf7ContentVariant2 || !IsInputsOneOf1ItemsOneOf7Content0 && IsInputsOneOf1ItemsOneOf7ContentVariant2; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func, TResult>? inputsOneOf1ItemsOneOf7Content0 = null, global::System.Func? inputsOneOf1ItemsOneOf7ContentVariant2 = null, - global::System.Func? inputsOneOf1ItemsOneOf7ContentVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return inputsOneOf1ItemsOneOf7ContentVariant2(InputsOneOf1ItemsOneOf7ContentVariant2!); } - else if (IsInputsOneOf1ItemsOneOf7ContentVariant3 && inputsOneOf1ItemsOneOf7ContentVariant3 != null) - { - return inputsOneOf1ItemsOneOf7ContentVariant3(InputsOneOf1ItemsOneOf7ContentVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action>? inputsOneOf1ItemsOneOf7Content0 = null, global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant2 = null, - - global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { inputsOneOf1ItemsOneOf7ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant2!); } - else if (IsInputsOneOf1ItemsOneOf7ContentVariant3) - { - inputsOneOf1ItemsOneOf7ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action>? inputsOneOf1ItemsOneOf7Content0 = null, global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant2 = null, - global::System.Action? inputsOneOf1ItemsOneOf7ContentVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { inputsOneOf1ItemsOneOf7ContentVariant2?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant2!); } - else if (IsInputsOneOf1ItemsOneOf7ContentVariant3) - { - inputsOneOf1ItemsOneOf7ContentVariant3?.Invoke(InputsOneOf1ItemsOneOf7ContentVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(global::System.Collections.Generic.IList), InputsOneOf1ItemsOneOf7ContentVariant2, typeof(string), - InputsOneOf1ItemsOneOf7ContentVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(InputsOneOf1ItemsOneOf7Content other) { return global::System.Collections.Generic.EqualityComparer?>.Default.Equals(InputsOneOf1ItemsOneOf7Content0, other.InputsOneOf1ItemsOneOf7Content0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf7ContentVariant2, other.InputsOneOf1ItemsOneOf7ContentVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf7ContentVariant3, other.InputsOneOf1ItemsOneOf7ContentVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputsOneOf1ItemsOneOf7ContentVariant2, other.InputsOneOf1ItemsOneOf7ContentVariant2) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs deleted file mode 100644 index b2cae1a2..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class InputsOneOf1ItemsOneOf7ContentVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3), - jsonSerializerContext) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.InputsOneOf1ItemsOneOf7ContentVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.InputsOneOf1ItemsOneOf7ContentVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.InputsOneOf1ItemsOneOf7ContentVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs deleted file mode 100644 index c416ca36..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InputsOneOf1ItemsOneOf7ContentVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class InputsOneOf1ItemsOneOf7ContentVariant3 - { - - /// - /// 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.InstructType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InstructType.g.cs new file mode 100644 index 00000000..133373ae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.InstructType.g.cs @@ -0,0 +1,171 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Instruction format type + /// + public enum InstructType + { + /// + /// + /// + Airoboros, + /// + /// + /// + Alpaca, + /// + /// + /// + AlpacaModif, + /// + /// + /// + Chatml, + /// + /// + /// + Claude, + /// + /// + /// + CodeLlama, + /// + /// + /// + DeepseekR1, + /// + /// + /// + DeepseekV31, + /// + /// + /// + Gemma, + /// + /// + /// + Llama2, + /// + /// + /// + Llama3, + /// + /// + /// + Mistral, + /// + /// + /// + Nemotron, + /// + /// + /// + Neural, + /// + /// + /// + None, + /// + /// + /// + Openchat, + /// + /// + /// + Phi3, + /// + /// + /// + Qwen3, + /// + /// + /// + Qwq, + /// + /// + /// + Rwkv, + /// + /// + /// + Vicuna, + /// + /// + /// + Zephyr, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class InstructTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this InstructType value) + { + return value switch + { + InstructType.Airoboros => "airoboros", + InstructType.Alpaca => "alpaca", + InstructType.AlpacaModif => "alpaca-modif", + InstructType.Chatml => "chatml", + InstructType.Claude => "claude", + InstructType.CodeLlama => "code-llama", + InstructType.DeepseekR1 => "deepseek-r1", + InstructType.DeepseekV31 => "deepseek-v3.1", + InstructType.Gemma => "gemma", + InstructType.Llama2 => "llama2", + InstructType.Llama3 => "llama3", + InstructType.Mistral => "mistral", + InstructType.Nemotron => "nemotron", + InstructType.Neural => "neural", + InstructType.None => "none", + InstructType.Openchat => "openchat", + InstructType.Phi3 => "phi3", + InstructType.Qwen3 => "qwen3", + InstructType.Qwq => "qwq", + InstructType.Rwkv => "rwkv", + InstructType.Vicuna => "vicuna", + InstructType.Zephyr => "zephyr", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static InstructType? ToEnum(string value) + { + return value switch + { + "airoboros" => InstructType.Airoboros, + "alpaca" => InstructType.Alpaca, + "alpaca-modif" => InstructType.AlpacaModif, + "chatml" => InstructType.Chatml, + "claude" => InstructType.Claude, + "code-llama" => InstructType.CodeLlama, + "deepseek-r1" => InstructType.DeepseekR1, + "deepseek-v3.1" => InstructType.DeepseekV31, + "gemma" => InstructType.Gemma, + "llama2" => InstructType.Llama2, + "llama3" => InstructType.Llama3, + "mistral" => InstructType.Mistral, + "nemotron" => InstructType.Nemotron, + "neural" => InstructType.Neural, + "none" => InstructType.None, + "openchat" => InstructType.Openchat, + "phi3" => InstructType.Phi3, + "qwen3" => InstructType.Qwen3, + "qwq" => InstructType.Qwq, + "rwkv" => InstructType.Rwkv, + "vicuna" => InstructType.Vicuna, + "zephyr" => InstructType.Zephyr, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.InstructType2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.InstructType2.g.cs deleted file mode 100644 index 6901a762..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.InstructType2.g.cs +++ /dev/null @@ -1,171 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Instruction format type - /// - public enum InstructType2 - { - /// - /// - /// - Airoboros, - /// - /// - /// - Alpaca, - /// - /// - /// - AlpacaModif, - /// - /// - /// - Chatml, - /// - /// - /// - Claude, - /// - /// - /// - CodeLlama, - /// - /// - /// - DeepseekR1, - /// - /// - /// - DeepseekV31, - /// - /// - /// - Gemma, - /// - /// - /// - Llama2, - /// - /// - /// - Llama3, - /// - /// - /// - Mistral, - /// - /// - /// - Nemotron, - /// - /// - /// - Neural, - /// - /// - /// - None, - /// - /// - /// - Openchat, - /// - /// - /// - Phi3, - /// - /// - /// - Qwen3, - /// - /// - /// - Qwq, - /// - /// - /// - Rwkv, - /// - /// - /// - Vicuna, - /// - /// - /// - Zephyr, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class InstructType2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this InstructType2 value) - { - return value switch - { - InstructType2.Airoboros => "airoboros", - InstructType2.Alpaca => "alpaca", - InstructType2.AlpacaModif => "alpaca-modif", - InstructType2.Chatml => "chatml", - InstructType2.Claude => "claude", - InstructType2.CodeLlama => "code-llama", - InstructType2.DeepseekR1 => "deepseek-r1", - InstructType2.DeepseekV31 => "deepseek-v3.1", - InstructType2.Gemma => "gemma", - InstructType2.Llama2 => "llama2", - InstructType2.Llama3 => "llama3", - InstructType2.Mistral => "mistral", - InstructType2.Nemotron => "nemotron", - InstructType2.Neural => "neural", - InstructType2.None => "none", - InstructType2.Openchat => "openchat", - InstructType2.Phi3 => "phi3", - InstructType2.Qwen3 => "qwen3", - InstructType2.Qwq => "qwq", - InstructType2.Rwkv => "rwkv", - InstructType2.Vicuna => "vicuna", - InstructType2.Zephyr => "zephyr", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static InstructType2? ToEnum(string value) - { - return value switch - { - "airoboros" => InstructType2.Airoboros, - "alpaca" => InstructType2.Alpaca, - "alpaca-modif" => InstructType2.AlpacaModif, - "chatml" => InstructType2.Chatml, - "claude" => InstructType2.Claude, - "code-llama" => InstructType2.CodeLlama, - "deepseek-r1" => InstructType2.DeepseekR1, - "deepseek-v3.1" => InstructType2.DeepseekV31, - "gemma" => InstructType2.Gemma, - "llama2" => InstructType2.Llama2, - "llama3" => InstructType2.Llama3, - "mistral" => InstructType2.Mistral, - "nemotron" => InstructType2.Nemotron, - "neural" => InstructType2.Neural, - "none" => InstructType2.None, - "openchat" => InstructType2.Openchat, - "phi3" => InstructType2.Phi3, - "qwen3" => InstructType2.Qwen3, - "qwq" => InstructType2.Qwq, - "rwkv" => InstructType2.Rwkv, - "vicuna" => InstructType2.Vicuna, - "zephyr" => InstructType2.Zephyr, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.Json.g.cs new file mode 100644 index 00000000..4ce9e19d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class LegacyChatContentVideoInput + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.LegacyChatContentVideoInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.LegacyChatContentVideoInput), + jsonSerializerContext) as global::OpenRouter.LegacyChatContentVideoInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.LegacyChatContentVideoInput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.LegacyChatContentVideoInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.LegacyChatContentVideoInput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.LegacyChatContentVideoInput; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.g.cs new file mode 100644 index 00000000..de388c84 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.LegacyChatContentVideoInput.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Video input object + /// + public sealed partial class LegacyChatContentVideoInput + { + /// + /// URL of the video (data: URLs supported) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { 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. + /// + /// + /// URL of the video (data: URLs supported) + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LegacyChatContentVideoInput( + string url) + { + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + } + + /// + /// Initializes a new instance of the class. + /// + public LegacyChatContentVideoInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsResponseArchitecture.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsResponseArchitecture.g.cs index 58218523..cf93e60c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsResponseArchitecture.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsResponseArchitecture.g.cs @@ -19,9 +19,9 @@ public sealed partial class ListEndpointsResponseArchitecture /// Instruction format type /// [global::System.Text.Json.Serialization.JsonPropertyName("instruct_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf InstructType { get; set; } + public required global::OpenRouter.InstructType InstructType { get; set; } /// /// Primary modality of the model @@ -73,7 +73,7 @@ public sealed partial class ListEndpointsResponseArchitecture #endif public ListEndpointsResponseArchitecture( global::System.Collections.Generic.IList inputModalities, - global::OpenRouter.OneOf instructType, + global::OpenRouter.InstructType instructType, global::System.Collections.Generic.IList outputModalities, global::OpenRouter.ModelGroup tokenizer, string? modality) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.Json.g.cs new file mode 100644 index 00000000..f13d7718 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ListWorkspaceMembersResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ListWorkspaceMembersResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ListWorkspaceMembersResponse), + jsonSerializerContext) as global::OpenRouter.ListWorkspaceMembersResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ListWorkspaceMembersResponse? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ListWorkspaceMembersResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ListWorkspaceMembersResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ListWorkspaceMembersResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.g.cs new file mode 100644 index 00000000..12c831c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListWorkspaceMembersResponse.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ListWorkspaceMembersResponse + { + /// + /// List of workspace members + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Total number of members in the workspace + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { 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. + /// + /// + /// List of workspace members + /// + /// + /// Total number of members in the workspace + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListWorkspaceMembersResponse( + global::System.Collections.Generic.IList data, + int totalCount) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.TotalCount = totalCount; + } + + /// + /// Initializes a new instance of the class. + /// + public ListWorkspaceMembersResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.LocalShellCallOutputItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.LocalShellCallOutputItem.g.cs index 83397668..9bfcdf40 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.LocalShellCallOutputItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.LocalShellCallOutputItem.g.cs @@ -26,8 +26,8 @@ public sealed partial class LocalShellCallOutputItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - public global::OpenRouter.ToolCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Status { get; set; } /// /// @@ -55,7 +55,7 @@ public sealed partial class LocalShellCallOutputItem public LocalShellCallOutputItem( string id, string output, - global::OpenRouter.ToolCallStatus? status, + global::OpenRouter.OneOf? status, global::OpenRouter.LocalShellCallOutputItemType type) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpListToolsItemToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpListToolsItemToolsItems.g.cs index 23b525c8..8078a2a5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpListToolsItemToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpListToolsItemToolsItems.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class McpListToolsItemToolsItems { /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] public object? Annotations { get; set; } @@ -45,7 +45,9 @@ public sealed partial class McpListToolsItemToolsItems /// /// /// - /// + /// + /// Any type + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerTool.g.cs index 2be6e16f..259ac07b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerTool.g.cs @@ -12,8 +12,8 @@ public sealed partial class McpServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.McpServerToolAllowedToolsJsonConverter))] - public global::OpenRouter.McpServerToolAllowedTools? AllowedTools { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? AllowedTools { get; set; } /// /// @@ -38,8 +38,8 @@ public sealed partial class McpServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("require_approval")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.McpServerToolRequireApprovalJsonConverter))] - public global::OpenRouter.McpServerToolRequireApproval? RequireApproval { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? RequireApproval { get; set; } /// /// @@ -90,11 +90,11 @@ public sealed partial class McpServerTool #endif public McpServerTool( string serverLabel, - global::OpenRouter.McpServerToolAllowedTools? allowedTools, + global::OpenRouter.OneOf? allowedTools, string? authorization, global::OpenRouter.McpServerToolConnectorId? connectorId, global::System.Collections.Generic.Dictionary? headers, - global::OpenRouter.McpServerToolRequireApproval? requireApproval, + global::OpenRouter.OneOf? requireApproval, string? serverDescription, string? serverUrl, global::OpenRouter.McpServerToolType type) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedTools.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedTools.g.cs index 3a72c792..12f94547 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedTools.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedTools.g.cs @@ -82,43 +82,6 @@ public bool TryPickMcpServerToolAllowedTools1( public global::OpenRouter.McpServerToolAllowedTools1 PickMcpServerToolAllowedTools1() => IsMcpServerToolAllowedTools1 ? McpServerToolAllowedTools1! : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolAllowedTools1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? McpServerToolAllowedToolsVariant3 { get; init; } -#else - public object? McpServerToolAllowedToolsVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolAllowedToolsVariant3))] -#endif - public bool IsMcpServerToolAllowedToolsVariant3 => McpServerToolAllowedToolsVariant3 != null; - - /// - /// - /// - public bool TryPickMcpServerToolAllowedToolsVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = McpServerToolAllowedToolsVariant3; - return IsMcpServerToolAllowedToolsVariant3; - } - - /// - /// - /// - public object PickMcpServerToolAllowedToolsVariant3() => IsMcpServerToolAllowedToolsVariant3 - ? McpServerToolAllowedToolsVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolAllowedToolsVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public McpServerToolAllowedTools(global::OpenRouter.McpServerToolAllowedTools1? /// public McpServerToolAllowedTools( global::System.Collections.Generic.IList? mcpServerToolAllowedToolsVariant1, - global::OpenRouter.McpServerToolAllowedTools1? mcpServerToolAllowedTools1, - object? mcpServerToolAllowedToolsVariant3 + global::OpenRouter.McpServerToolAllowedTools1? mcpServerToolAllowedTools1 ) { McpServerToolAllowedToolsVariant1 = mcpServerToolAllowedToolsVariant1; McpServerToolAllowedTools1 = mcpServerToolAllowedTools1; - McpServerToolAllowedToolsVariant3 = mcpServerToolAllowedToolsVariant3; } /// /// /// public object? Object => - McpServerToolAllowedToolsVariant3 as object ?? McpServerToolAllowedTools1 as object ?? McpServerToolAllowedToolsVariant1 as object ; @@ -170,8 +130,7 @@ McpServerToolAllowedToolsVariant1 as object /// public override string? ToString() => McpServerToolAllowedToolsVariant1?.ToString() ?? - McpServerToolAllowedTools1?.ToString() ?? - McpServerToolAllowedToolsVariant3?.ToString() + McpServerToolAllowedTools1?.ToString() ; /// @@ -179,7 +138,7 @@ McpServerToolAllowedToolsVariant1 as object /// public bool Validate() { - return IsMcpServerToolAllowedToolsVariant1 && !IsMcpServerToolAllowedTools1 && !IsMcpServerToolAllowedToolsVariant3 || !IsMcpServerToolAllowedToolsVariant1 && IsMcpServerToolAllowedTools1 && !IsMcpServerToolAllowedToolsVariant3 || !IsMcpServerToolAllowedToolsVariant1 && !IsMcpServerToolAllowedTools1 && IsMcpServerToolAllowedToolsVariant3; + return IsMcpServerToolAllowedToolsVariant1 && !IsMcpServerToolAllowedTools1 || !IsMcpServerToolAllowedToolsVariant1 && IsMcpServerToolAllowedTools1; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func, TResult>? mcpServerToolAllowedToolsVariant1 = null, global::System.Func? mcpServerToolAllowedTools1 = null, - global::System.Func? mcpServerToolAllowedToolsVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return mcpServerToolAllowedTools1(McpServerToolAllowedTools1!); } - else if (IsMcpServerToolAllowedToolsVariant3 && mcpServerToolAllowedToolsVariant3 != null) - { - return mcpServerToolAllowedToolsVariant3(McpServerToolAllowedToolsVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action>? mcpServerToolAllowedToolsVariant1 = null, global::System.Action? mcpServerToolAllowedTools1 = null, - - global::System.Action? mcpServerToolAllowedToolsVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { mcpServerToolAllowedTools1?.Invoke(McpServerToolAllowedTools1!); } - else if (IsMcpServerToolAllowedToolsVariant3) - { - mcpServerToolAllowedToolsVariant3?.Invoke(McpServerToolAllowedToolsVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action>? mcpServerToolAllowedToolsVariant1 = null, global::System.Action? mcpServerToolAllowedTools1 = null, - global::System.Action? mcpServerToolAllowedToolsVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { mcpServerToolAllowedTools1?.Invoke(McpServerToolAllowedTools1!); } - else if (IsMcpServerToolAllowedToolsVariant3) - { - mcpServerToolAllowedToolsVariant3?.Invoke(McpServerToolAllowedToolsVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(global::System.Collections.Generic.IList), McpServerToolAllowedTools1, typeof(global::OpenRouter.McpServerToolAllowedTools1), - McpServerToolAllowedToolsVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(McpServerToolAllowedTools other) { return global::System.Collections.Generic.EqualityComparer?>.Default.Equals(McpServerToolAllowedToolsVariant1, other.McpServerToolAllowedToolsVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolAllowedTools1, other.McpServerToolAllowedTools1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolAllowedToolsVariant3, other.McpServerToolAllowedToolsVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolAllowedTools1, other.McpServerToolAllowedTools1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.Json.g.cs deleted file mode 100644 index 2e613f57..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class McpServerToolAllowedToolsVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.McpServerToolAllowedToolsVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.McpServerToolAllowedToolsVariant3), - jsonSerializerContext) as global::OpenRouter.McpServerToolAllowedToolsVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.McpServerToolAllowedToolsVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.McpServerToolAllowedToolsVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.McpServerToolAllowedToolsVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.McpServerToolAllowedToolsVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.g.cs deleted file mode 100644 index c3abb96e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolAllowedToolsVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class McpServerToolAllowedToolsVariant3 - { - - /// - /// 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.McpServerToolRequireApproval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApproval.g.cs index 613a4d6a..5c681c0e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApproval.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApproval.g.cs @@ -119,43 +119,6 @@ public bool TryPickMcpServerToolRequireApproval2( public global::OpenRouter.McpServerToolRequireApproval2 PickMcpServerToolRequireApproval2() => IsMcpServerToolRequireApproval2 ? McpServerToolRequireApproval2!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolRequireApproval2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? McpServerToolRequireApprovalVariant4 { get; init; } -#else - public object? McpServerToolRequireApprovalVariant4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolRequireApprovalVariant4))] -#endif - public bool IsMcpServerToolRequireApprovalVariant4 => McpServerToolRequireApprovalVariant4 != null; - - /// - /// - /// - public bool TryPickMcpServerToolRequireApprovalVariant4( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = McpServerToolRequireApprovalVariant4; - return IsMcpServerToolRequireApprovalVariant4; - } - - /// - /// - /// - public object PickMcpServerToolRequireApprovalVariant4() => IsMcpServerToolRequireApprovalVariant4 - ? McpServerToolRequireApprovalVariant4! - : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolRequireApprovalVariant4' but the value was {ToString()}."); /// /// /// @@ -231,21 +194,18 @@ public McpServerToolRequireApproval(global::OpenRouter.McpServerToolRequireAppro public McpServerToolRequireApproval( global::OpenRouter.McpServerToolRequireApproval0? mcpServerToolRequireApproval0, global::OpenRouter.McpServerToolRequireApproval1? mcpServerToolRequireApproval1, - global::OpenRouter.McpServerToolRequireApproval2? mcpServerToolRequireApproval2, - object? mcpServerToolRequireApprovalVariant4 + global::OpenRouter.McpServerToolRequireApproval2? mcpServerToolRequireApproval2 ) { McpServerToolRequireApproval0 = mcpServerToolRequireApproval0; McpServerToolRequireApproval1 = mcpServerToolRequireApproval1; McpServerToolRequireApproval2 = mcpServerToolRequireApproval2; - McpServerToolRequireApprovalVariant4 = mcpServerToolRequireApprovalVariant4; } /// /// /// public object? Object => - McpServerToolRequireApprovalVariant4 as object ?? McpServerToolRequireApproval2 as object ?? McpServerToolRequireApproval1 as object ?? McpServerToolRequireApproval0 as object @@ -257,8 +217,7 @@ McpServerToolRequireApproval0 as object public override string? ToString() => McpServerToolRequireApproval0?.ToString() ?? McpServerToolRequireApproval1?.ToValueString() ?? - McpServerToolRequireApproval2?.ToValueString() ?? - McpServerToolRequireApprovalVariant4?.ToString() + McpServerToolRequireApproval2?.ToValueString() ; /// @@ -266,7 +225,7 @@ McpServerToolRequireApproval0 as object /// public bool Validate() { - return IsMcpServerToolRequireApproval0 && !IsMcpServerToolRequireApproval1 && !IsMcpServerToolRequireApproval2 && !IsMcpServerToolRequireApprovalVariant4 || !IsMcpServerToolRequireApproval0 && IsMcpServerToolRequireApproval1 && !IsMcpServerToolRequireApproval2 && !IsMcpServerToolRequireApprovalVariant4 || !IsMcpServerToolRequireApproval0 && !IsMcpServerToolRequireApproval1 && IsMcpServerToolRequireApproval2 && !IsMcpServerToolRequireApprovalVariant4 || !IsMcpServerToolRequireApproval0 && !IsMcpServerToolRequireApproval1 && !IsMcpServerToolRequireApproval2 && IsMcpServerToolRequireApprovalVariant4; + return IsMcpServerToolRequireApproval0 && !IsMcpServerToolRequireApproval1 && !IsMcpServerToolRequireApproval2 || !IsMcpServerToolRequireApproval0 && IsMcpServerToolRequireApproval1 && !IsMcpServerToolRequireApproval2 || !IsMcpServerToolRequireApproval0 && !IsMcpServerToolRequireApproval1 && IsMcpServerToolRequireApproval2; } /// @@ -276,7 +235,6 @@ public bool Validate() global::System.Func? mcpServerToolRequireApproval0 = null, global::System.Func? mcpServerToolRequireApproval1 = null, global::System.Func? mcpServerToolRequireApproval2 = null, - global::System.Func? mcpServerToolRequireApprovalVariant4 = null, bool validate = true) { if (validate) @@ -296,10 +254,6 @@ public bool Validate() { return mcpServerToolRequireApproval2(McpServerToolRequireApproval2!); } - else if (IsMcpServerToolRequireApprovalVariant4 && mcpServerToolRequireApprovalVariant4 != null) - { - return mcpServerToolRequireApprovalVariant4(McpServerToolRequireApprovalVariant4!); - } return default(TResult); } @@ -313,8 +267,6 @@ public void Match( global::System.Action? mcpServerToolRequireApproval1 = null, global::System.Action? mcpServerToolRequireApproval2 = null, - - global::System.Action? mcpServerToolRequireApprovalVariant4 = null, bool validate = true) { if (validate) @@ -334,10 +286,6 @@ public void Match( { mcpServerToolRequireApproval2?.Invoke(McpServerToolRequireApproval2!); } - else if (IsMcpServerToolRequireApprovalVariant4) - { - mcpServerToolRequireApprovalVariant4?.Invoke(McpServerToolRequireApprovalVariant4!); - } } /// @@ -347,7 +295,6 @@ public void Switch( global::System.Action? mcpServerToolRequireApproval0 = null, global::System.Action? mcpServerToolRequireApproval1 = null, global::System.Action? mcpServerToolRequireApproval2 = null, - global::System.Action? mcpServerToolRequireApprovalVariant4 = null, bool validate = true) { if (validate) @@ -367,10 +314,6 @@ public void Switch( { mcpServerToolRequireApproval2?.Invoke(McpServerToolRequireApproval2!); } - else if (IsMcpServerToolRequireApprovalVariant4) - { - mcpServerToolRequireApprovalVariant4?.Invoke(McpServerToolRequireApprovalVariant4!); - } } /// @@ -386,8 +329,6 @@ public override int GetHashCode() typeof(global::OpenRouter.McpServerToolRequireApproval1), McpServerToolRequireApproval2, typeof(global::OpenRouter.McpServerToolRequireApproval2), - McpServerToolRequireApprovalVariant4, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -406,8 +347,7 @@ public bool Equals(McpServerToolRequireApproval other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolRequireApproval0, other.McpServerToolRequireApproval0) && global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolRequireApproval1, other.McpServerToolRequireApproval1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolRequireApproval2, other.McpServerToolRequireApproval2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolRequireApprovalVariant4, other.McpServerToolRequireApprovalVariant4) + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolRequireApproval2, other.McpServerToolRequireApproval2) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.Json.g.cs deleted file mode 100644 index 5480327d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class McpServerToolRequireApprovalVariant4 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.McpServerToolRequireApprovalVariant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.McpServerToolRequireApprovalVariant4), - jsonSerializerContext) as global::OpenRouter.McpServerToolRequireApprovalVariant4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.McpServerToolRequireApprovalVariant4? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.McpServerToolRequireApprovalVariant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.McpServerToolRequireApprovalVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.McpServerToolRequireApprovalVariant4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.g.cs deleted file mode 100644 index bb746d45..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.McpServerToolRequireApprovalVariant4.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class McpServerToolRequireApprovalVariant4 - { - - /// - /// 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.MessagesMessageParamContentOneOf1Items10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items10.g.cs index 4c03a77f..5b9fd3ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items10.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items10.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesMessageParamContentOneOf1Items10 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -37,7 +37,7 @@ public sealed partial class MessagesMessageParamContentOneOf1Items10 /// Initializes a new instance of the class. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items3.g.cs index b8e483fd..9570d638 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items3.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesMessageParamContentOneOf1Items3 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -22,7 +22,7 @@ public sealed partial class MessagesMessageParamContentOneOf1Items3 public required string Id { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] public object? Input { get; set; } @@ -53,9 +53,11 @@ public sealed partial class MessagesMessageParamContentOneOf1Items3 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. + /// + /// + /// Any type /// - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items4.g.cs index 515e966d..ff399f35 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items4.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesMessageParamContentOneOf1Items4 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -52,7 +52,7 @@ public sealed partial class MessagesMessageParamContentOneOf1Items4 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items7.g.cs index 90da4371..2ad33def 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items7.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesMessageParamContentOneOf1Items7 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -22,7 +22,7 @@ public sealed partial class MessagesMessageParamContentOneOf1Items7 public required string Id { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] public object? Input { get; set; } @@ -53,9 +53,11 @@ public sealed partial class MessagesMessageParamContentOneOf1Items7 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. + /// + /// + /// Any type /// - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items8.g.cs index 35d03ee6..9b73590a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesMessageParamContentOneOf1Items8.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesMessageParamContentOneOf1Items8 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -48,7 +48,7 @@ public sealed partial class MessagesMessageParamContentOneOf1Items8 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesOutputConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesOutputConfig.g.cs index 4e346f3e..8ae33c21 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesOutputConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesOutputConfig.g.cs @@ -12,8 +12,8 @@ public sealed partial class MessagesOutputConfig /// How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`. /// [global::System.Text.Json.Serialization.JsonPropertyName("effort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? Effort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesOutputConfigEffortJsonConverter))] + public global::OpenRouter.MessagesOutputConfigEffort? Effort { get; set; } /// /// A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs). @@ -51,7 +51,7 @@ public sealed partial class MessagesOutputConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesOutputConfig( - global::OpenRouter.OneOf? effort, + global::OpenRouter.MessagesOutputConfigEffort? effort, global::OpenRouter.OneOf? format, global::OpenRouter.OneOf? taskBudget) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequest.g.cs index d3059157..1f8a346c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequest.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesRequest { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -187,7 +187,7 @@ public sealed partial class MessagesRequest /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems0.g.cs index f0351d8e..d29f0e6b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems0.g.cs @@ -18,8 +18,8 @@ public sealed partial class MessagesRequestContextManagementEditsItems0 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("clear_tool_inputs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsJsonConverter))] - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? ClearToolInputs { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? ClearToolInputs { get; set; } /// /// @@ -67,7 +67,7 @@ public sealed partial class MessagesRequestContextManagementEditsItems0 #endif public MessagesRequestContextManagementEditsItems0( global::OpenRouter.AnthropicInputTokensClearAtLeast? clearAtLeast, - global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? clearToolInputs, + global::OpenRouter.OneOf? clearToolInputs, global::System.Collections.Generic.IList? excludeTools, global::OpenRouter.AnthropicToolUsesKeep? keep, global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? trigger, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems2.g.cs index f45ac9e4..2b106e3a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItems2.g.cs @@ -24,7 +24,8 @@ public sealed partial class MessagesRequestContextManagementEditsItems2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("trigger")] - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Trigger { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Trigger { get; set; } /// /// @@ -52,7 +53,7 @@ public sealed partial class MessagesRequestContextManagementEditsItems2 public MessagesRequestContextManagementEditsItems2( string? instructions, bool? pauseAfterCompaction, - global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? trigger, + global::OpenRouter.OneOf? trigger, global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type type) { this.Instructions = instructions; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs index 46584468..0c4ab303 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs.g.cs @@ -82,43 +82,6 @@ public bool TryPickMessagesRequestContextManagementEditsItemsOneOf0ClearToolInpu public global::System.Collections.Generic.IList PickMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2() => IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 ? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2! : throw new global::System.InvalidOperationException($"Expected union variant 'MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 { get; init; } -#else - public object? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3))] -#endif - public bool IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 => MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 != null; - - /// - /// - /// - public bool TryPickMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; - return IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; - } - - /// - /// - /// - public object PickMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3() => IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 - ? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3' but the value was {ToString()}."); /// /// /// @@ -147,20 +110,17 @@ public MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs(bool? val /// public MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs( bool? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1, - global::System.Collections.Generic.IList? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2, - object? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 + global::System.Collections.Generic.IList? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 ) { MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 = messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1; MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 = messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2; - MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; } /// /// /// public object? Object => - MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 as object ?? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 as object ?? MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 as object ; @@ -170,8 +130,7 @@ MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 as objec /// public override string? ToString() => MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1?.ToString().ToLowerInvariant() ?? - MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2?.ToString() ?? - MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3?.ToString() + MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2?.ToString() ; /// @@ -179,7 +138,7 @@ MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 as objec /// public bool Validate() { - return IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 && !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 && !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 || !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 && IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 && !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 || !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 && !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 && IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; + return IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 && !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 || !IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 && IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2; } /// @@ -188,7 +147,6 @@ public bool Validate() public TResult? Match( global::System.Func? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 = null, global::System.Func, TResult>? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 = null, - global::System.Func? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = null, bool validate = true) { if (validate) @@ -204,10 +162,6 @@ public bool Validate() { return messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2!); } - else if (IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 && messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 != null) - { - return messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3!); - } return default(TResult); } @@ -219,8 +173,6 @@ public void Match( global::System.Action? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 = null, global::System.Action>? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 = null, - - global::System.Action? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = null, bool validate = true) { if (validate) @@ -236,10 +188,6 @@ public void Match( { messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2?.Invoke(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2!); } - else if (IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3) - { - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3?.Invoke(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3!); - } } /// @@ -248,7 +196,6 @@ public void Match( public void Switch( global::System.Action? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1 = null, global::System.Action>? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2 = null, - global::System.Action? messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 = null, bool validate = true) { if (validate) @@ -264,10 +211,6 @@ public void Switch( { messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2?.Invoke(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2!); } - else if (IsMessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3) - { - messagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3?.Invoke(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3!); - } } /// @@ -281,8 +224,6 @@ public override int GetHashCode() typeof(bool), MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2, typeof(global::System.Collections.Generic.IList), - MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -300,8 +241,7 @@ public bool Equals(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInpu { return global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1, other.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2, other.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3, other.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2, other.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant2) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.Json.g.cs deleted file mode 100644 index 1692db3c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3), - jsonSerializerContext) as global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.g.cs deleted file mode 100644 index fa783213..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputsVariant3 - { - - /// - /// 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.MessagesRequestContextManagementEditsItemsOneOf2Trigger.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2Trigger.g.cs index 22282eeb..871a393f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2Trigger.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2Trigger.g.cs @@ -8,13 +8,6 @@ namespace OpenRouter /// public sealed partial class MessagesRequestContextManagementEditsItemsOneOf2Trigger { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeJsonConverter))] - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType Type { get; set; } - /// /// /// @@ -32,15 +25,12 @@ public sealed partial class MessagesRequestContextManagementEditsItemsOneOf2Trig /// Initializes a new instance of the class. /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestContextManagementEditsItemsOneOf2Trigger( - int value, - global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType type) + int value) { - this.Type = type; this.Value = value; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs deleted file mode 100644 index 737838b1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestContextManagementEditsItemsOneOf2TriggerType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum MessagesRequestContextManagementEditsItemsOneOf2TriggerType - { - /// - /// - /// - InputTokens, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MessagesRequestContextManagementEditsItemsOneOf2TriggerTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MessagesRequestContextManagementEditsItemsOneOf2TriggerType value) - { - return value switch - { - MessagesRequestContextManagementEditsItemsOneOf2TriggerType.InputTokens => "input_tokens", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MessagesRequestContextManagementEditsItemsOneOf2TriggerType? ToEnum(string value) - { - return value switch - { - "input_tokens" => MessagesRequestContextManagementEditsItemsOneOf2TriggerType.InputTokens, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItems.g.cs index bc12b92b..fd298cd7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItems.g.cs @@ -14,13 +14,50 @@ namespace OpenRouter /// public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Id { get; } + /// + /// auto-beta-router variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? AutoBetaRouter { get; init; } +#else + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? AutoBetaRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AutoBetaRouter))] +#endif + public bool IsAutoBetaRouter => AutoBetaRouter != null; + + /// + /// + /// + public bool TryPickAutoBetaRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.MessagesRequestPluginsItemsVariant1? value) + { + value = AutoBetaRouter; + return IsAutoBetaRouter; + } + + /// + /// + /// + public global::OpenRouter.MessagesRequestPluginsItemsVariant1 PickAutoBetaRouter() => IsAutoBetaRouter + ? AutoBetaRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'AutoBetaRouter' but the value was {ToString()}."); + /// /// auto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? AutoRouter { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? AutoRouter { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? AutoRouter { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? AutoRouter { get; } #endif /// @@ -38,7 +75,7 @@ public bool TryPickAutoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant1? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant2? value) { value = AutoRouter; return IsAutoRouter; @@ -47,7 +84,7 @@ public bool TryPickAutoRouter( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1 PickAutoRouter() => IsAutoRouter + public global::OpenRouter.MessagesRequestPluginsItemsVariant2 PickAutoRouter() => IsAutoRouter ? AutoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'AutoRouter' but the value was {ToString()}."); @@ -55,9 +92,9 @@ public bool TryPickAutoRouter( /// context-compression variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? ContextCompression { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? ContextCompression { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? ContextCompression { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? ContextCompression { get; } #endif /// @@ -75,7 +112,7 @@ public bool TryPickContextCompression( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant2? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant3? value) { value = ContextCompression; return IsContextCompression; @@ -84,7 +121,7 @@ public bool TryPickContextCompression( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2 PickContextCompression() => IsContextCompression + public global::OpenRouter.MessagesRequestPluginsItemsVariant3 PickContextCompression() => IsContextCompression ? ContextCompression! : throw new global::System.InvalidOperationException($"Expected union variant 'ContextCompression' but the value was {ToString()}."); @@ -92,9 +129,9 @@ public bool TryPickContextCompression( /// file-parser variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? FileParser { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? FileParser { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? FileParser { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? FileParser { get; } #endif /// @@ -112,7 +149,7 @@ public bool TryPickFileParser( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant3? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant4? value) { value = FileParser; return IsFileParser; @@ -121,7 +158,7 @@ public bool TryPickFileParser( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3 PickFileParser() => IsFileParser + public global::OpenRouter.MessagesRequestPluginsItemsVariant4 PickFileParser() => IsFileParser ? FileParser! : throw new global::System.InvalidOperationException($"Expected union variant 'FileParser' but the value was {ToString()}."); @@ -129,9 +166,9 @@ public bool TryPickFileParser( /// fusion variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Fusion { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Fusion { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Fusion { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Fusion { get; } #endif /// @@ -149,7 +186,7 @@ public bool TryPickFusion( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant4? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant5? value) { value = Fusion; return IsFusion; @@ -158,7 +195,7 @@ public bool TryPickFusion( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4 PickFusion() => IsFusion + public global::OpenRouter.MessagesRequestPluginsItemsVariant5 PickFusion() => IsFusion ? Fusion! : throw new global::System.InvalidOperationException($"Expected union variant 'Fusion' but the value was {ToString()}."); @@ -166,9 +203,9 @@ public bool TryPickFusion( /// moderation variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Moderation { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Moderation { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Moderation { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Moderation { get; } #endif /// @@ -186,7 +223,7 @@ public bool TryPickModeration( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant5? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant6? value) { value = Moderation; return IsModeration; @@ -195,7 +232,7 @@ public bool TryPickModeration( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5 PickModeration() => IsModeration + public global::OpenRouter.MessagesRequestPluginsItemsVariant6 PickModeration() => IsModeration ? Moderation! : throw new global::System.InvalidOperationException($"Expected union variant 'Moderation' but the value was {ToString()}."); @@ -203,9 +240,9 @@ public bool TryPickModeration( /// pareto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? ParetoRouter { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? ParetoRouter { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? ParetoRouter { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? ParetoRouter { get; } #endif /// @@ -223,7 +260,7 @@ public bool TryPickParetoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant6? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant7? value) { value = ParetoRouter; return IsParetoRouter; @@ -232,7 +269,7 @@ public bool TryPickParetoRouter( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6 PickParetoRouter() => IsParetoRouter + public global::OpenRouter.MessagesRequestPluginsItemsVariant7 PickParetoRouter() => IsParetoRouter ? ParetoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'ParetoRouter' but the value was {ToString()}."); @@ -240,9 +277,9 @@ public bool TryPickParetoRouter( /// response-healing variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? ResponseHealing { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? ResponseHealing { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? ResponseHealing { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? ResponseHealing { get; } #endif /// @@ -260,7 +297,7 @@ public bool TryPickResponseHealing( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant7? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant8? value) { value = ResponseHealing; return IsResponseHealing; @@ -269,7 +306,7 @@ public bool TryPickResponseHealing( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7 PickResponseHealing() => IsResponseHealing + public global::OpenRouter.MessagesRequestPluginsItemsVariant8 PickResponseHealing() => IsResponseHealing ? ResponseHealing! : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseHealing' but the value was {ToString()}."); @@ -277,9 +314,9 @@ public bool TryPickResponseHealing( /// web variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Web { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Web { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Web { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Web { get; } #endif /// @@ -297,7 +334,7 @@ public bool TryPickWeb( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant8? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant9? value) { value = Web; return IsWeb; @@ -306,7 +343,7 @@ public bool TryPickWeb( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8 PickWeb() => IsWeb + public global::OpenRouter.MessagesRequestPluginsItemsVariant9 PickWeb() => IsWeb ? Web! : throw new global::System.InvalidOperationException($"Expected union variant 'Web' but the value was {ToString()}."); @@ -314,9 +351,9 @@ public bool TryPickWeb( /// web-fetch variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.MessagesRequestPluginsItemsVariant9? WebFetch { get; init; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant10? WebFetch { get; init; } #else - public global::OpenRouter.MessagesRequestPluginsItemsVariant9? WebFetch { get; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant10? WebFetch { get; } #endif /// @@ -334,7 +371,7 @@ public bool TryPickWebFetch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.MessagesRequestPluginsItemsVariant9? value) + out global::OpenRouter.MessagesRequestPluginsItemsVariant10? value) { value = WebFetch; return IsWebFetch; @@ -343,7 +380,7 @@ public bool TryPickWebFetch( /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant9 PickWebFetch() => IsWebFetch + public global::OpenRouter.MessagesRequestPluginsItemsVariant10 PickWebFetch() => IsWebFetch ? WebFetch! : throw new global::System.InvalidOperationException($"Expected union variant 'WebFetch' but the value was {ToString()}."); /// @@ -354,20 +391,20 @@ public bool TryPickWebFetch( /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant1?(MessagesRequestPluginsItems @this) => @this.AutoRouter; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant1?(MessagesRequestPluginsItems @this) => @this.AutoBetaRouter; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant1? value) { - AutoRouter = value; + AutoBetaRouter = value; } /// /// /// - public static MessagesRequestPluginsItems FromAutoRouter(global::OpenRouter.MessagesRequestPluginsItemsVariant1? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromAutoBetaRouter(global::OpenRouter.MessagesRequestPluginsItemsVariant1? value) => new MessagesRequestPluginsItems(value); /// /// @@ -377,20 +414,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant2?(MessagesRequestPluginsItems @this) => @this.ContextCompression; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant2?(MessagesRequestPluginsItems @this) => @this.AutoRouter; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant2? value) { - ContextCompression = value; + AutoRouter = value; } /// /// /// - public static MessagesRequestPluginsItems FromContextCompression(global::OpenRouter.MessagesRequestPluginsItemsVariant2? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromAutoRouter(global::OpenRouter.MessagesRequestPluginsItemsVariant2? value) => new MessagesRequestPluginsItems(value); /// /// @@ -400,20 +437,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant3?(MessagesRequestPluginsItems @this) => @this.FileParser; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant3?(MessagesRequestPluginsItems @this) => @this.ContextCompression; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant3? value) { - FileParser = value; + ContextCompression = value; } /// /// /// - public static MessagesRequestPluginsItems FromFileParser(global::OpenRouter.MessagesRequestPluginsItemsVariant3? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromContextCompression(global::OpenRouter.MessagesRequestPluginsItemsVariant3? value) => new MessagesRequestPluginsItems(value); /// /// @@ -423,20 +460,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant4?(MessagesRequestPluginsItems @this) => @this.Fusion; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant4?(MessagesRequestPluginsItems @this) => @this.FileParser; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant4? value) { - Fusion = value; + FileParser = value; } /// /// /// - public static MessagesRequestPluginsItems FromFusion(global::OpenRouter.MessagesRequestPluginsItemsVariant4? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromFileParser(global::OpenRouter.MessagesRequestPluginsItemsVariant4? value) => new MessagesRequestPluginsItems(value); /// /// @@ -446,20 +483,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant5?(MessagesRequestPluginsItems @this) => @this.Moderation; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant5?(MessagesRequestPluginsItems @this) => @this.Fusion; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant5? value) { - Moderation = value; + Fusion = value; } /// /// /// - public static MessagesRequestPluginsItems FromModeration(global::OpenRouter.MessagesRequestPluginsItemsVariant5? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromFusion(global::OpenRouter.MessagesRequestPluginsItemsVariant5? value) => new MessagesRequestPluginsItems(value); /// /// @@ -469,20 +506,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant6?(MessagesRequestPluginsItems @this) => @this.ParetoRouter; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant6?(MessagesRequestPluginsItems @this) => @this.Moderation; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant6? value) { - ParetoRouter = value; + Moderation = value; } /// /// /// - public static MessagesRequestPluginsItems FromParetoRouter(global::OpenRouter.MessagesRequestPluginsItemsVariant6? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromModeration(global::OpenRouter.MessagesRequestPluginsItemsVariant6? value) => new MessagesRequestPluginsItems(value); /// /// @@ -492,20 +529,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant7?(MessagesRequestPluginsItems @this) => @this.ResponseHealing; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant7?(MessagesRequestPluginsItems @this) => @this.ParetoRouter; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant7? value) { - ResponseHealing = value; + ParetoRouter = value; } /// /// /// - public static MessagesRequestPluginsItems FromResponseHealing(global::OpenRouter.MessagesRequestPluginsItemsVariant7? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromParetoRouter(global::OpenRouter.MessagesRequestPluginsItemsVariant7? value) => new MessagesRequestPluginsItems(value); /// /// @@ -515,20 +552,20 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant8?(MessagesRequestPluginsItems @this) => @this.Web; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant8?(MessagesRequestPluginsItems @this) => @this.ResponseHealing; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant8? value) { - Web = value; + ResponseHealing = value; } /// /// /// - public static MessagesRequestPluginsItems FromWeb(global::OpenRouter.MessagesRequestPluginsItemsVariant8? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromResponseHealing(global::OpenRouter.MessagesRequestPluginsItemsVariant8? value) => new MessagesRequestPluginsItems(value); /// /// @@ -538,12 +575,35 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant9?(MessagesRequestPluginsItems @this) => @this.WebFetch; + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant9?(MessagesRequestPluginsItems @this) => @this.Web; /// /// /// public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant9? value) + { + Web = value; + } + + /// + /// + /// + public static MessagesRequestPluginsItems FromWeb(global::OpenRouter.MessagesRequestPluginsItemsVariant9? value) => new MessagesRequestPluginsItems(value); + + /// + /// + /// + public static implicit operator MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant10 value) => new MessagesRequestPluginsItems((global::OpenRouter.MessagesRequestPluginsItemsVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.MessagesRequestPluginsItemsVariant10?(MessagesRequestPluginsItems @this) => @this.WebFetch; + + /// + /// + /// + public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItemsVariant10? value) { WebFetch = value; } @@ -551,26 +611,28 @@ public MessagesRequestPluginsItems(global::OpenRouter.MessagesRequestPluginsItem /// /// /// - public static MessagesRequestPluginsItems FromWebFetch(global::OpenRouter.MessagesRequestPluginsItemsVariant9? value) => new MessagesRequestPluginsItems(value); + public static MessagesRequestPluginsItems FromWebFetch(global::OpenRouter.MessagesRequestPluginsItemsVariant10? value) => new MessagesRequestPluginsItems(value); /// /// /// public MessagesRequestPluginsItems( global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? id, - global::OpenRouter.MessagesRequestPluginsItemsVariant1? autoRouter, - global::OpenRouter.MessagesRequestPluginsItemsVariant2? contextCompression, - global::OpenRouter.MessagesRequestPluginsItemsVariant3? fileParser, - global::OpenRouter.MessagesRequestPluginsItemsVariant4? fusion, - global::OpenRouter.MessagesRequestPluginsItemsVariant5? moderation, - global::OpenRouter.MessagesRequestPluginsItemsVariant6? paretoRouter, - global::OpenRouter.MessagesRequestPluginsItemsVariant7? responseHealing, - global::OpenRouter.MessagesRequestPluginsItemsVariant8? web, - global::OpenRouter.MessagesRequestPluginsItemsVariant9? webFetch + global::OpenRouter.MessagesRequestPluginsItemsVariant1? autoBetaRouter, + global::OpenRouter.MessagesRequestPluginsItemsVariant2? autoRouter, + global::OpenRouter.MessagesRequestPluginsItemsVariant3? contextCompression, + global::OpenRouter.MessagesRequestPluginsItemsVariant4? fileParser, + global::OpenRouter.MessagesRequestPluginsItemsVariant5? fusion, + global::OpenRouter.MessagesRequestPluginsItemsVariant6? moderation, + global::OpenRouter.MessagesRequestPluginsItemsVariant7? paretoRouter, + global::OpenRouter.MessagesRequestPluginsItemsVariant8? responseHealing, + global::OpenRouter.MessagesRequestPluginsItemsVariant9? web, + global::OpenRouter.MessagesRequestPluginsItemsVariant10? webFetch ) { Id = id; + AutoBetaRouter = autoBetaRouter; AutoRouter = autoRouter; ContextCompression = contextCompression; FileParser = fileParser; @@ -594,13 +656,15 @@ Moderation as object ?? Fusion as object ?? FileParser as object ?? ContextCompression as object ?? - AutoRouter as object + AutoRouter as object ?? + AutoBetaRouter as object ; /// /// /// public override string? ToString() => + AutoBetaRouter?.ToString() ?? AutoRouter?.ToString() ?? ContextCompression?.ToString() ?? FileParser?.ToString() ?? @@ -617,22 +681,23 @@ AutoRouter as object /// public bool Validate() { - return IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; + return IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; } /// /// /// public TResult? Match( - global::System.Func? autoRouter = null, - global::System.Func? contextCompression = null, - global::System.Func? fileParser = null, - global::System.Func? fusion = null, - global::System.Func? moderation = null, - global::System.Func? paretoRouter = null, - global::System.Func? responseHealing = null, - global::System.Func? web = null, - global::System.Func? webFetch = null, + global::System.Func? autoBetaRouter = null, + global::System.Func? autoRouter = null, + global::System.Func? contextCompression = null, + global::System.Func? fileParser = null, + global::System.Func? fusion = null, + global::System.Func? moderation = null, + global::System.Func? paretoRouter = null, + global::System.Func? responseHealing = null, + global::System.Func? web = null, + global::System.Func? webFetch = null, bool validate = true) { if (validate) @@ -640,7 +705,11 @@ public bool Validate() Validate(); } - if (IsAutoRouter && autoRouter != null) + if (IsAutoBetaRouter && autoBetaRouter != null) + { + return autoBetaRouter(AutoBetaRouter!); + } + else if (IsAutoRouter && autoRouter != null) { return autoRouter(AutoRouter!); } @@ -684,23 +753,25 @@ public bool Validate() /// /// public void Match( - global::System.Action? autoRouter = null, + global::System.Action? autoBetaRouter = null, - global::System.Action? contextCompression = null, + global::System.Action? autoRouter = null, - global::System.Action? fileParser = null, + global::System.Action? contextCompression = null, - global::System.Action? fusion = null, + global::System.Action? fileParser = null, - global::System.Action? moderation = null, + global::System.Action? fusion = null, - global::System.Action? paretoRouter = null, + global::System.Action? moderation = null, - global::System.Action? responseHealing = null, + global::System.Action? paretoRouter = null, - global::System.Action? web = null, + global::System.Action? responseHealing = null, - global::System.Action? webFetch = null, + global::System.Action? web = null, + + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -708,7 +779,11 @@ public void Match( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -750,15 +825,16 @@ public void Match( /// /// public void Switch( - global::System.Action? autoRouter = null, - global::System.Action? contextCompression = null, - global::System.Action? fileParser = null, - global::System.Action? fusion = null, - global::System.Action? moderation = null, - global::System.Action? paretoRouter = null, - global::System.Action? responseHealing = null, - global::System.Action? web = null, - global::System.Action? webFetch = null, + global::System.Action? autoBetaRouter = null, + global::System.Action? autoRouter = null, + global::System.Action? contextCompression = null, + global::System.Action? fileParser = null, + global::System.Action? fusion = null, + global::System.Action? moderation = null, + global::System.Action? paretoRouter = null, + global::System.Action? responseHealing = null, + global::System.Action? web = null, + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -766,7 +842,11 @@ public void Switch( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -811,24 +891,26 @@ public override int GetHashCode() { var fields = new object?[] { - AutoRouter, + AutoBetaRouter, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant1), - ContextCompression, + AutoRouter, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant2), - FileParser, + ContextCompression, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant3), - Fusion, + FileParser, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant4), - Moderation, + Fusion, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant5), - ParetoRouter, + Moderation, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant6), - ResponseHealing, + ParetoRouter, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant7), - Web, + ResponseHealing, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant8), - WebFetch, + Web, typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9), + WebFetch, + typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -845,15 +927,16 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(MessagesRequestPluginsItems other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoBetaRouter, other.AutoBetaRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsDiscriminatorId.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsDiscriminatorId.g.cs index 902cb65b..6b19060b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsDiscriminatorId.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsDiscriminatorId.g.cs @@ -8,6 +8,10 @@ namespace OpenRouter /// public enum MessagesRequestPluginsItemsDiscriminatorId { + /// + /// + /// + AutoBetaRouter, /// /// /// @@ -58,6 +62,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsDiscriminator { return value switch { + MessagesRequestPluginsItemsDiscriminatorId.AutoBetaRouter => "auto-beta-router", MessagesRequestPluginsItemsDiscriminatorId.AutoRouter => "auto-router", MessagesRequestPluginsItemsDiscriminatorId.ContextCompression => "context-compression", MessagesRequestPluginsItemsDiscriminatorId.FileParser => "file-parser", @@ -77,6 +82,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsDiscriminator { return value switch { + "auto-beta-router" => MessagesRequestPluginsItemsDiscriminatorId.AutoBetaRouter, "auto-router" => MessagesRequestPluginsItemsDiscriminatorId.AutoRouter, "context-compression" => MessagesRequestPluginsItemsDiscriminatorId.ContextCompression, "file-parser" => MessagesRequestPluginsItemsDiscriminatorId.FileParser, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs index 47584425..1dcc7b50 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs @@ -4,31 +4,31 @@ namespace OpenRouter { /// - /// auto-router variant + /// auto-beta-router variant /// public sealed partial class MessagesRequestPluginsItemsVariant1 { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant1IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id Id { get; set; } /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] public int? CostQualityTradeoff { get; set; } /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } @@ -43,16 +43,16 @@ public sealed partial class MessagesRequestPluginsItemsVariant1 /// Initializes a new instance of the class. /// /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.Json.g.cs new file mode 100644 index 00000000..f85840a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class MessagesRequestPluginsItemsVariant10 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.MessagesRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant10), + jsonSerializerContext) as global::OpenRouter.MessagesRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.MessagesRequestPluginsItemsVariant10? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.MessagesRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.MessagesRequestPluginsItemsVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.g.cs new file mode 100644 index 00000000..c3ffb10a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant10.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web-fetch variant + /// + public sealed partial class MessagesRequestPluginsItemsVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] + public global::OpenRouter.WebFetchPluginId Id { get; set; } + + /// + /// Only fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] + public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + + /// + /// Never fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] + public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] + public int? MaxContentTokens { get; set; } + + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] + public int? MaxUses { 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. + /// + /// + /// + /// Only fetch from these domains. + /// + /// + /// Never fetch from these domains. + /// + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MessagesRequestPluginsItemsVariant10( + global::OpenRouter.WebFetchPluginId id, + global::System.Collections.Generic.IList? allowedDomains, + global::System.Collections.Generic.IList? blockedDomains, + int? maxContentTokens, + int? maxUses) + { + this.Id = id; + this.AllowedDomains = allowedDomains; + this.BlockedDomains = blockedDomains; + this.MaxContentTokens = maxContentTokens; + this.MaxUses = maxUses; + } + + /// + /// Initializes a new instance of the class. + /// + public MessagesRequestPluginsItemsVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1Id.g.cs index edfb86b6..6019cc03 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// public enum MessagesRequestPluginsItemsVariant1Id { /// - /// auto-router + /// auto-beta-router /// - AutoRouter, + AutoBetaRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant1Id va { return value switch { - MessagesRequestPluginsItemsVariant1Id.AutoRouter => "auto-router", + MessagesRequestPluginsItemsVariant1Id.AutoBetaRouter => "auto-beta-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant1Id va { return value switch { - "auto-router" => MessagesRequestPluginsItemsVariant1Id.AutoRouter, + "auto-beta-router" => MessagesRequestPluginsItemsVariant1Id.AutoBetaRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2.g.cs index 45c65044..64702f86 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2.g.cs @@ -4,29 +4,34 @@ namespace OpenRouter { /// - /// context-compression variant + /// auto-router variant /// public sealed partial class MessagesRequestPluginsItemsVariant2 { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant2IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id Id { get; set; } /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } /// - /// The compression engine to use. Defaults to "middle-out". + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] - public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,25 +43,30 @@ public sealed partial class MessagesRequestPluginsItemsVariant2 /// Initializes a new instance of the class. /// /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// - /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - /// - /// The compression engine to use. Defaults to "middle-out". + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + /// + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant2( global::OpenRouter.MessagesRequestPluginsItemsVariant2Id id, - bool? enabled, - global::OpenRouter.ContextCompressionEngine? engine) + global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, + bool? enabled) { this.Id = id; + this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; - this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2Id.g.cs index e157e56c..ea08d551 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant2Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// public enum MessagesRequestPluginsItemsVariant2Id { /// - /// context-compression + /// auto-router /// - ContextCompression, + AutoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant2Id va { return value switch { - MessagesRequestPluginsItemsVariant2Id.ContextCompression => "context-compression", + MessagesRequestPluginsItemsVariant2Id.AutoRouter => "auto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant2Id va { return value switch { - "context-compression" => MessagesRequestPluginsItemsVariant2Id.ContextCompression, + "auto-router" => MessagesRequestPluginsItemsVariant2Id.AutoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3.g.cs index 127b4364..f3f94972 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3.g.cs @@ -4,28 +4,29 @@ namespace OpenRouter { /// - /// file-parser variant + /// context-compression variant /// public sealed partial class MessagesRequestPluginsItemsVariant3 { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant3IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id Id { get; set; } /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Options for PDF parsing. + /// The compression engine to use. Defaults to "middle-out". /// - [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] - public global::OpenRouter.PDFParserOptions? Pdf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] + public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,13 +38,13 @@ public sealed partial class MessagesRequestPluginsItemsVariant3 /// Initializes a new instance of the class. /// /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// - /// - /// Options for PDF parsing. + /// + /// The compression engine to use. Defaults to "middle-out". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +52,11 @@ public sealed partial class MessagesRequestPluginsItemsVariant3 public MessagesRequestPluginsItemsVariant3( global::OpenRouter.MessagesRequestPluginsItemsVariant3Id id, bool? enabled, - global::OpenRouter.PDFParserOptions? pdf) + global::OpenRouter.ContextCompressionEngine? engine) { this.Id = id; this.Enabled = enabled; - this.Pdf = pdf; + this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3Id.g.cs index 82273114..b049dcf6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant3Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// public enum MessagesRequestPluginsItemsVariant3Id { /// - /// file-parser + /// context-compression /// - FileParser, + ContextCompression, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant3Id va { return value switch { - MessagesRequestPluginsItemsVariant3Id.FileParser => "file-parser", + MessagesRequestPluginsItemsVariant3Id.ContextCompression => "context-compression", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant3Id va { return value switch { - "file-parser" => MessagesRequestPluginsItemsVariant3Id.FileParser, + "context-compression" => MessagesRequestPluginsItemsVariant3Id.ContextCompression, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4.g.cs index bbf9e8a8..169a7939 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4.g.cs @@ -4,53 +4,28 @@ namespace OpenRouter { /// - /// fusion variant + /// file-parser variant /// public sealed partial class MessagesRequestPluginsItemsVariant4 { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant4IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id Id { get; set; } /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] - public global::System.Collections.Generic.IList? AnalysisModels { get; set; } - - /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] - public int? MaxToolCalls { get; set; } - - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } - - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// Options for PDF parsing. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] + public global::OpenRouter.PDFParserOptions? Pdf { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,45 +37,25 @@ public sealed partial class MessagesRequestPluginsItemsVariant4 /// Initializes a new instance of the class. /// /// - /// Discriminator value: fusion - /// - /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// Discriminator value: file-parser /// /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. - /// - /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + /// Options for PDF parsing. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant4( global::OpenRouter.MessagesRequestPluginsItemsVariant4Id id, - global::System.Collections.Generic.IList? analysisModels, bool? enabled, - int? maxToolCalls, - string? model, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, - global::System.Collections.Generic.IList? tools) + global::OpenRouter.PDFParserOptions? pdf) { this.Id = id; - this.AnalysisModels = analysisModels; this.Enabled = enabled; - this.MaxToolCalls = maxToolCalls; - this.Model = model; - this.Preset = preset; - this.Tools = tools; + this.Pdf = pdf; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4Id.g.cs index 200f2a21..da1efe04 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant4Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// public enum MessagesRequestPluginsItemsVariant4Id { /// - /// fusion + /// file-parser /// - Fusion, + FileParser, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant4Id va { return value switch { - MessagesRequestPluginsItemsVariant4Id.Fusion => "fusion", + MessagesRequestPluginsItemsVariant4Id.FileParser => "file-parser", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant4Id va { return value switch { - "fusion" => MessagesRequestPluginsItemsVariant4Id.Fusion, + "file-parser" => MessagesRequestPluginsItemsVariant4Id.FileParser, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5.g.cs index 6d693073..d820a1f9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5.g.cs @@ -4,17 +4,54 @@ namespace OpenRouter { /// - /// moderation variant + /// fusion variant /// public sealed partial class MessagesRequestPluginsItemsVariant5 { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant5IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id Id { get; set; } + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] + public global::System.Collections.Generic.IList? AnalysisModels { get; set; } + + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] + public int? MaxToolCalls { get; set; } + + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preset")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } + + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -25,15 +62,45 @@ public sealed partial class MessagesRequestPluginsItemsVariant5 /// Initializes a new instance of the class. /// /// - /// Discriminator value: moderation + /// Discriminator value: fusion + /// + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant5( - global::OpenRouter.MessagesRequestPluginsItemsVariant5Id id) + global::OpenRouter.MessagesRequestPluginsItemsVariant5Id id, + global::System.Collections.Generic.IList? analysisModels, + bool? enabled, + int? maxToolCalls, + string? model, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, + global::System.Collections.Generic.IList? tools) { this.Id = id; + this.AnalysisModels = analysisModels; + this.Enabled = enabled; + this.MaxToolCalls = maxToolCalls; + this.Model = model; + this.Preset = preset; + this.Tools = tools; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5Id.g.cs index a3d4ecdc..283971ef 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant5Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// public enum MessagesRequestPluginsItemsVariant5Id { /// - /// moderation + /// fusion /// - Moderation, + Fusion, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant5Id va { return value switch { - MessagesRequestPluginsItemsVariant5Id.Moderation => "moderation", + MessagesRequestPluginsItemsVariant5Id.Fusion => "fusion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant5Id va { return value switch { - "moderation" => MessagesRequestPluginsItemsVariant5Id.Moderation, + "fusion" => MessagesRequestPluginsItemsVariant5Id.Fusion, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6.g.cs index d281566c..6e0def49 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6.g.cs @@ -4,29 +4,17 @@ namespace OpenRouter { /// - /// pareto-router variant + /// moderation variant /// public sealed partial class MessagesRequestPluginsItemsVariant6 { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant6IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id Id { get; set; } - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] - public double? MinCodingScore { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,25 +25,15 @@ public sealed partial class MessagesRequestPluginsItemsVariant6 /// Initializes a new instance of the class. /// /// - /// Discriminator value: pareto-router - /// - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. + /// Discriminator value: moderation /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant6( - global::OpenRouter.MessagesRequestPluginsItemsVariant6Id id, - bool? enabled, - double? minCodingScore) + global::OpenRouter.MessagesRequestPluginsItemsVariant6Id id) { this.Id = id; - this.Enabled = enabled; - this.MinCodingScore = minCodingScore; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6Id.g.cs index 9219c973..96a32a0d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant6Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// public enum MessagesRequestPluginsItemsVariant6Id { /// - /// pareto-router + /// moderation /// - ParetoRouter, + Moderation, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant6Id va { return value switch { - MessagesRequestPluginsItemsVariant6Id.ParetoRouter => "pareto-router", + MessagesRequestPluginsItemsVariant6Id.Moderation => "moderation", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant6Id va { return value switch { - "pareto-router" => MessagesRequestPluginsItemsVariant6Id.ParetoRouter, + "moderation" => MessagesRequestPluginsItemsVariant6Id.Moderation, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7.g.cs index 94e44c1e..8448469f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7.g.cs @@ -4,23 +4,36 @@ namespace OpenRouter { /// - /// response-healing variant + /// pareto-router variant /// public sealed partial class MessagesRequestPluginsItemsVariant7 { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdJsonConverter))] public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id Id { get; set; } /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] + public double? MinCodingScore { get; set; } + + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("price_source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? PriceSource { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -31,20 +44,30 @@ public sealed partial class MessagesRequestPluginsItemsVariant7 /// Initializes a new instance of the class. /// /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. + /// + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant7( global::OpenRouter.MessagesRequestPluginsItemsVariant7Id id, - bool? enabled) + bool? enabled, + double? minCodingScore, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? priceSource) { this.Id = id; this.Enabled = enabled; + this.MinCodingScore = minCodingScore; + this.PriceSource = priceSource; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7Id.g.cs index e426bda9..18dbaf8d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant7Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// public enum MessagesRequestPluginsItemsVariant7Id { /// - /// response-healing + /// pareto-router /// - ResponseHealing, + ParetoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant7Id va { return value switch { - MessagesRequestPluginsItemsVariant7Id.ResponseHealing => "response-healing", + MessagesRequestPluginsItemsVariant7Id.ParetoRouter => "pareto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this MessagesRequestPluginsItemsVariant7Id va { return value switch { - "response-healing" => MessagesRequestPluginsItemsVariant7Id.ResponseHealing, + "pareto-router" => MessagesRequestPluginsItemsVariant7Id.ParetoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8.g.cs index 67b0dcb3..e586e5b9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8.g.cs @@ -4,66 +4,23 @@ namespace OpenRouter { /// - /// web variant + /// response-healing variant /// public sealed partial class MessagesRequestPluginsItemsVariant8 { /// - /// + /// Discriminator value: response-healing /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] - public global::OpenRouter.WebSearchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant8IdJsonConverter))] + public global::OpenRouter.MessagesRequestPluginsItemsVariant8Id Id { get; set; } /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } - /// - /// The search engine to use for web search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] - public global::OpenRouter.WebSearchEngine? Engine { get; set; } - - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] - public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } - - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] - public global::System.Collections.Generic.IList? IncludeDomains { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] - public int? MaxResults { get; set; } - - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] - public int? MaxUses { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] - public string? SearchPrompt { get; set; } - - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] - public global::OpenRouter.WebSearchPluginUserLocation? UserLocation { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -73,50 +30,21 @@ public sealed partial class MessagesRequestPluginsItemsVariant8 /// /// Initializes a new instance of the class. /// - /// - /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. - /// - /// - /// The search engine to use for web search. - /// - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + /// Discriminator value: response-healing /// - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - /// - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - /// - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). + /// + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant8( - global::OpenRouter.WebSearchPluginId id, - bool? enabled, - global::OpenRouter.WebSearchEngine? engine, - global::System.Collections.Generic.IList? excludeDomains, - global::System.Collections.Generic.IList? includeDomains, - int? maxResults, - int? maxUses, - string? searchPrompt, - global::OpenRouter.WebSearchPluginUserLocation? userLocation) + global::OpenRouter.MessagesRequestPluginsItemsVariant8Id id, + bool? enabled) { this.Id = id; this.Enabled = enabled; - this.Engine = engine; - this.ExcludeDomains = excludeDomains; - this.IncludeDomains = includeDomains; - this.MaxResults = maxResults; - this.MaxUses = maxUses; - this.SearchPrompt = searchPrompt; - this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..8ea869ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: response-healing + /// + public enum MessagesRequestPluginsItemsVariant8Id + { + /// + /// response-healing + /// + ResponseHealing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class MessagesRequestPluginsItemsVariant8IdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this MessagesRequestPluginsItemsVariant8Id value) + { + return value switch + { + MessagesRequestPluginsItemsVariant8Id.ResponseHealing => "response-healing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static MessagesRequestPluginsItemsVariant8Id? ToEnum(string value) + { + return value switch + { + "response-healing" => MessagesRequestPluginsItemsVariant8Id.ResponseHealing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant9.g.cs index 632b7a3d..a295abcf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant9.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web-fetch variant + /// web variant /// public sealed partial class MessagesRequestPluginsItemsVariant9 { @@ -12,33 +12,59 @@ public sealed partial class MessagesRequestPluginsItemsVariant9 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] - public global::OpenRouter.WebFetchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] + public global::OpenRouter.WebSearchPluginId Id { get; set; } /// - /// Only fetch from these domains. + /// Set to false to disable the web-search plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] - public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// - /// Never fetch from these domains. + /// The search engine to use for web search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] - public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] + public global::OpenRouter.WebSearchEngine? Engine { get; set; } /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] - public int? MaxContentTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] + public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] + public global::System.Collections.Generic.IList? IncludeDomains { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] + public int? MaxResults { get; set; } + + /// + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] public int? MaxUses { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] + public string? SearchPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? UserLocation { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,33 +75,47 @@ public sealed partial class MessagesRequestPluginsItemsVariant9 /// Initializes a new instance of the class. /// /// - /// - /// Only fetch from these domains. + /// + /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// + /// + /// The search engine to use for web search. /// - /// - /// Never fetch from these domains. + /// + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// + /// /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessagesRequestPluginsItemsVariant9( - global::OpenRouter.WebFetchPluginId id, - global::System.Collections.Generic.IList? allowedDomains, - global::System.Collections.Generic.IList? blockedDomains, - int? maxContentTokens, - int? maxUses) + global::OpenRouter.WebSearchPluginId id, + bool? enabled, + global::OpenRouter.WebSearchEngine? engine, + global::System.Collections.Generic.IList? excludeDomains, + global::System.Collections.Generic.IList? includeDomains, + int? maxResults, + int? maxUses, + string? searchPrompt, + global::OpenRouter.OneOf? userLocation) { this.Id = id; - this.AllowedDomains = allowedDomains; - this.BlockedDomains = blockedDomains; - this.MaxContentTokens = maxContentTokens; + this.Enabled = enabled; + this.Engine = engine; + this.ExcludeDomains = excludeDomains; + this.IncludeDomains = includeDomains; + this.MaxResults = maxResults; this.MaxUses = maxUses; + this.SearchPrompt = searchPrompt; + this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs index 2d955899..d2b930d5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs @@ -346,38 +346,38 @@ public bool TryPickImageGenerationServerToolOpenRouter( /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatSearchModelsServerTool? ChatSearchModelsServerTool { get; init; } + public global::OpenRouter.MessagesSearchModelsServerTool? MessagesSearchModelsServerTool { get; init; } #else - public global::OpenRouter.ChatSearchModelsServerTool? ChatSearchModelsServerTool { get; } + public global::OpenRouter.MessagesSearchModelsServerTool? MessagesSearchModelsServerTool { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatSearchModelsServerTool))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessagesSearchModelsServerTool))] #endif - public bool IsChatSearchModelsServerTool => ChatSearchModelsServerTool != null; + public bool IsMessagesSearchModelsServerTool => MessagesSearchModelsServerTool != null; /// /// /// - public bool TryPickChatSearchModelsServerTool( + public bool TryPickMessagesSearchModelsServerTool( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatSearchModelsServerTool? value) + out global::OpenRouter.MessagesSearchModelsServerTool? value) { - value = ChatSearchModelsServerTool; - return IsChatSearchModelsServerTool; + value = MessagesSearchModelsServerTool; + return IsMessagesSearchModelsServerTool; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerTool PickChatSearchModelsServerTool() => IsChatSearchModelsServerTool - ? ChatSearchModelsServerTool! - : throw new global::System.InvalidOperationException($"Expected union variant 'ChatSearchModelsServerTool' but the value was {ToString()}."); + public global::OpenRouter.MessagesSearchModelsServerTool PickMessagesSearchModelsServerTool() => IsMessagesSearchModelsServerTool + ? MessagesSearchModelsServerTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'MessagesSearchModelsServerTool' but the value was {ToString()}."); /// /// OpenRouter built-in server tool: fetches full content from a URL (web page or PDF) @@ -699,25 +699,25 @@ public MessagesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOpe /// /// /// - public static implicit operator MessagesRequestToolsItems(global::OpenRouter.ChatSearchModelsServerTool value) => new MessagesRequestToolsItems((global::OpenRouter.ChatSearchModelsServerTool?)value); + public static implicit operator MessagesRequestToolsItems(global::OpenRouter.MessagesSearchModelsServerTool value) => new MessagesRequestToolsItems((global::OpenRouter.MessagesSearchModelsServerTool?)value); /// /// /// - public static implicit operator global::OpenRouter.ChatSearchModelsServerTool?(MessagesRequestToolsItems @this) => @this.ChatSearchModelsServerTool; + public static implicit operator global::OpenRouter.MessagesSearchModelsServerTool?(MessagesRequestToolsItems @this) => @this.MessagesSearchModelsServerTool; /// /// /// - public MessagesRequestToolsItems(global::OpenRouter.ChatSearchModelsServerTool? value) + public MessagesRequestToolsItems(global::OpenRouter.MessagesSearchModelsServerTool? value) { - ChatSearchModelsServerTool = value; + MessagesSearchModelsServerTool = value; } /// /// /// - public static MessagesRequestToolsItems FromChatSearchModelsServerTool(global::OpenRouter.ChatSearchModelsServerTool? value) => new MessagesRequestToolsItems(value); + public static MessagesRequestToolsItems FromMessagesSearchModelsServerTool(global::OpenRouter.MessagesSearchModelsServerTool? value) => new MessagesRequestToolsItems(value); /// /// @@ -801,7 +801,7 @@ public MessagesRequestToolsItems( global::OpenRouter.BashServerTool? bashServerTool, global::OpenRouter.DatetimeServerTool? datetimeServerTool, global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, - global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, + global::OpenRouter.MessagesSearchModelsServerTool? messagesSearchModelsServerTool, global::OpenRouter.WebFetchServerTool? webFetchServerTool, global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool, global::OpenRouter.MessagesRequestToolsItems12? messagesRequestToolsItems12 @@ -816,7 +816,7 @@ public MessagesRequestToolsItems( BashServerTool = bashServerTool; DatetimeServerTool = datetimeServerTool; ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; - ChatSearchModelsServerTool = chatSearchModelsServerTool; + MessagesSearchModelsServerTool = messagesSearchModelsServerTool; WebFetchServerTool = webFetchServerTool; OpenRouterWebSearchServerTool = openRouterWebSearchServerTool; MessagesRequestToolsItems12 = messagesRequestToolsItems12; @@ -829,7 +829,7 @@ public MessagesRequestToolsItems( MessagesRequestToolsItems12 as object ?? OpenRouterWebSearchServerTool as object ?? WebFetchServerTool as object ?? - ChatSearchModelsServerTool as object ?? + MessagesSearchModelsServerTool as object ?? ImageGenerationServerToolOpenRouter as object ?? DatetimeServerTool as object ?? BashServerTool as object ?? @@ -854,7 +854,7 @@ MessagesRequestToolsItems0 as object BashServerTool?.ToString() ?? DatetimeServerTool?.ToString() ?? ImageGenerationServerToolOpenRouter?.ToString() ?? - ChatSearchModelsServerTool?.ToString() ?? + MessagesSearchModelsServerTool?.ToString() ?? WebFetchServerTool?.ToString() ?? OpenRouterWebSearchServerTool?.ToString() ?? MessagesRequestToolsItems12?.ToString() @@ -865,7 +865,7 @@ MessagesRequestToolsItems0 as object /// public bool Validate() { - return IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && IsMessagesRequestToolsItems12; + return IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && IsOpenRouterWebSearchServerTool && !IsMessagesRequestToolsItems12 || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsMessagesRequestToolsItems5 && !IsBashServerTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsMessagesSearchModelsServerTool && !IsWebFetchServerTool && !IsOpenRouterWebSearchServerTool && IsMessagesRequestToolsItems12; } /// @@ -881,7 +881,7 @@ public bool Validate() global::System.Func? bashServerTool = null, global::System.Func? datetimeServerTool = null, global::System.Func? imageGenerationServerToolOpenRouter = null, - global::System.Func? chatSearchModelsServerTool = null, + global::System.Func? messagesSearchModelsServerTool = null, global::System.Func? webFetchServerTool = null, global::System.Func? openRouterWebSearchServerTool = null, global::System.Func? messagesRequestToolsItems12 = null, @@ -928,9 +928,9 @@ public bool Validate() { return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool && chatSearchModelsServerTool != null) + else if (IsMessagesSearchModelsServerTool && messagesSearchModelsServerTool != null) { - return chatSearchModelsServerTool(ChatSearchModelsServerTool!); + return messagesSearchModelsServerTool(MessagesSearchModelsServerTool!); } else if (IsWebFetchServerTool && webFetchServerTool != null) { @@ -970,7 +970,7 @@ public void Match( global::System.Action? imageGenerationServerToolOpenRouter = null, - global::System.Action? chatSearchModelsServerTool = null, + global::System.Action? messagesSearchModelsServerTool = null, global::System.Action? webFetchServerTool = null, @@ -1020,9 +1020,9 @@ public void Match( { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool) + else if (IsMessagesSearchModelsServerTool) { - chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); + messagesSearchModelsServerTool?.Invoke(MessagesSearchModelsServerTool!); } else if (IsWebFetchServerTool) { @@ -1051,7 +1051,7 @@ public void Switch( global::System.Action? bashServerTool = null, global::System.Action? datetimeServerTool = null, global::System.Action? imageGenerationServerToolOpenRouter = null, - global::System.Action? chatSearchModelsServerTool = null, + global::System.Action? messagesSearchModelsServerTool = null, global::System.Action? webFetchServerTool = null, global::System.Action? openRouterWebSearchServerTool = null, global::System.Action? messagesRequestToolsItems12 = null, @@ -1098,9 +1098,9 @@ public void Switch( { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool) + else if (IsMessagesSearchModelsServerTool) { - chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); + messagesSearchModelsServerTool?.Invoke(MessagesSearchModelsServerTool!); } else if (IsWebFetchServerTool) { @@ -1141,8 +1141,8 @@ public override int GetHashCode() typeof(global::OpenRouter.DatetimeServerTool), ImageGenerationServerToolOpenRouter, typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), - ChatSearchModelsServerTool, - typeof(global::OpenRouter.ChatSearchModelsServerTool), + MessagesSearchModelsServerTool, + typeof(global::OpenRouter.MessagesSearchModelsServerTool), WebFetchServerTool, typeof(global::OpenRouter.WebFetchServerTool), OpenRouterWebSearchServerTool, @@ -1174,7 +1174,7 @@ public bool Equals(MessagesRequestToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(BashServerTool, other.BashServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesSearchModelsServerTool, other.MessagesSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetchServerTool, other.WebFetchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenRouterWebSearchServerTool, other.OpenRouterWebSearchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesRequestToolsItems12, other.MessagesRequestToolsItems12) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems0.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems0.g.cs index 105e4f96..f0ace5ba 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems0.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems0.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesRequestToolsItems0 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -53,7 +53,7 @@ public sealed partial class MessagesRequestToolsItems0 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems1.g.cs index 8c0a9f6a..4760a9b5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems1.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesRequestToolsItems1 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -38,7 +38,7 @@ public sealed partial class MessagesRequestToolsItems1 /// Initializes a new instance of the class. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems2.g.cs index f51637da..fe8e2780 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems2.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesRequestToolsItems2 { /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -38,7 +38,7 @@ public sealed partial class MessagesRequestToolsItems2 /// Initializes a new instance of the class. /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems3.g.cs index 4dd87be9..098e253d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems3.g.cs @@ -21,7 +21,7 @@ public sealed partial class MessagesRequestToolsItems3 public global::System.Collections.Generic.IList? BlockedDomains { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -64,7 +64,7 @@ public sealed partial class MessagesRequestToolsItems3 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems4.g.cs index e1795b0a..1d58b115 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems4.g.cs @@ -27,7 +27,7 @@ public sealed partial class MessagesRequestToolsItems4 public global::System.Collections.Generic.IList? BlockedDomains { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -71,7 +71,7 @@ public sealed partial class MessagesRequestToolsItems4 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems5.g.cs index dea739e0..fc288277 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems5.g.cs @@ -15,16 +15,17 @@ public sealed partial class MessagesRequestToolsItems5 public global::System.Collections.Generic.IList? AllowedCallers { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("caching")] - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Caching { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Caching { get; set; } /// /// @@ -71,11 +72,9 @@ public sealed partial class MessagesRequestToolsItems5 /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. - /// - /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// + /// /// /// /// @@ -87,7 +86,7 @@ public MessagesRequestToolsItems5( string model, global::System.Collections.Generic.IList? allowedCallers, global::OpenRouter.AnthropicCacheControlDirective? cacheControl, - global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? caching, + global::OpenRouter.OneOf? caching, bool? deferLoading, int? maxUses, global::OpenRouter.MessagesRequestToolsItemsOneOf5Name name, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf0InputSchema.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf0InputSchema.g.cs index 580a7d7a..3c8f3ac7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf0InputSchema.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf0InputSchema.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class MessagesRequestToolsItemsOneOf0InputSchema { /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("properties")] public object? Properties { get; set; } @@ -35,7 +35,9 @@ public sealed partial class MessagesRequestToolsItemsOneOf0InputSchema /// /// Initializes a new instance of the class. /// - /// + /// + /// Any type + /// /// /// /// Default Value: object diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.Json.g.cs deleted file mode 100644 index 09acd9f5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class MessagesRequestToolsItemsOneOf5Caching - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching), - jsonSerializerContext) as global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.MessagesRequestToolsItemsOneOf5Caching? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.MessagesRequestToolsItemsOneOf5Caching), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.g.cs deleted file mode 100644 index ffeb7fa8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5Caching.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. - /// - public sealed partial class MessagesRequestToolsItemsOneOf5Caching - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnthropicCacheControlTtlJsonConverter))] - public global::OpenRouter.AnthropicCacheControlTtl? Ttl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesRequestToolsItemsOneOf5CachingTypeJsonConverter))] - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType 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 MessagesRequestToolsItemsOneOf5Caching( - global::OpenRouter.AnthropicCacheControlTtl? ttl, - global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType type) - { - this.Ttl = ttl; - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public MessagesRequestToolsItemsOneOf5Caching() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5CachingType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5CachingType.g.cs deleted file mode 100644 index 328c36a1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItemsOneOf5CachingType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum MessagesRequestToolsItemsOneOf5CachingType - { - /// - /// - /// - Ephemeral, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class MessagesRequestToolsItemsOneOf5CachingTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this MessagesRequestToolsItemsOneOf5CachingType value) - { - return value switch - { - MessagesRequestToolsItemsOneOf5CachingType.Ephemeral => "ephemeral", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static MessagesRequestToolsItemsOneOf5CachingType? ToEnum(string value) - { - return value switch - { - "ephemeral" => MessagesRequestToolsItemsOneOf5CachingType.Ephemeral, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.Json.g.cs new file mode 100644 index 00000000..2751da6d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class MessagesSearchModelsServerTool + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.MessagesSearchModelsServerTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.MessagesSearchModelsServerTool), + jsonSerializerContext) as global::OpenRouter.MessagesSearchModelsServerTool; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.MessagesSearchModelsServerTool? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.MessagesSearchModelsServerTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.MessagesSearchModelsServerTool), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.MessagesSearchModelsServerTool; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.g.cs new file mode 100644 index 00000000..0428667e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerTool.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter + /// + public sealed partial class MessagesSearchModelsServerTool + { + /// + /// Configuration for the openrouter:experimental__search_models server tool + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::OpenRouter.SearchModelsServerToolConfig? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.MessagesSearchModelsServerToolTypeJsonConverter))] + public global::OpenRouter.MessagesSearchModelsServerToolType 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. + /// + /// + /// Configuration for the openrouter:experimental__search_models server tool + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MessagesSearchModelsServerTool( + global::OpenRouter.SearchModelsServerToolConfig? parameters, + global::OpenRouter.MessagesSearchModelsServerToolType type) + { + this.Parameters = parameters; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public MessagesSearchModelsServerTool() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerToolType.g.cs new file mode 100644 index 00000000..a685dad7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesSearchModelsServerToolType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum MessagesSearchModelsServerToolType + { + /// + /// + /// + Openrouter_experimentalSearchModels, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class MessagesSearchModelsServerToolTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this MessagesSearchModelsServerToolType value) + { + return value switch + { + MessagesSearchModelsServerToolType.Openrouter_experimentalSearchModels => "openrouter:experimental__search_models", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static MessagesSearchModelsServerToolType? ToEnum(string value) + { + return value switch + { + "openrouter:experimental__search_models" => MessagesSearchModelsServerToolType.Openrouter_experimentalSearchModels, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitecture.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitecture.g.cs index 8ea778cb..66b43e2e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitecture.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitecture.g.cs @@ -19,8 +19,8 @@ public sealed partial class ModelArchitecture /// Instruction format type /// [global::System.Text.Json.Serialization.JsonPropertyName("instruct_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? InstructType { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.InstructTypeJsonConverter))] + public global::OpenRouter.InstructType? InstructType { get; set; } /// /// Primary modality of the model @@ -72,7 +72,7 @@ public sealed partial class ModelArchitecture public ModelArchitecture( global::System.Collections.Generic.IList inputModalities, global::System.Collections.Generic.IList outputModalities, - global::OpenRouter.OneOf? instructType, + global::OpenRouter.InstructType? instructType, string? modality, global::OpenRouter.ModelGroup? tokenizer) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitectureInstructType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitectureInstructType.g.cs deleted file mode 100644 index 6f03f3b6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelArchitectureInstructType.g.cs +++ /dev/null @@ -1,171 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Instruction format type - /// - public enum ModelArchitectureInstructType - { - /// - /// - /// - Airoboros, - /// - /// - /// - Alpaca, - /// - /// - /// - AlpacaModif, - /// - /// - /// - Chatml, - /// - /// - /// - Claude, - /// - /// - /// - CodeLlama, - /// - /// - /// - DeepseekR1, - /// - /// - /// - DeepseekV31, - /// - /// - /// - Gemma, - /// - /// - /// - Llama2, - /// - /// - /// - Llama3, - /// - /// - /// - Mistral, - /// - /// - /// - Nemotron, - /// - /// - /// - Neural, - /// - /// - /// - None, - /// - /// - /// - Openchat, - /// - /// - /// - Phi3, - /// - /// - /// - Qwen3, - /// - /// - /// - Qwq, - /// - /// - /// - Rwkv, - /// - /// - /// - Vicuna, - /// - /// - /// - Zephyr, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ModelArchitectureInstructTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ModelArchitectureInstructType value) - { - return value switch - { - ModelArchitectureInstructType.Airoboros => "airoboros", - ModelArchitectureInstructType.Alpaca => "alpaca", - ModelArchitectureInstructType.AlpacaModif => "alpaca-modif", - ModelArchitectureInstructType.Chatml => "chatml", - ModelArchitectureInstructType.Claude => "claude", - ModelArchitectureInstructType.CodeLlama => "code-llama", - ModelArchitectureInstructType.DeepseekR1 => "deepseek-r1", - ModelArchitectureInstructType.DeepseekV31 => "deepseek-v3.1", - ModelArchitectureInstructType.Gemma => "gemma", - ModelArchitectureInstructType.Llama2 => "llama2", - ModelArchitectureInstructType.Llama3 => "llama3", - ModelArchitectureInstructType.Mistral => "mistral", - ModelArchitectureInstructType.Nemotron => "nemotron", - ModelArchitectureInstructType.Neural => "neural", - ModelArchitectureInstructType.None => "none", - ModelArchitectureInstructType.Openchat => "openchat", - ModelArchitectureInstructType.Phi3 => "phi3", - ModelArchitectureInstructType.Qwen3 => "qwen3", - ModelArchitectureInstructType.Qwq => "qwq", - ModelArchitectureInstructType.Rwkv => "rwkv", - ModelArchitectureInstructType.Vicuna => "vicuna", - ModelArchitectureInstructType.Zephyr => "zephyr", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ModelArchitectureInstructType? ToEnum(string value) - { - return value switch - { - "airoboros" => ModelArchitectureInstructType.Airoboros, - "alpaca" => ModelArchitectureInstructType.Alpaca, - "alpaca-modif" => ModelArchitectureInstructType.AlpacaModif, - "chatml" => ModelArchitectureInstructType.Chatml, - "claude" => ModelArchitectureInstructType.Claude, - "code-llama" => ModelArchitectureInstructType.CodeLlama, - "deepseek-r1" => ModelArchitectureInstructType.DeepseekR1, - "deepseek-v3.1" => ModelArchitectureInstructType.DeepseekV31, - "gemma" => ModelArchitectureInstructType.Gemma, - "llama2" => ModelArchitectureInstructType.Llama2, - "llama3" => ModelArchitectureInstructType.Llama3, - "mistral" => ModelArchitectureInstructType.Mistral, - "nemotron" => ModelArchitectureInstructType.Nemotron, - "neural" => ModelArchitectureInstructType.Neural, - "none" => ModelArchitectureInstructType.None, - "openchat" => ModelArchitectureInstructType.Openchat, - "phi3" => ModelArchitectureInstructType.Phi3, - "qwen3" => ModelArchitectureInstructType.Qwen3, - "qwq" => ModelArchitectureInstructType.Qwq, - "rwkv" => ModelArchitectureInstructType.Rwkv, - "vicuna" => ModelArchitectureInstructType.Vicuna, - "zephyr" => ModelArchitectureInstructType.Zephyr, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs index 614ca291..5b90c1fb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs @@ -4,48 +4,56 @@ namespace OpenRouter { /// - /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// public enum ModelsGetParametersSort { /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// + AgenticHighToLow, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// + CodingHighToLow, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// ContextHighToLow, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// DesignArenaEloHighToLow, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// IntelligenceHighToLow, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// LatencyLowToHigh, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// MostPopular, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// Newest, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// PricingHighToLow, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// PricingLowToHigh, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// ThroughputHighToLow, /// - /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// TopWeekly, } @@ -62,6 +70,8 @@ public static string ToValueString(this ModelsGetParametersSort value) { return value switch { + ModelsGetParametersSort.AgenticHighToLow => "agentic-high-to-low", + ModelsGetParametersSort.CodingHighToLow => "coding-high-to-low", ModelsGetParametersSort.ContextHighToLow => "context-high-to-low", ModelsGetParametersSort.DesignArenaEloHighToLow => "design-arena-elo-high-to-low", ModelsGetParametersSort.IntelligenceHighToLow => "intelligence-high-to-low", @@ -82,6 +92,8 @@ public static string ToValueString(this ModelsGetParametersSort value) { return value switch { + "agentic-high-to-low" => ModelsGetParametersSort.AgenticHighToLow, + "coding-high-to-low" => ModelsGetParametersSort.CodingHighToLow, "context-high-to-low" => ModelsGetParametersSort.ContextHighToLow, "design-arena-elo-high-to-low" => ModelsGetParametersSort.DesignArenaEloHighToLow, "intelligence-high-to-low" => ModelsGetParametersSort.IntelligenceHighToLow, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponse.g.cs index 5d5ae78a..02990cb5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponse.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponse.g.cs @@ -15,6 +15,20 @@ public sealed partial class ModelsListResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Data { get; set; } + /// + /// Pagination links + /// + [global::System.Text.Json.Serialization.JsonPropertyName("links")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ModelsListResponseLinks Links { get; set; } + + /// + /// Total number of models matching the query + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +41,23 @@ public sealed partial class ModelsListResponse /// /// List of available models /// + /// + /// Pagination links + /// + /// + /// Total number of models matching the query + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModelsListResponse( - global::System.Collections.Generic.IList data) + global::System.Collections.Generic.IList data, + global::OpenRouter.ModelsListResponseLinks links, + int totalCount) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Links = links ?? throw new global::System.ArgumentNullException(nameof(links)); + this.TotalCount = totalCount; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.Json.g.cs new file mode 100644 index 00000000..b996f64e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ModelsListResponseLinks + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ModelsListResponseLinks? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ModelsListResponseLinks), + jsonSerializerContext) as global::OpenRouter.ModelsListResponseLinks; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ModelsListResponseLinks? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ModelsListResponseLinks? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ModelsListResponseLinks), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ModelsListResponseLinks; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.g.cs new file mode 100644 index 00000000..1e74e73e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsListResponseLinks.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Pagination links + /// + public sealed partial class ModelsListResponseLinks + { + /// + /// URL for the next page of results, or null if this is the last page + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next")] + public string? Next { 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. + /// + /// + /// URL for the next page of results, or null if this is the last page + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ModelsListResponseLinks( + string? next) + { + this.Next = next; + } + + /// + /// Initializes a new instance of the class. + /// + public ModelsListResponseLinks() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.Json.g.cs new file mode 100644 index 00000000..2470eb34 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceFunctionTool + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceFunctionTool), + jsonSerializerContext) as global::OpenRouter.NamespaceFunctionTool; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionTool? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceFunctionTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceFunctionTool), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceFunctionTool; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.g.cs new file mode 100644 index 00000000..6ae90214 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionTool.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A function tool grouped inside a namespace tool + /// + public sealed partial class NamespaceFunctionTool + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_callers")] + public global::System.Collections.Generic.IList? AllowedCallers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("defer_loading")] + public bool? DeferLoading { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public object? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("strict")] + public bool? Strict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.NamespaceFunctionToolTypeJsonConverter))] + public global::OpenRouter.NamespaceFunctionToolType 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 NamespaceFunctionTool( + string name, + global::System.Collections.Generic.IList? allowedCallers, + bool? deferLoading, + string? description, + object? outputSchema, + object? parameters, + bool? strict, + global::OpenRouter.NamespaceFunctionToolType type) + { + this.AllowedCallers = allowedCallers; + this.DeferLoading = deferLoading; + this.Description = description; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.OutputSchema = outputSchema; + this.Parameters = parameters; + this.Strict = strict; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public NamespaceFunctionTool() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolAllowedCallersItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolAllowedCallersItems.g.cs new file mode 100644 index 00000000..43127905 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolAllowedCallersItems.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum NamespaceFunctionToolAllowedCallersItems + { + /// + /// + /// + Direct, + /// + /// + /// + Programmatic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NamespaceFunctionToolAllowedCallersItemsExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NamespaceFunctionToolAllowedCallersItems value) + { + return value switch + { + NamespaceFunctionToolAllowedCallersItems.Direct => "direct", + NamespaceFunctionToolAllowedCallersItems.Programmatic => "programmatic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NamespaceFunctionToolAllowedCallersItems? ToEnum(string value) + { + return value switch + { + "direct" => NamespaceFunctionToolAllowedCallersItems.Direct, + "programmatic" => NamespaceFunctionToolAllowedCallersItems.Programmatic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.Json.g.cs new file mode 100644 index 00000000..541f428e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceFunctionToolOutputSchema + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceFunctionToolOutputSchema), + jsonSerializerContext) as global::OpenRouter.NamespaceFunctionToolOutputSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolOutputSchema? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceFunctionToolOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceFunctionToolOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceFunctionToolOutputSchema; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.g.cs new file mode 100644 index 00000000..281948f7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class NamespaceFunctionToolOutputSchema + { + + /// + /// 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.NamespaceFunctionToolOutputSchema2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema2.Json.g.cs new file mode 100644 index 00000000..51bd2721 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceFunctionToolOutputSchema2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolOutputSchema2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceFunctionToolOutputSchema2), + jsonSerializerContext) as global::OpenRouter.NamespaceFunctionToolOutputSchema2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolOutputSchema2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceFunctionToolOutputSchema2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceFunctionToolOutputSchema2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceFunctionToolOutputSchema2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema2.g.cs new file mode 100644 index 00000000..5767be55 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolOutputSchema2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class NamespaceFunctionToolOutputSchema2 + { + + /// + /// 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.NamespaceFunctionToolParameters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters.Json.g.cs new file mode 100644 index 00000000..23bef3fd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceFunctionToolParameters + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceFunctionToolParameters), + jsonSerializerContext) as global::OpenRouter.NamespaceFunctionToolParameters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolParameters? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceFunctionToolParameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceFunctionToolParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceFunctionToolParameters; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters.g.cs new file mode 100644 index 00000000..52bf8cd0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class NamespaceFunctionToolParameters + { + + /// + /// 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.NamespaceFunctionToolParameters2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters2.Json.g.cs new file mode 100644 index 00000000..1f6d9d59 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceFunctionToolParameters2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolParameters2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceFunctionToolParameters2), + jsonSerializerContext) as global::OpenRouter.NamespaceFunctionToolParameters2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceFunctionToolParameters2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceFunctionToolParameters2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceFunctionToolParameters2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceFunctionToolParameters2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters2.g.cs new file mode 100644 index 00000000..354a5163 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolParameters2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class NamespaceFunctionToolParameters2 + { + + /// + /// 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.NamespaceFunctionToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolType.g.cs new file mode 100644 index 00000000..6d292177 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceFunctionToolType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum NamespaceFunctionToolType + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NamespaceFunctionToolTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NamespaceFunctionToolType value) + { + return value switch + { + NamespaceFunctionToolType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NamespaceFunctionToolType? ToEnum(string value) + { + return value switch + { + "function" => NamespaceFunctionToolType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.Json.g.cs new file mode 100644 index 00000000..ed49956c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NamespaceTool + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceTool? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceTool), + jsonSerializerContext) as global::OpenRouter.NamespaceTool; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceTool? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceTool? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceTool), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceTool; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.g.cs new file mode 100644 index 00000000..088f7971 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceTool.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Groups function/custom tools under a shared namespace + /// + public sealed partial class NamespaceTool + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.NamespaceToolTypeJsonConverter))] + public global::OpenRouter.NamespaceToolType 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 NamespaceTool( + string description, + string name, + global::System.Collections.Generic.IList tools, + global::OpenRouter.NamespaceToolType type) + { + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public NamespaceTool() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.Json.g.cs new file mode 100644 index 00000000..35858ab1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct NamespaceToolToolsItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceToolToolsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NamespaceToolToolsItems), + jsonSerializerContext) as global::OpenRouter.NamespaceToolToolsItems?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NamespaceToolToolsItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.NamespaceToolToolsItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.NamespaceToolToolsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NamespaceToolToolsItems?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.g.cs new file mode 100644 index 00000000..2d50947b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolToolsItems.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct NamespaceToolToolsItems : global::System.IEquatable + { + /// + /// A function tool grouped inside a namespace tool + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.NamespaceFunctionTool? NamespaceFunctionTool { get; init; } +#else + public global::OpenRouter.NamespaceFunctionTool? NamespaceFunctionTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NamespaceFunctionTool))] +#endif + public bool IsNamespaceFunctionTool => NamespaceFunctionTool != null; + + /// + /// + /// + public bool TryPickNamespaceFunctionTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.NamespaceFunctionTool? value) + { + value = NamespaceFunctionTool; + return IsNamespaceFunctionTool; + } + + /// + /// + /// + public global::OpenRouter.NamespaceFunctionTool PickNamespaceFunctionTool() => IsNamespaceFunctionTool + ? NamespaceFunctionTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'NamespaceFunctionTool' but the value was {ToString()}."); + + /// + /// Custom tool configuration + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CustomTool? CustomTool { get; init; } +#else + public global::OpenRouter.CustomTool? CustomTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomTool))] +#endif + public bool IsCustomTool => CustomTool != null; + + /// + /// + /// + public bool TryPickCustomTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CustomTool? value) + { + value = CustomTool; + return IsCustomTool; + } + + /// + /// + /// + public global::OpenRouter.CustomTool PickCustomTool() => IsCustomTool + ? CustomTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator NamespaceToolToolsItems(global::OpenRouter.NamespaceFunctionTool value) => new NamespaceToolToolsItems((global::OpenRouter.NamespaceFunctionTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.NamespaceFunctionTool?(NamespaceToolToolsItems @this) => @this.NamespaceFunctionTool; + + /// + /// + /// + public NamespaceToolToolsItems(global::OpenRouter.NamespaceFunctionTool? value) + { + NamespaceFunctionTool = value; + } + + /// + /// + /// + public static NamespaceToolToolsItems FromNamespaceFunctionTool(global::OpenRouter.NamespaceFunctionTool? value) => new NamespaceToolToolsItems(value); + + /// + /// + /// + public static implicit operator NamespaceToolToolsItems(global::OpenRouter.CustomTool value) => new NamespaceToolToolsItems((global::OpenRouter.CustomTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CustomTool?(NamespaceToolToolsItems @this) => @this.CustomTool; + + /// + /// + /// + public NamespaceToolToolsItems(global::OpenRouter.CustomTool? value) + { + CustomTool = value; + } + + /// + /// + /// + public static NamespaceToolToolsItems FromCustomTool(global::OpenRouter.CustomTool? value) => new NamespaceToolToolsItems(value); + + /// + /// + /// + public NamespaceToolToolsItems( + global::OpenRouter.NamespaceFunctionTool? namespaceFunctionTool, + global::OpenRouter.CustomTool? customTool + ) + { + NamespaceFunctionTool = namespaceFunctionTool; + CustomTool = customTool; + } + + /// + /// + /// + public object? Object => + CustomTool as object ?? + NamespaceFunctionTool as object + ; + + /// + /// + /// + public override string? ToString() => + NamespaceFunctionTool?.ToString() ?? + CustomTool?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsNamespaceFunctionTool && !IsCustomTool || !IsNamespaceFunctionTool && IsCustomTool; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? namespaceFunctionTool = null, + global::System.Func? customTool = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsNamespaceFunctionTool && namespaceFunctionTool != null) + { + return namespaceFunctionTool(NamespaceFunctionTool!); + } + else if (IsCustomTool && customTool != null) + { + return customTool(CustomTool!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? namespaceFunctionTool = null, + + global::System.Action? customTool = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsNamespaceFunctionTool) + { + namespaceFunctionTool?.Invoke(NamespaceFunctionTool!); + } + else if (IsCustomTool) + { + customTool?.Invoke(CustomTool!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? namespaceFunctionTool = null, + global::System.Action? customTool = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsNamespaceFunctionTool) + { + namespaceFunctionTool?.Invoke(NamespaceFunctionTool!); + } + else if (IsCustomTool) + { + customTool?.Invoke(CustomTool!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + NamespaceFunctionTool, + typeof(global::OpenRouter.NamespaceFunctionTool), + CustomTool, + typeof(global::OpenRouter.CustomTool), + }; + 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(NamespaceToolToolsItems other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(NamespaceFunctionTool, other.NamespaceFunctionTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) + ; + } + + /// + /// + /// + public static bool operator ==(NamespaceToolToolsItems obj1, NamespaceToolToolsItems obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(NamespaceToolToolsItems obj1, NamespaceToolToolsItems obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is NamespaceToolToolsItems o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolType.g.cs new file mode 100644 index 00000000..f3cb68d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NamespaceToolType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum NamespaceToolType + { + /// + /// + /// + Namespace, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NamespaceToolTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NamespaceToolType value) + { + return value switch + { + NamespaceToolType.Namespace => "namespace", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NamespaceToolType? ToEnum(string value) + { + return value switch + { + "namespace" => NamespaceToolType.Namespace, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant12.g.cs index 64606e8b..8fa353c8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant12.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant12.g.cs @@ -31,7 +31,7 @@ public sealed partial class ORAnthropicContentBlockVariant12 public required string Id { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] public object? Input { get; set; } @@ -58,7 +58,9 @@ public sealed partial class ORAnthropicContentBlockVariant12 /// /// Discriminator value: tool_use /// - /// + /// + /// Any type + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant7.g.cs index 7ffe58ea..a4985ca1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicContentBlockVariant7.g.cs @@ -19,8 +19,8 @@ public sealed partial class ORAnthropicContentBlockVariant7 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("caller")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerJsonConverter))] - public global::OpenRouter.ORAnthropicNullableCaller? Caller { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCaller2JsonConverter))] + public global::OpenRouter.ORAnthropicNullableCaller2? Caller { get; set; } /// /// @@ -30,7 +30,7 @@ public sealed partial class ORAnthropicContentBlockVariant7 public required string Id { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] public object? Input { get; set; } @@ -55,7 +55,9 @@ public sealed partial class ORAnthropicContentBlockVariant7 /// /// /// - /// + /// + /// Any type + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -63,7 +65,7 @@ public ORAnthropicContentBlockVariant7( string id, string name, global::OpenRouter.OrAnthropicServerToolUseBlockType type, - global::OpenRouter.ORAnthropicNullableCaller? caller, + global::OpenRouter.ORAnthropicNullableCaller2? caller, object? input) { this.Type = type; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.Json.g.cs deleted file mode 100644 index cba3212c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct ORAnthropicNullableCaller - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCaller? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ORAnthropicNullableCaller), - jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCaller?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCaller? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ORAnthropicNullableCaller? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ORAnthropicNullableCaller), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCaller?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.g.cs deleted file mode 100644 index 56ef0091..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller.g.cs +++ /dev/null @@ -1,386 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ORAnthropicNullableCaller : global::System.IEquatable - { - /// - /// - /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type { get; } - - /// - /// code_execution_20250825 variant - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ORAnthropicNullableCallerVariant1? CodeExecution20250825 { get; init; } -#else - public global::OpenRouter.ORAnthropicNullableCallerVariant1? CodeExecution20250825 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeExecution20250825))] -#endif - public bool IsCodeExecution20250825 => CodeExecution20250825 != null; - - /// - /// - /// - public bool TryPickCodeExecution20250825( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ORAnthropicNullableCallerVariant1? value) - { - value = CodeExecution20250825; - return IsCodeExecution20250825; - } - - /// - /// - /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1 PickCodeExecution20250825() => IsCodeExecution20250825 - ? CodeExecution20250825! - : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution20250825' but the value was {ToString()}."); - - /// - /// code_execution_20260120 variant - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ORAnthropicNullableCallerVariant2? CodeExecution20260120 { get; init; } -#else - public global::OpenRouter.ORAnthropicNullableCallerVariant2? CodeExecution20260120 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeExecution20260120))] -#endif - public bool IsCodeExecution20260120 => CodeExecution20260120 != null; - - /// - /// - /// - public bool TryPickCodeExecution20260120( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ORAnthropicNullableCallerVariant2? value) - { - value = CodeExecution20260120; - return IsCodeExecution20260120; - } - - /// - /// - /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2 PickCodeExecution20260120() => IsCodeExecution20260120 - ? CodeExecution20260120! - : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution20260120' but the value was {ToString()}."); - - /// - /// direct variant - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Direct { get; init; } -#else - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Direct { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Direct))] -#endif - public bool IsDirect => Direct != null; - - /// - /// - /// - public bool TryPickDirect( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ORAnthropicNullableCallerVariant3? value) - { - value = Direct; - return IsDirect; - } - - /// - /// - /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3 PickDirect() => IsDirect - ? Direct! - : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant1 value) => new ORAnthropicNullableCaller((global::OpenRouter.ORAnthropicNullableCallerVariant1?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ORAnthropicNullableCallerVariant1?(ORAnthropicNullableCaller @this) => @this.CodeExecution20250825; - - /// - /// - /// - public ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant1? value) - { - CodeExecution20250825 = value; - } - - /// - /// - /// - public static ORAnthropicNullableCaller FromCodeExecution20250825(global::OpenRouter.ORAnthropicNullableCallerVariant1? value) => new ORAnthropicNullableCaller(value); - - /// - /// - /// - public static implicit operator ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant2 value) => new ORAnthropicNullableCaller((global::OpenRouter.ORAnthropicNullableCallerVariant2?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ORAnthropicNullableCallerVariant2?(ORAnthropicNullableCaller @this) => @this.CodeExecution20260120; - - /// - /// - /// - public ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant2? value) - { - CodeExecution20260120 = value; - } - - /// - /// - /// - public static ORAnthropicNullableCaller FromCodeExecution20260120(global::OpenRouter.ORAnthropicNullableCallerVariant2? value) => new ORAnthropicNullableCaller(value); - - /// - /// - /// - public static implicit operator ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant3 value) => new ORAnthropicNullableCaller((global::OpenRouter.ORAnthropicNullableCallerVariant3?)value); - - /// - /// - /// - public static implicit operator global::OpenRouter.ORAnthropicNullableCallerVariant3?(ORAnthropicNullableCaller @this) => @this.Direct; - - /// - /// - /// - public ORAnthropicNullableCaller(global::OpenRouter.ORAnthropicNullableCallerVariant3? value) - { - Direct = value; - } - - /// - /// - /// - public static ORAnthropicNullableCaller FromDirect(global::OpenRouter.ORAnthropicNullableCallerVariant3? value) => new ORAnthropicNullableCaller(value); - - /// - /// - /// - public ORAnthropicNullableCaller( - global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? type, - global::OpenRouter.ORAnthropicNullableCallerVariant1? codeExecution20250825, - global::OpenRouter.ORAnthropicNullableCallerVariant2? codeExecution20260120, - global::OpenRouter.ORAnthropicNullableCallerVariant3? direct - ) - { - Type = type; - - CodeExecution20250825 = codeExecution20250825; - CodeExecution20260120 = codeExecution20260120; - Direct = direct; - } - - /// - /// - /// - public object? Object => - Direct as object ?? - CodeExecution20260120 as object ?? - CodeExecution20250825 as object - ; - - /// - /// - /// - public override string? ToString() => - CodeExecution20250825?.ToString() ?? - CodeExecution20260120?.ToString() ?? - Direct?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsCodeExecution20250825 && !IsCodeExecution20260120 && !IsDirect || !IsCodeExecution20250825 && IsCodeExecution20260120 && !IsDirect || !IsCodeExecution20250825 && !IsCodeExecution20260120 && IsDirect; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? codeExecution20250825 = null, - global::System.Func? codeExecution20260120 = null, - global::System.Func? direct = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCodeExecution20250825 && codeExecution20250825 != null) - { - return codeExecution20250825(CodeExecution20250825!); - } - else if (IsCodeExecution20260120 && codeExecution20260120 != null) - { - return codeExecution20260120(CodeExecution20260120!); - } - else if (IsDirect && direct != null) - { - return direct(Direct!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? codeExecution20250825 = null, - - global::System.Action? codeExecution20260120 = null, - - global::System.Action? direct = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCodeExecution20250825) - { - codeExecution20250825?.Invoke(CodeExecution20250825!); - } - else if (IsCodeExecution20260120) - { - codeExecution20260120?.Invoke(CodeExecution20260120!); - } - else if (IsDirect) - { - direct?.Invoke(Direct!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? codeExecution20250825 = null, - global::System.Action? codeExecution20260120 = null, - global::System.Action? direct = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCodeExecution20250825) - { - codeExecution20250825?.Invoke(CodeExecution20250825!); - } - else if (IsCodeExecution20260120) - { - codeExecution20260120?.Invoke(CodeExecution20260120!); - } - else if (IsDirect) - { - direct?.Invoke(Direct!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - CodeExecution20250825, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1), - CodeExecution20260120, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2), - Direct, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3), - }; - 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(ORAnthropicNullableCaller other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeExecution20250825, other.CodeExecution20250825) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeExecution20260120, other.CodeExecution20260120) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Direct, other.Direct) - ; - } - - /// - /// - /// - public static bool operator ==(ORAnthropicNullableCaller obj1, ORAnthropicNullableCaller obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ORAnthropicNullableCaller obj1, ORAnthropicNullableCaller obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ORAnthropicNullableCaller o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.Json.g.cs new file mode 100644 index 00000000..9c390370 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ORAnthropicNullableCaller2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ORAnthropicNullableCaller2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ORAnthropicNullableCaller2), + jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCaller2?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ORAnthropicNullableCaller2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ORAnthropicNullableCaller2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ORAnthropicNullableCaller2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCaller2?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.g.cs new file mode 100644 index 00000000..72ddc935 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCaller2.g.cs @@ -0,0 +1,272 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ORAnthropicNullableCaller2 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OrAnthropicNullableCaller? OrAnthropicNullableCaller { get; init; } +#else + public global::OpenRouter.OrAnthropicNullableCaller? OrAnthropicNullableCaller { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OrAnthropicNullableCaller))] +#endif + public bool IsOrAnthropicNullableCaller => OrAnthropicNullableCaller != null; + + /// + /// + /// + public bool TryPickOrAnthropicNullableCaller( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OrAnthropicNullableCaller? value) + { + value = OrAnthropicNullableCaller; + return IsOrAnthropicNullableCaller; + } + + /// + /// + /// + public global::OpenRouter.OrAnthropicNullableCaller PickOrAnthropicNullableCaller() => IsOrAnthropicNullableCaller + ? OrAnthropicNullableCaller!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'OrAnthropicNullableCaller' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public object? CallerVariant2 { get; init; } +#else + public object? CallerVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallerVariant2))] +#endif + public bool IsCallerVariant2 => CallerVariant2 != null; + + /// + /// + /// + public bool TryPickCallerVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out object? value) + { + value = CallerVariant2; + return IsCallerVariant2; + } + + /// + /// + /// + public object PickCallerVariant2() => IsCallerVariant2 + ? CallerVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'CallerVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ORAnthropicNullableCaller2(global::OpenRouter.OrAnthropicNullableCaller value) => new ORAnthropicNullableCaller2((global::OpenRouter.OrAnthropicNullableCaller?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OrAnthropicNullableCaller?(ORAnthropicNullableCaller2 @this) => @this.OrAnthropicNullableCaller; + + /// + /// + /// + public ORAnthropicNullableCaller2(global::OpenRouter.OrAnthropicNullableCaller? value) + { + OrAnthropicNullableCaller = value; + } + + /// + /// + /// + public static ORAnthropicNullableCaller2 FromOrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCaller? value) => new ORAnthropicNullableCaller2(value); + + /// + /// + /// + public ORAnthropicNullableCaller2( + global::OpenRouter.OrAnthropicNullableCaller? orAnthropicNullableCaller, + object? callerVariant2 + ) + { + OrAnthropicNullableCaller = orAnthropicNullableCaller; + CallerVariant2 = callerVariant2; + } + + /// + /// + /// + public object? Object => + CallerVariant2 as object ?? + OrAnthropicNullableCaller as object + ; + + /// + /// + /// + public override string? ToString() => + OrAnthropicNullableCaller?.ToString() ?? + CallerVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsOrAnthropicNullableCaller && !IsCallerVariant2 || !IsOrAnthropicNullableCaller && IsCallerVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? orAnthropicNullableCaller = null, + global::System.Func? callerVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsOrAnthropicNullableCaller && orAnthropicNullableCaller != null) + { + return orAnthropicNullableCaller(OrAnthropicNullableCaller!); + } + else if (IsCallerVariant2 && callerVariant2 != null) + { + return callerVariant2(CallerVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? orAnthropicNullableCaller = null, + + global::System.Action? callerVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsOrAnthropicNullableCaller) + { + orAnthropicNullableCaller?.Invoke(OrAnthropicNullableCaller!); + } + else if (IsCallerVariant2) + { + callerVariant2?.Invoke(CallerVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? orAnthropicNullableCaller = null, + global::System.Action? callerVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsOrAnthropicNullableCaller) + { + orAnthropicNullableCaller?.Invoke(OrAnthropicNullableCaller!); + } + else if (IsCallerVariant2) + { + callerVariant2?.Invoke(CallerVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + OrAnthropicNullableCaller, + typeof(global::OpenRouter.OrAnthropicNullableCaller), + CallerVariant2, + typeof(object), + }; + 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(ORAnthropicNullableCaller2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(OrAnthropicNullableCaller, other.OrAnthropicNullableCaller) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallerVariant2, other.CallerVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ORAnthropicNullableCaller2 obj1, ORAnthropicNullableCaller2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ORAnthropicNullableCaller2 obj1, ORAnthropicNullableCaller2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ORAnthropicNullableCaller2 o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.Json.g.cs deleted file mode 100644 index 883de088..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ORAnthropicNullableCallerDiscriminator - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ORAnthropicNullableCallerDiscriminator), - jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCallerDiscriminator; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerDiscriminator? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ORAnthropicNullableCallerDiscriminator? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ORAnthropicNullableCallerDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCallerDiscriminator; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.g.cs deleted file mode 100644 index 74cc14fa..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ORAnthropicNullableCallerDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerDiscriminatorTypeJsonConverter))] - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? 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 ORAnthropicNullableCallerDiscriminator( - global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public ORAnthropicNullableCallerDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminatorType.g.cs deleted file mode 100644 index 0a539292..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerDiscriminatorType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ORAnthropicNullableCallerDiscriminatorType - { - /// - /// - /// - CodeExecution20250825, - /// - /// - /// - CodeExecution20260120, - /// - /// - /// - Direct, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ORAnthropicNullableCallerDiscriminatorTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ORAnthropicNullableCallerDiscriminatorType value) - { - return value switch - { - ORAnthropicNullableCallerDiscriminatorType.CodeExecution20250825 => "code_execution_20250825", - ORAnthropicNullableCallerDiscriminatorType.CodeExecution20260120 => "code_execution_20260120", - ORAnthropicNullableCallerDiscriminatorType.Direct => "direct", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ORAnthropicNullableCallerDiscriminatorType? ToEnum(string value) - { - return value switch - { - "code_execution_20250825" => ORAnthropicNullableCallerDiscriminatorType.CodeExecution20250825, - "code_execution_20260120" => ORAnthropicNullableCallerDiscriminatorType.CodeExecution20260120, - "direct" => ORAnthropicNullableCallerDiscriminatorType.Direct, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.Json.g.cs deleted file mode 100644 index b0fe1060..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ORAnthropicNullableCallerVariant1 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant1), - jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCallerVariant1; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant1? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ORAnthropicNullableCallerVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ORAnthropicNullableCallerVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCallerVariant1; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.g.cs deleted file mode 100644 index dca755c1..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// code_execution_20250825 variant - /// - public sealed partial class ORAnthropicNullableCallerVariant1 - { - /// - /// Discriminator value: code_execution_20250825 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant1TypeJsonConverter))] - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolId { 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. - /// - /// - /// - /// Discriminator value: code_execution_20250825 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ORAnthropicNullableCallerVariant1( - string toolId, - global::OpenRouter.ORAnthropicNullableCallerVariant1Type type) - { - this.Type = type; - this.ToolId = toolId ?? throw new global::System.ArgumentNullException(nameof(toolId)); - } - - /// - /// Initializes a new instance of the class. - /// - public ORAnthropicNullableCallerVariant1() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1Type.g.cs deleted file mode 100644 index 3b48d7d5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant1Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Discriminator value: code_execution_20250825 - /// - public enum ORAnthropicNullableCallerVariant1Type - { - /// - /// code_execution_20250825 - /// - CodeExecution20250825, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ORAnthropicNullableCallerVariant1TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ORAnthropicNullableCallerVariant1Type value) - { - return value switch - { - ORAnthropicNullableCallerVariant1Type.CodeExecution20250825 => "code_execution_20250825", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ORAnthropicNullableCallerVariant1Type? ToEnum(string value) - { - return value switch - { - "code_execution_20250825" => ORAnthropicNullableCallerVariant1Type.CodeExecution20250825, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.Json.g.cs deleted file mode 100644 index 66bba174..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ORAnthropicNullableCallerVariant2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant2), - jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCallerVariant2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ORAnthropicNullableCallerVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ORAnthropicNullableCallerVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCallerVariant2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.g.cs deleted file mode 100644 index fa5188b0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// code_execution_20260120 variant - /// - public sealed partial class ORAnthropicNullableCallerVariant2 - { - /// - /// Discriminator value: code_execution_20260120 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant2TypeJsonConverter))] - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolId { 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. - /// - /// - /// - /// Discriminator value: code_execution_20260120 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ORAnthropicNullableCallerVariant2( - string toolId, - global::OpenRouter.ORAnthropicNullableCallerVariant2Type type) - { - this.Type = type; - this.ToolId = toolId ?? throw new global::System.ArgumentNullException(nameof(toolId)); - } - - /// - /// Initializes a new instance of the class. - /// - public ORAnthropicNullableCallerVariant2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2Type.g.cs deleted file mode 100644 index 45bee731..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant2Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Discriminator value: code_execution_20260120 - /// - public enum ORAnthropicNullableCallerVariant2Type - { - /// - /// code_execution_20260120 - /// - CodeExecution20260120, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ORAnthropicNullableCallerVariant2TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ORAnthropicNullableCallerVariant2Type value) - { - return value switch - { - ORAnthropicNullableCallerVariant2Type.CodeExecution20260120 => "code_execution_20260120", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ORAnthropicNullableCallerVariant2Type? ToEnum(string value) - { - return value switch - { - "code_execution_20260120" => ORAnthropicNullableCallerVariant2Type.CodeExecution20260120, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.Json.g.cs deleted file mode 100644 index ee37787b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ORAnthropicNullableCallerVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ORAnthropicNullableCallerVariant3), - jsonSerializerContext) as global::OpenRouter.ORAnthropicNullableCallerVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ORAnthropicNullableCallerVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ORAnthropicNullableCallerVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ORAnthropicNullableCallerVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ORAnthropicNullableCallerVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.g.cs deleted file mode 100644 index 661287de..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// direct variant - /// - public sealed partial class ORAnthropicNullableCallerVariant3 - { - /// - /// Discriminator value: direct - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ORAnthropicNullableCallerVariant3TypeJsonConverter))] - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type 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. - /// - /// - /// Discriminator value: direct - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ORAnthropicNullableCallerVariant3( - global::OpenRouter.ORAnthropicNullableCallerVariant3Type type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public ORAnthropicNullableCallerVariant3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3Type.g.cs deleted file mode 100644 index d537cb35..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ORAnthropicNullableCallerVariant3Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Discriminator value: direct - /// - public enum ORAnthropicNullableCallerVariant3Type - { - /// - /// direct - /// - Direct, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ORAnthropicNullableCallerVariant3TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ORAnthropicNullableCallerVariant3Type value) - { - return value switch - { - ORAnthropicNullableCallerVariant3Type.Direct => "direct", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ORAnthropicNullableCallerVariant3Type? ToEnum(string value) - { - return value switch - { - "direct" => ORAnthropicNullableCallerVariant3Type.Direct, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.Json.g.cs new file mode 100644 index 00000000..18ad58be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRuleGroup + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRuleGroup), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRuleGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroup? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ObservabilityFilterRuleGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ObservabilityFilterRuleGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRuleGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.g.cs new file mode 100644 index 00000000..77e06f60 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroup.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityFilterRuleGroup + { + /// + /// Default Value: and + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logic")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupLogicJsonConverter))] + public global::OpenRouter.ObservabilityFilterRuleGroupLogic? Logic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Rules { 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. + /// + /// + /// + /// Default Value: and + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityFilterRuleGroup( + global::System.Collections.Generic.IList rules, + global::OpenRouter.ObservabilityFilterRuleGroupLogic? logic) + { + this.Logic = logic; + this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRuleGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupLogic.g.cs new file mode 100644 index 00000000..42a6dfcd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupLogic.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: and + /// + public enum ObservabilityFilterRuleGroupLogic + { + /// + /// + /// + And, + /// + /// + /// + Or, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRuleGroupLogicExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRuleGroupLogic value) + { + return value switch + { + ObservabilityFilterRuleGroupLogic.And => "and", + ObservabilityFilterRuleGroupLogic.Or => "or", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRuleGroupLogic? ToEnum(string value) + { + return value switch + { + "and" => ObservabilityFilterRuleGroupLogic.And, + "or" => ObservabilityFilterRuleGroupLogic.Or, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.Json.g.cs new file mode 100644 index 00000000..db0c5b2f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRuleGroupRulesItems + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroupRulesItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItems), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRuleGroupRulesItems; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroupRulesItems? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ObservabilityFilterRuleGroupRulesItems? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ObservabilityFilterRuleGroupRulesItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRuleGroupRulesItems; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.g.cs new file mode 100644 index 00000000..c68eb397 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItems.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ObservabilityFilterRuleGroupRulesItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsFieldJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField Field { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsOperatorJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator Operator { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRuleGroupRulesItemsValueJsonConverter))] + public global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue? Value { 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 ObservabilityFilterRuleGroupRulesItems( + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsField field, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsOperator @operator, + global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue? value) + { + this.Field = field; + this.Operator = @operator; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRuleGroupRulesItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsField.g.cs new file mode 100644 index 00000000..e808fb8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityFilterRuleGroupRulesItemsField + { + /// + /// + /// + ApiKeyName, + /// + /// + /// + CompletionTokens, + /// + /// + /// + FinishReason, + /// + /// + /// + Input, + /// + /// + /// + Model, + /// + /// + /// + Output, + /// + /// + /// + PromptTokens, + /// + /// + /// + Provider, + /// + /// + /// + SessionId, + /// + /// + /// + TotalCost, + /// + /// + /// + TotalTokens, + /// + /// + /// + UserId, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRuleGroupRulesItemsFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRuleGroupRulesItemsField value) + { + return value switch + { + ObservabilityFilterRuleGroupRulesItemsField.ApiKeyName => "api_key_name", + ObservabilityFilterRuleGroupRulesItemsField.CompletionTokens => "completion_tokens", + ObservabilityFilterRuleGroupRulesItemsField.FinishReason => "finish_reason", + ObservabilityFilterRuleGroupRulesItemsField.Input => "input", + ObservabilityFilterRuleGroupRulesItemsField.Model => "model", + ObservabilityFilterRuleGroupRulesItemsField.Output => "output", + ObservabilityFilterRuleGroupRulesItemsField.PromptTokens => "prompt_tokens", + ObservabilityFilterRuleGroupRulesItemsField.Provider => "provider", + ObservabilityFilterRuleGroupRulesItemsField.SessionId => "session_id", + ObservabilityFilterRuleGroupRulesItemsField.TotalCost => "total_cost", + ObservabilityFilterRuleGroupRulesItemsField.TotalTokens => "total_tokens", + ObservabilityFilterRuleGroupRulesItemsField.UserId => "user_id", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRuleGroupRulesItemsField? ToEnum(string value) + { + return value switch + { + "api_key_name" => ObservabilityFilterRuleGroupRulesItemsField.ApiKeyName, + "completion_tokens" => ObservabilityFilterRuleGroupRulesItemsField.CompletionTokens, + "finish_reason" => ObservabilityFilterRuleGroupRulesItemsField.FinishReason, + "input" => ObservabilityFilterRuleGroupRulesItemsField.Input, + "model" => ObservabilityFilterRuleGroupRulesItemsField.Model, + "output" => ObservabilityFilterRuleGroupRulesItemsField.Output, + "prompt_tokens" => ObservabilityFilterRuleGroupRulesItemsField.PromptTokens, + "provider" => ObservabilityFilterRuleGroupRulesItemsField.Provider, + "session_id" => ObservabilityFilterRuleGroupRulesItemsField.SessionId, + "total_cost" => ObservabilityFilterRuleGroupRulesItemsField.TotalCost, + "total_tokens" => ObservabilityFilterRuleGroupRulesItemsField.TotalTokens, + "user_id" => ObservabilityFilterRuleGroupRulesItemsField.UserId, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs new file mode 100644 index 00000000..450fcd7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsOperator.g.cs @@ -0,0 +1,117 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ObservabilityFilterRuleGroupRulesItemsOperator + { + /// + /// + /// + Contains, + /// + /// + /// + EndsWith, + /// + /// + /// + Equals, + /// + /// + /// + Exists, + /// + /// + /// + Gt, + /// + /// + /// + Gte, + /// + /// + /// + Lt, + /// + /// + /// + Lte, + /// + /// + /// + NotContains, + /// + /// + /// + NotEquals, + /// + /// + /// + NotExists, + /// + /// + /// + Regex, + /// + /// + /// + StartsWith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityFilterRuleGroupRulesItemsOperatorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityFilterRuleGroupRulesItemsOperator value) + { + return value switch + { + ObservabilityFilterRuleGroupRulesItemsOperator.Contains => "contains", + ObservabilityFilterRuleGroupRulesItemsOperator.EndsWith => "ends_with", + ObservabilityFilterRuleGroupRulesItemsOperator.Equals => "equals", + ObservabilityFilterRuleGroupRulesItemsOperator.Exists => "exists", + ObservabilityFilterRuleGroupRulesItemsOperator.Gt => "gt", + ObservabilityFilterRuleGroupRulesItemsOperator.Gte => "gte", + ObservabilityFilterRuleGroupRulesItemsOperator.Lt => "lt", + ObservabilityFilterRuleGroupRulesItemsOperator.Lte => "lte", + ObservabilityFilterRuleGroupRulesItemsOperator.NotContains => "not_contains", + ObservabilityFilterRuleGroupRulesItemsOperator.NotEquals => "not_equals", + ObservabilityFilterRuleGroupRulesItemsOperator.NotExists => "not_exists", + ObservabilityFilterRuleGroupRulesItemsOperator.Regex => "regex", + ObservabilityFilterRuleGroupRulesItemsOperator.StartsWith => "starts_with", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityFilterRuleGroupRulesItemsOperator? ToEnum(string value) + { + return value switch + { + "contains" => ObservabilityFilterRuleGroupRulesItemsOperator.Contains, + "ends_with" => ObservabilityFilterRuleGroupRulesItemsOperator.EndsWith, + "equals" => ObservabilityFilterRuleGroupRulesItemsOperator.Equals, + "exists" => ObservabilityFilterRuleGroupRulesItemsOperator.Exists, + "gt" => ObservabilityFilterRuleGroupRulesItemsOperator.Gt, + "gte" => ObservabilityFilterRuleGroupRulesItemsOperator.Gte, + "lt" => ObservabilityFilterRuleGroupRulesItemsOperator.Lt, + "lte" => ObservabilityFilterRuleGroupRulesItemsOperator.Lte, + "not_contains" => ObservabilityFilterRuleGroupRulesItemsOperator.NotContains, + "not_equals" => ObservabilityFilterRuleGroupRulesItemsOperator.NotEquals, + "not_exists" => ObservabilityFilterRuleGroupRulesItemsOperator.NotExists, + "regex" => ObservabilityFilterRuleGroupRulesItemsOperator.Regex, + "starts_with" => ObservabilityFilterRuleGroupRulesItemsOperator.StartsWith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.Json.g.cs new file mode 100644 index 00000000..d8a19a7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ObservabilityFilterRuleGroupRulesItemsValue + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ObservabilityFilterRuleGroupRulesItemsValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ObservabilityFilterRuleGroupRulesItemsValue), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRuleGroupRulesItemsValue?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.g.cs new file mode 100644 index 00000000..8cba2ebb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRuleGroupRulesItemsValue.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ObservabilityFilterRuleGroupRulesItemsValue : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ObservabilityFilterRuleGroupRulesItemsValueVariant1 { get; init; } +#else + public string? ObservabilityFilterRuleGroupRulesItemsValueVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRuleGroupRulesItemsValueVariant1))] +#endif + public bool IsObservabilityFilterRuleGroupRulesItemsValueVariant1 => ObservabilityFilterRuleGroupRulesItemsValueVariant1 != null; + + /// + /// + /// + public bool TryPickObservabilityFilterRuleGroupRulesItemsValueVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ObservabilityFilterRuleGroupRulesItemsValueVariant1; + return IsObservabilityFilterRuleGroupRulesItemsValueVariant1; + } + + /// + /// + /// + public string PickObservabilityFilterRuleGroupRulesItemsValueVariant1() => IsObservabilityFilterRuleGroupRulesItemsValueVariant1 + ? ObservabilityFilterRuleGroupRulesItemsValueVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRuleGroupRulesItemsValueVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? ObservabilityFilterRuleGroupRulesItemsValueVariant2 { get; init; } +#else + public double? ObservabilityFilterRuleGroupRulesItemsValueVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRuleGroupRulesItemsValueVariant2))] +#endif + public bool IsObservabilityFilterRuleGroupRulesItemsValueVariant2 => ObservabilityFilterRuleGroupRulesItemsValueVariant2 != null; + + /// + /// + /// + public bool TryPickObservabilityFilterRuleGroupRulesItemsValueVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = ObservabilityFilterRuleGroupRulesItemsValueVariant2; + return IsObservabilityFilterRuleGroupRulesItemsValueVariant2; + } + + /// + /// + /// + public double PickObservabilityFilterRuleGroupRulesItemsValueVariant2() => IsObservabilityFilterRuleGroupRulesItemsValueVariant2 + ? ObservabilityFilterRuleGroupRulesItemsValueVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRuleGroupRulesItemsValueVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ObservabilityFilterRuleGroupRulesItemsValue(string value) => new ObservabilityFilterRuleGroupRulesItemsValue((string?)value); + + /// + /// + /// + public static implicit operator string?(ObservabilityFilterRuleGroupRulesItemsValue @this) => @this.ObservabilityFilterRuleGroupRulesItemsValueVariant1; + + /// + /// + /// + public ObservabilityFilterRuleGroupRulesItemsValue(string? value) + { + ObservabilityFilterRuleGroupRulesItemsValueVariant1 = value; + } + + /// + /// + /// + public static ObservabilityFilterRuleGroupRulesItemsValue FromObservabilityFilterRuleGroupRulesItemsValueVariant1(string? value) => new ObservabilityFilterRuleGroupRulesItemsValue(value); + + /// + /// + /// + public static implicit operator ObservabilityFilterRuleGroupRulesItemsValue(double value) => new ObservabilityFilterRuleGroupRulesItemsValue((double?)value); + + /// + /// + /// + public static implicit operator double?(ObservabilityFilterRuleGroupRulesItemsValue @this) => @this.ObservabilityFilterRuleGroupRulesItemsValueVariant2; + + /// + /// + /// + public ObservabilityFilterRuleGroupRulesItemsValue(double? value) + { + ObservabilityFilterRuleGroupRulesItemsValueVariant2 = value; + } + + /// + /// + /// + public static ObservabilityFilterRuleGroupRulesItemsValue FromObservabilityFilterRuleGroupRulesItemsValueVariant2(double? value) => new ObservabilityFilterRuleGroupRulesItemsValue(value); + + /// + /// + /// + public ObservabilityFilterRuleGroupRulesItemsValue( + string? observabilityFilterRuleGroupRulesItemsValueVariant1, + double? observabilityFilterRuleGroupRulesItemsValueVariant2 + ) + { + ObservabilityFilterRuleGroupRulesItemsValueVariant1 = observabilityFilterRuleGroupRulesItemsValueVariant1; + ObservabilityFilterRuleGroupRulesItemsValueVariant2 = observabilityFilterRuleGroupRulesItemsValueVariant2; + } + + /// + /// + /// + public object? Object => + ObservabilityFilterRuleGroupRulesItemsValueVariant2 as object ?? + ObservabilityFilterRuleGroupRulesItemsValueVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ObservabilityFilterRuleGroupRulesItemsValueVariant1?.ToString() ?? + ObservabilityFilterRuleGroupRulesItemsValueVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsObservabilityFilterRuleGroupRulesItemsValueVariant1 && !IsObservabilityFilterRuleGroupRulesItemsValueVariant2 || !IsObservabilityFilterRuleGroupRulesItemsValueVariant1 && IsObservabilityFilterRuleGroupRulesItemsValueVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? observabilityFilterRuleGroupRulesItemsValueVariant1 = null, + global::System.Func? observabilityFilterRuleGroupRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRuleGroupRulesItemsValueVariant1 && observabilityFilterRuleGroupRulesItemsValueVariant1 != null) + { + return observabilityFilterRuleGroupRulesItemsValueVariant1(ObservabilityFilterRuleGroupRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRuleGroupRulesItemsValueVariant2 && observabilityFilterRuleGroupRulesItemsValueVariant2 != null) + { + return observabilityFilterRuleGroupRulesItemsValueVariant2(ObservabilityFilterRuleGroupRulesItemsValueVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? observabilityFilterRuleGroupRulesItemsValueVariant1 = null, + + global::System.Action? observabilityFilterRuleGroupRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRuleGroupRulesItemsValueVariant1) + { + observabilityFilterRuleGroupRulesItemsValueVariant1?.Invoke(ObservabilityFilterRuleGroupRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRuleGroupRulesItemsValueVariant2) + { + observabilityFilterRuleGroupRulesItemsValueVariant2?.Invoke(ObservabilityFilterRuleGroupRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? observabilityFilterRuleGroupRulesItemsValueVariant1 = null, + global::System.Action? observabilityFilterRuleGroupRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsObservabilityFilterRuleGroupRulesItemsValueVariant1) + { + observabilityFilterRuleGroupRulesItemsValueVariant1?.Invoke(ObservabilityFilterRuleGroupRulesItemsValueVariant1!); + } + else if (IsObservabilityFilterRuleGroupRulesItemsValueVariant2) + { + observabilityFilterRuleGroupRulesItemsValueVariant2?.Invoke(ObservabilityFilterRuleGroupRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ObservabilityFilterRuleGroupRulesItemsValueVariant1, + typeof(string), + ObservabilityFilterRuleGroupRulesItemsValueVariant2, + typeof(double), + }; + 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(ObservabilityFilterRuleGroupRulesItemsValue other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRuleGroupRulesItemsValueVariant1, other.ObservabilityFilterRuleGroupRulesItemsValueVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRuleGroupRulesItemsValueVariant2, other.ObservabilityFilterRuleGroupRulesItemsValueVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ObservabilityFilterRuleGroupRulesItemsValue obj1, ObservabilityFilterRuleGroupRulesItemsValue obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ObservabilityFilterRuleGroupRulesItemsValue obj1, ObservabilityFilterRuleGroupRulesItemsValue obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ObservabilityFilterRuleGroupRulesItemsValue o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs index c5f9e6a5..b1d38d03 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfig.g.cs @@ -19,7 +19,7 @@ public sealed partial class ObservabilityFilterRulesConfig /// [global::System.Text.Json.Serialization.JsonPropertyName("groups")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Groups { get; set; } + public required global::System.Collections.Generic.IList Groups { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,7 +38,7 @@ public sealed partial class ObservabilityFilterRulesConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityFilterRulesConfig( - global::System.Collections.Generic.IList groups, + global::System.Collections.Generic.IList groups, bool? enabled) { this.Enabled = enabled; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs deleted file mode 100644 index 1e0dc37e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityFilterRulesConfigGroupsItems - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems), - jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ObservabilityFilterRulesConfigGroupsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ObservabilityFilterRulesConfigGroupsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs deleted file mode 100644 index 93ba5d84..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItems.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ObservabilityFilterRulesConfigGroupsItems - { - /// - /// Default Value: and - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logic")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter))] - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Logic { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rules")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Rules { 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. - /// - /// - /// - /// Default Value: and - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ObservabilityFilterRulesConfigGroupsItems( - global::System.Collections.Generic.IList rules, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? logic) - { - this.Logic = logic; - this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); - } - - /// - /// Initializes a new instance of the class. - /// - public ObservabilityFilterRulesConfigGroupsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs deleted file mode 100644 index e665cc34..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsLogic.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Default Value: and - /// - public enum ObservabilityFilterRulesConfigGroupsItemsLogic - { - /// - /// - /// - And, - /// - /// - /// - Or, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ObservabilityFilterRulesConfigGroupsItemsLogicExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsLogic value) - { - return value switch - { - ObservabilityFilterRulesConfigGroupsItemsLogic.And => "and", - ObservabilityFilterRulesConfigGroupsItemsLogic.Or => "or", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ObservabilityFilterRulesConfigGroupsItemsLogic? ToEnum(string value) - { - return value switch - { - "and" => ObservabilityFilterRulesConfigGroupsItemsLogic.And, - "or" => ObservabilityFilterRulesConfigGroupsItemsLogic.Or, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs deleted file mode 100644 index 4be60340..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityFilterRulesConfigGroupsItemsRulesItems - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems), - jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ObservabilityFilterRulesConfigGroupsItemsRulesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ObservabilityFilterRulesConfigGroupsItemsRulesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs deleted file mode 100644 index 950882dc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItems.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ObservabilityFilterRulesConfigGroupsItemsRulesItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("field")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField Field { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operator")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator Operator { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter))] - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Value { 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 ObservabilityFilterRulesConfigGroupsItemsRulesItems( - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField field, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator @operator, - global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? value) - { - this.Field = field; - this.Operator = @operator; - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public ObservabilityFilterRulesConfigGroupsItemsRulesItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs deleted file mode 100644 index 3614094a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.g.cs +++ /dev/null @@ -1,111 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ObservabilityFilterRulesConfigGroupsItemsRulesItemsField - { - /// - /// - /// - ApiKeyName, - /// - /// - /// - CompletionTokens, - /// - /// - /// - FinishReason, - /// - /// - /// - Input, - /// - /// - /// - Model, - /// - /// - /// - Output, - /// - /// - /// - PromptTokens, - /// - /// - /// - Provider, - /// - /// - /// - SessionId, - /// - /// - /// - TotalCost, - /// - /// - /// - TotalTokens, - /// - /// - /// - UserId, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsRulesItemsField value) - { - return value switch - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.ApiKeyName => "api_key_name", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.CompletionTokens => "completion_tokens", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.FinishReason => "finish_reason", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Input => "input", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Model => "model", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Output => "output", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.PromptTokens => "prompt_tokens", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Provider => "provider", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.SessionId => "session_id", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalCost => "total_cost", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalTokens => "total_tokens", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.UserId => "user_id", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? ToEnum(string value) - { - return value switch - { - "api_key_name" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.ApiKeyName, - "completion_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.CompletionTokens, - "finish_reason" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.FinishReason, - "input" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Input, - "model" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Model, - "output" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Output, - "prompt_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.PromptTokens, - "provider" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.Provider, - "session_id" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.SessionId, - "total_cost" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalCost, - "total_tokens" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.TotalTokens, - "user_id" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsField.UserId, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs deleted file mode 100644 index 83cb0f10..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.g.cs +++ /dev/null @@ -1,117 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator - { - /// - /// - /// - Contains, - /// - /// - /// - EndsWith, - /// - /// - /// - Equals, - /// - /// - /// - Exists, - /// - /// - /// - Gt, - /// - /// - /// - Gte, - /// - /// - /// - Lt, - /// - /// - /// - Lte, - /// - /// - /// - NotContains, - /// - /// - /// - NotEquals, - /// - /// - /// - NotExists, - /// - /// - /// - Regex, - /// - /// - /// - StartsWith, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator value) - { - return value switch - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Contains => "contains", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.EndsWith => "ends_with", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Equals => "equals", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Exists => "exists", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gt => "gt", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gte => "gte", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lt => "lt", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lte => "lte", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotContains => "not_contains", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotEquals => "not_equals", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotExists => "not_exists", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Regex => "regex", - ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.StartsWith => "starts_with", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? ToEnum(string value) - { - return value switch - { - "contains" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Contains, - "ends_with" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.EndsWith, - "equals" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Equals, - "exists" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Exists, - "gt" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gt, - "gte" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Gte, - "lt" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lt, - "lte" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Lte, - "not_contains" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotContains, - "not_equals" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotEquals, - "not_exists" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.NotExists, - "regex" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.Regex, - "starts_with" => ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator.StartsWith, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs deleted file mode 100644 index 389d40ef..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), - jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs deleted file mode 100644 index 797980e0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 { get; init; } -#else - public string? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1))] -#endif - public bool IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 => ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 != null; - - /// - /// - /// - public bool TryPickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; - return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; - } - - /// - /// - /// - public string PickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1() => IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 - ? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 { get; init; } -#else - public double? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2))] -#endif - public bool IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 => ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 != null; - - /// - /// - /// - public bool TryPickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out double? value) - { - value = ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; - return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public double PickObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2() => IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 - ? ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(string value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue((string?)value); - - /// - /// - /// - public static implicit operator string?(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue @this) => @this.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; - - /// - /// - /// - public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(string? value) - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = value; - } - - /// - /// - /// - public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue FromObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1(string? value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(value); - - /// - /// - /// - public static implicit operator ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(double value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue((double?)value); - - /// - /// - /// - public static implicit operator double?(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue @this) => @this.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; - - /// - /// - /// - public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(double? value) - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = value; - } - - /// - /// - /// - public static ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue FromObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2(double? value) => new ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue(value); - - /// - /// - /// - public ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue( - string? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, - double? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 - ) - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1; - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public object? Object => - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 as object ?? - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.ToString() ?? - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && !IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 || !IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, - global::System.Func? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 != null) - { - return observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); - } - else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 && observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 != null) - { - return observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, - - global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) - { - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); - } - else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) - { - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1 = null, - global::System.Action? observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) - { - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1!); - } - else if (IsObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) - { - observabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2?.Invoke(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, - typeof(string), - ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2, - typeof(double), - }; - 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(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1, other.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2, other.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj1, ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj1, ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.Json.g.cs new file mode 100644 index 00000000..a3d97faa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ObservabilityFilterRulesConfigNullable + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfigNullable? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ObservabilityFilterRulesConfigNullable), + jsonSerializerContext) as global::OpenRouter.ObservabilityFilterRulesConfigNullable; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ObservabilityFilterRulesConfigNullable? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ObservabilityFilterRulesConfigNullable? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ObservabilityFilterRulesConfigNullable), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityFilterRulesConfigNullable; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.g.cs new file mode 100644 index 00000000..a5089951 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityFilterRulesConfigNullable.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + public sealed partial class ObservabilityFilterRulesConfigNullable + { + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groups")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Groups { 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. + /// + /// + /// + /// Default Value: true + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ObservabilityFilterRulesConfigNullable( + global::System.Collections.Generic.IList groups, + bool? enabled) + { + this.Enabled = enabled; + this.Groups = groups ?? throw new global::System.ArgumentNullException(nameof(groups)); + } + + /// + /// Initializes a new instance of the class. + /// + public ObservabilityFilterRulesConfigNullable() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponseFunctionToolCallOutput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponseFunctionToolCallOutput.g.cs index 6959dc3f..6c949ba9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponseFunctionToolCallOutput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAIResponseFunctionToolCallOutput.g.cs @@ -33,8 +33,8 @@ public sealed partial class OpenAIResponseFunctionToolCallOutput /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - public global::OpenRouter.ToolCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Status { get; set; } /// /// @@ -64,7 +64,7 @@ public OpenAIResponseFunctionToolCallOutput( string callId, global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput output, string? id, - global::OpenRouter.ToolCallStatus? status, + global::OpenRouter.OneOf? status, global::OpenRouter.OpenAiResponseFunctionToolCallOutputType type) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3.g.cs index 28f9f88a..466cc7f4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3.g.cs @@ -15,6 +15,12 @@ public sealed partial class OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsV [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3TypeJsonConverter))] public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsV /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3( string text, - global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type type) + global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3.g.cs index 6df62824..d78c322e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3.g.cs @@ -15,6 +15,12 @@ public sealed partial class OpenAiResponseFunctionToolCallOutputOutputOneOf1Item [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3TypeJsonConverter))] public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class OpenAiResponseFunctionToolCallOutputOutputOneOf1Item /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3( string text, - global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type type) + global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseInputMessageItemContentItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseInputMessageItemContentItemsVariant4.g.cs index 3c815ee2..297e5667 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseInputMessageItemContentItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponseInputMessageItemContentItemsVariant4.g.cs @@ -15,6 +15,12 @@ public sealed partial class OpenAiResponseInputMessageItemContentItemsVariant4 [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItemsVariant4TypeJsonConverter))] public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type Type { get; set; } + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_breakpoint")] + public global::OpenRouter.PromptCacheBreakpoint? PromptCacheBreakpoint { get; set; } + /// /// /// @@ -35,14 +41,19 @@ public sealed partial class OpenAiResponseInputMessageItemContentItemsVariant4 /// /// Discriminator value: input_text /// + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OpenAiResponseInputMessageItemContentItemsVariant4( string text, - global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type type) + global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type type, + global::OpenRouter.PromptCacheBreakpoint? promptCacheBreakpoint) { this.Type = type; + this.PromptCacheBreakpoint = promptCacheBreakpoint; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.Json.g.cs new file mode 100644 index 00000000..d09d5fba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OpenAiResponsesUsageInputTokensDetails + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OpenAiResponsesUsageInputTokensDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OpenAiResponsesUsageInputTokensDetails), + jsonSerializerContext) as global::OpenRouter.OpenAiResponsesUsageInputTokensDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OpenAiResponsesUsageInputTokensDetails? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OpenAiResponsesUsageInputTokensDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OpenAiResponsesUsageInputTokensDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OpenAiResponsesUsageInputTokensDetails; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.g.cs new file mode 100644 index 00000000..fa853dd8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageInputTokensDetails.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OpenAiResponsesUsageInputTokensDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_write_tokens")] + public int? CacheWriteTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CachedTokens { 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 OpenAiResponsesUsageInputTokensDetails( + int cachedTokens, + int? cacheWriteTokens) + { + this.CacheWriteTokens = cacheWriteTokens; + this.CachedTokens = cachedTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public OpenAiResponsesUsageInputTokensDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.Json.g.cs new file mode 100644 index 00000000..6b0632ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OpenAiResponsesUsageOutputTokensDetails + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails), + jsonSerializerContext) as global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OpenAiResponsesUsageOutputTokensDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OpenAiResponsesUsageOutputTokensDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.g.cs new file mode 100644 index 00000000..70b272c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenAiResponsesUsageOutputTokensDetails.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OpenAiResponsesUsageOutputTokensDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ReasoningTokens { 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 OpenAiResponsesUsageOutputTokensDetails( + int reasoningTokens) + { + this.ReasoningTokens = reasoningTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public OpenAiResponsesUsageOutputTokensDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResult.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResult.g.cs index 755b99f0..58211e80 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResult.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResult.g.cs @@ -78,8 +78,7 @@ public sealed partial class OpenResponsesResult /// Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary Metadata { get; set; } + public global::System.Collections.Generic.Dictionary? Metadata { get; set; } /// /// @@ -139,6 +138,12 @@ public sealed partial class OpenResponsesResult [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_key")] public string? PromptCacheKey { get; set; } + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_options")] + public global::OpenRouter.PromptCacheOptions? PromptCacheOptions { get; set; } + /// /// /// @@ -155,8 +160,8 @@ public sealed partial class OpenResponsesResult /// /// [global::System.Text.Json.Serialization.JsonPropertyName("service_tier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ServiceTierJsonConverter))] + public global::OpenRouter.ServiceTier? ServiceTier { get; set; } /// /// @@ -259,9 +264,6 @@ public sealed partial class OpenResponsesResult /// /// /// - /// - /// Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. - /// /// /// /// @@ -273,12 +275,18 @@ public sealed partial class OpenResponsesResult /// /// /// + /// + /// Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. + /// /// /// /// /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// /// @@ -307,7 +315,6 @@ public OpenResponsesResult( string id, global::OpenRouter.IncompleteDetails incompleteDetails, global::OpenRouter.BaseInputs instructions, - global::System.Collections.Generic.Dictionary metadata, string model, global::System.Collections.Generic.IList output, bool parallelToolCalls, @@ -319,15 +326,17 @@ public OpenResponsesResult( double? frequencyPenalty, int? maxOutputTokens, int? maxToolCalls, + global::System.Collections.Generic.Dictionary? metadata, global::OpenRouter.OpenResponsesResultObject @object, string? outputText, double? presencePenalty, string? previousResponseId, global::OpenRouter.StoredPromptTemplate? prompt, string? promptCacheKey, + global::OpenRouter.PromptCacheOptions? promptCacheOptions, global::OpenRouter.BaseReasoningConfig? reasoning, string? safetyIdentifier, - global::OpenRouter.OneOf? serviceTier, + global::OpenRouter.ServiceTier? serviceTier, bool? store, double? temperature, global::OpenRouter.TextExtendedConfig? text, @@ -349,7 +358,7 @@ public OpenResponsesResult( this.Instructions = instructions; this.MaxOutputTokens = maxOutputTokens; this.MaxToolCalls = maxToolCalls; - this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.Metadata = metadata; this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Object = @object; this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); @@ -359,6 +368,7 @@ public OpenResponsesResult( this.PreviousResponseId = previousResponseId; this.Prompt = prompt; this.PromptCacheKey = promptCacheKey; + this.PromptCacheOptions = promptCacheOptions; this.Reasoning = reasoning; this.SafetyIdentifier = safetyIdentifier; this.ServiceTier = serviceTier; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultToolsItems.g.cs index 99d3a038..06969d25 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultToolsItems.g.cs @@ -526,6 +526,43 @@ public bool TryPickCustomTool( public global::OpenRouter.CustomTool PickCustomTool() => IsCustomTool ? CustomTool! : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); + + /// + /// Groups function/custom tools under a shared namespace + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.NamespaceTool? NamespaceTool { get; init; } +#else + public global::OpenRouter.NamespaceTool? NamespaceTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NamespaceTool))] +#endif + public bool IsNamespaceTool => NamespaceTool != null; + + /// + /// + /// + public bool TryPickNamespaceTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.NamespaceTool? value) + { + value = NamespaceTool; + return IsNamespaceTool; + } + + /// + /// + /// + public global::OpenRouter.NamespaceTool PickNamespaceTool() => IsNamespaceTool + ? NamespaceTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'NamespaceTool' but the value was {ToString()}."); /// /// /// @@ -848,6 +885,29 @@ public OpenResponsesResultToolsItems(global::OpenRouter.CustomTool? value) /// public static OpenResponsesResultToolsItems FromCustomTool(global::OpenRouter.CustomTool? value) => new OpenResponsesResultToolsItems(value); + /// + /// + /// + public static implicit operator OpenResponsesResultToolsItems(global::OpenRouter.NamespaceTool value) => new OpenResponsesResultToolsItems((global::OpenRouter.NamespaceTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.NamespaceTool?(OpenResponsesResultToolsItems @this) => @this.NamespaceTool; + + /// + /// + /// + public OpenResponsesResultToolsItems(global::OpenRouter.NamespaceTool? value) + { + NamespaceTool = value; + } + + /// + /// + /// + public static OpenResponsesResultToolsItems FromNamespaceTool(global::OpenRouter.NamespaceTool? value) => new OpenResponsesResultToolsItems(value); + /// /// /// @@ -865,7 +925,8 @@ public OpenResponsesResultToolsItems( global::OpenRouter.CodexLocalShellTool? codexLocalShellTool, global::OpenRouter.ShellServerTool? shellServerTool, global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool, - global::OpenRouter.CustomTool? customTool + global::OpenRouter.CustomTool? customTool, + global::OpenRouter.NamespaceTool? namespaceTool ) { OpenResponsesResultToolsItems0 = openResponsesResultToolsItems0; @@ -882,12 +943,14 @@ public OpenResponsesResultToolsItems( ShellServerTool = shellServerTool; ApplyPatchServerTool = applyPatchServerTool; CustomTool = customTool; + NamespaceTool = namespaceTool; } /// /// /// public object? Object => + NamespaceTool as object ?? CustomTool as object ?? ApplyPatchServerTool as object ?? ShellServerTool as object ?? @@ -921,7 +984,8 @@ OpenResponsesResultToolsItems0 as object CodexLocalShellTool?.ToString() ?? ShellServerTool?.ToString() ?? ApplyPatchServerTool?.ToString() ?? - CustomTool?.ToString() + CustomTool?.ToString() ?? + NamespaceTool?.ToString() ; /// @@ -929,7 +993,7 @@ OpenResponsesResultToolsItems0 as object /// public bool Validate() { - return IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool; + return IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsNamespaceTool || !IsOpenResponsesResultToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsNamespaceTool; } /// @@ -950,6 +1014,7 @@ public bool Validate() global::System.Func? shellServerTool = null, global::System.Func? applyPatchServerTool = null, global::System.Func? customTool = null, + global::System.Func? namespaceTool = null, bool validate = true) { if (validate) @@ -1013,6 +1078,10 @@ public bool Validate() { return customTool(CustomTool!); } + else if (IsNamespaceTool && namespaceTool != null) + { + return namespaceTool(NamespaceTool!); + } return default(TResult); } @@ -1048,6 +1117,8 @@ public void Match( global::System.Action? applyPatchServerTool = null, global::System.Action? customTool = null, + + global::System.Action? namespaceTool = null, bool validate = true) { if (validate) @@ -1111,6 +1182,10 @@ public void Match( { customTool?.Invoke(CustomTool!); } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } } /// @@ -1131,6 +1206,7 @@ public void Switch( global::System.Action? shellServerTool = null, global::System.Action? applyPatchServerTool = null, global::System.Action? customTool = null, + global::System.Action? namespaceTool = null, bool validate = true) { if (validate) @@ -1194,6 +1270,10 @@ public void Switch( { customTool?.Invoke(CustomTool!); } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } } /// @@ -1231,6 +1311,8 @@ public override int GetHashCode() typeof(global::OpenRouter.ApplyPatchServerTool), CustomTool, typeof(global::OpenRouter.CustomTool), + NamespaceTool, + typeof(global::OpenRouter.NamespaceTool), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1260,7 +1342,8 @@ public bool Equals(OpenResponsesResultToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(CodexLocalShellTool, other.CodexLocalShellTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellServerTool, other.ShellServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerTool, other.ApplyPatchServerTool) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NamespaceTool, other.NamespaceTool) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.Json.g.cs new file mode 100644 index 00000000..02f7b94d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct OrAnthropicNullableCaller + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCaller? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OrAnthropicNullableCaller), + jsonSerializerContext) as global::OpenRouter.OrAnthropicNullableCaller?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCaller? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OrAnthropicNullableCaller? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OrAnthropicNullableCaller), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OrAnthropicNullableCaller?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.g.cs new file mode 100644 index 00000000..7021ddca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCaller.g.cs @@ -0,0 +1,386 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct OrAnthropicNullableCaller : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? Type { get; } + + /// + /// code_execution_20250825 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OrAnthropicNullableCallerVariant1? CodeExecution20250825 { get; init; } +#else + public global::OpenRouter.OrAnthropicNullableCallerVariant1? CodeExecution20250825 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeExecution20250825))] +#endif + public bool IsCodeExecution20250825 => CodeExecution20250825 != null; + + /// + /// + /// + public bool TryPickCodeExecution20250825( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OrAnthropicNullableCallerVariant1? value) + { + value = CodeExecution20250825; + return IsCodeExecution20250825; + } + + /// + /// + /// + public global::OpenRouter.OrAnthropicNullableCallerVariant1 PickCodeExecution20250825() => IsCodeExecution20250825 + ? CodeExecution20250825! + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution20250825' but the value was {ToString()}."); + + /// + /// code_execution_20260120 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OrAnthropicNullableCallerVariant2? CodeExecution20260120 { get; init; } +#else + public global::OpenRouter.OrAnthropicNullableCallerVariant2? CodeExecution20260120 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeExecution20260120))] +#endif + public bool IsCodeExecution20260120 => CodeExecution20260120 != null; + + /// + /// + /// + public bool TryPickCodeExecution20260120( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OrAnthropicNullableCallerVariant2? value) + { + value = CodeExecution20260120; + return IsCodeExecution20260120; + } + + /// + /// + /// + public global::OpenRouter.OrAnthropicNullableCallerVariant2 PickCodeExecution20260120() => IsCodeExecution20260120 + ? CodeExecution20260120! + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution20260120' but the value was {ToString()}."); + + /// + /// direct variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OrAnthropicNullableCallerVariant3? Direct { get; init; } +#else + public global::OpenRouter.OrAnthropicNullableCallerVariant3? Direct { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Direct))] +#endif + public bool IsDirect => Direct != null; + + /// + /// + /// + public bool TryPickDirect( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OrAnthropicNullableCallerVariant3? value) + { + value = Direct; + return IsDirect; + } + + /// + /// + /// + public global::OpenRouter.OrAnthropicNullableCallerVariant3 PickDirect() => IsDirect + ? Direct! + : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant1 value) => new OrAnthropicNullableCaller((global::OpenRouter.OrAnthropicNullableCallerVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OrAnthropicNullableCallerVariant1?(OrAnthropicNullableCaller @this) => @this.CodeExecution20250825; + + /// + /// + /// + public OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant1? value) + { + CodeExecution20250825 = value; + } + + /// + /// + /// + public static OrAnthropicNullableCaller FromCodeExecution20250825(global::OpenRouter.OrAnthropicNullableCallerVariant1? value) => new OrAnthropicNullableCaller(value); + + /// + /// + /// + public static implicit operator OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant2 value) => new OrAnthropicNullableCaller((global::OpenRouter.OrAnthropicNullableCallerVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OrAnthropicNullableCallerVariant2?(OrAnthropicNullableCaller @this) => @this.CodeExecution20260120; + + /// + /// + /// + public OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant2? value) + { + CodeExecution20260120 = value; + } + + /// + /// + /// + public static OrAnthropicNullableCaller FromCodeExecution20260120(global::OpenRouter.OrAnthropicNullableCallerVariant2? value) => new OrAnthropicNullableCaller(value); + + /// + /// + /// + public static implicit operator OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant3 value) => new OrAnthropicNullableCaller((global::OpenRouter.OrAnthropicNullableCallerVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OrAnthropicNullableCallerVariant3?(OrAnthropicNullableCaller @this) => @this.Direct; + + /// + /// + /// + public OrAnthropicNullableCaller(global::OpenRouter.OrAnthropicNullableCallerVariant3? value) + { + Direct = value; + } + + /// + /// + /// + public static OrAnthropicNullableCaller FromDirect(global::OpenRouter.OrAnthropicNullableCallerVariant3? value) => new OrAnthropicNullableCaller(value); + + /// + /// + /// + public OrAnthropicNullableCaller( + global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? type, + global::OpenRouter.OrAnthropicNullableCallerVariant1? codeExecution20250825, + global::OpenRouter.OrAnthropicNullableCallerVariant2? codeExecution20260120, + global::OpenRouter.OrAnthropicNullableCallerVariant3? direct + ) + { + Type = type; + + CodeExecution20250825 = codeExecution20250825; + CodeExecution20260120 = codeExecution20260120; + Direct = direct; + } + + /// + /// + /// + public object? Object => + Direct as object ?? + CodeExecution20260120 as object ?? + CodeExecution20250825 as object + ; + + /// + /// + /// + public override string? ToString() => + CodeExecution20250825?.ToString() ?? + CodeExecution20260120?.ToString() ?? + Direct?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCodeExecution20250825 && !IsCodeExecution20260120 && !IsDirect || !IsCodeExecution20250825 && IsCodeExecution20260120 && !IsDirect || !IsCodeExecution20250825 && !IsCodeExecution20260120 && IsDirect; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? codeExecution20250825 = null, + global::System.Func? codeExecution20260120 = null, + global::System.Func? direct = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeExecution20250825 && codeExecution20250825 != null) + { + return codeExecution20250825(CodeExecution20250825!); + } + else if (IsCodeExecution20260120 && codeExecution20260120 != null) + { + return codeExecution20260120(CodeExecution20260120!); + } + else if (IsDirect && direct != null) + { + return direct(Direct!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? codeExecution20250825 = null, + + global::System.Action? codeExecution20260120 = null, + + global::System.Action? direct = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeExecution20250825) + { + codeExecution20250825?.Invoke(CodeExecution20250825!); + } + else if (IsCodeExecution20260120) + { + codeExecution20260120?.Invoke(CodeExecution20260120!); + } + else if (IsDirect) + { + direct?.Invoke(Direct!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? codeExecution20250825 = null, + global::System.Action? codeExecution20260120 = null, + global::System.Action? direct = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCodeExecution20250825) + { + codeExecution20250825?.Invoke(CodeExecution20250825!); + } + else if (IsCodeExecution20260120) + { + codeExecution20260120?.Invoke(CodeExecution20260120!); + } + else if (IsDirect) + { + direct?.Invoke(Direct!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CodeExecution20250825, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1), + CodeExecution20260120, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2), + Direct, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3), + }; + 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(OrAnthropicNullableCaller other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeExecution20250825, other.CodeExecution20250825) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeExecution20260120, other.CodeExecution20260120) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Direct, other.Direct) + ; + } + + /// + /// + /// + public static bool operator ==(OrAnthropicNullableCaller obj1, OrAnthropicNullableCaller obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(OrAnthropicNullableCaller obj1, OrAnthropicNullableCaller obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is OrAnthropicNullableCaller o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.Json.g.cs new file mode 100644 index 00000000..f964c5ec --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OrAnthropicNullableCallerDiscriminator + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OrAnthropicNullableCallerDiscriminator), + jsonSerializerContext) as global::OpenRouter.OrAnthropicNullableCallerDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OrAnthropicNullableCallerDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OrAnthropicNullableCallerDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OrAnthropicNullableCallerDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.g.cs new file mode 100644 index 00000000..e247f712 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class OrAnthropicNullableCallerDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerDiscriminatorTypeJsonConverter))] + public global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? 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 OrAnthropicNullableCallerDiscriminator( + global::OpenRouter.OrAnthropicNullableCallerDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public OrAnthropicNullableCallerDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminatorType.g.cs new file mode 100644 index 00000000..8b2ae905 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum OrAnthropicNullableCallerDiscriminatorType + { + /// + /// + /// + CodeExecution20250825, + /// + /// + /// + CodeExecution20260120, + /// + /// + /// + Direct, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrAnthropicNullableCallerDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrAnthropicNullableCallerDiscriminatorType value) + { + return value switch + { + OrAnthropicNullableCallerDiscriminatorType.CodeExecution20250825 => "code_execution_20250825", + OrAnthropicNullableCallerDiscriminatorType.CodeExecution20260120 => "code_execution_20260120", + OrAnthropicNullableCallerDiscriminatorType.Direct => "direct", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrAnthropicNullableCallerDiscriminatorType? ToEnum(string value) + { + return value switch + { + "code_execution_20250825" => OrAnthropicNullableCallerDiscriminatorType.CodeExecution20250825, + "code_execution_20260120" => OrAnthropicNullableCallerDiscriminatorType.CodeExecution20260120, + "direct" => OrAnthropicNullableCallerDiscriminatorType.Direct, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.Json.g.cs new file mode 100644 index 00000000..a3ee9df7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OrAnthropicNullableCallerVariant1 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant1), + jsonSerializerContext) as global::OpenRouter.OrAnthropicNullableCallerVariant1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant1? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OrAnthropicNullableCallerVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OrAnthropicNullableCallerVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OrAnthropicNullableCallerVariant1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.g.cs new file mode 100644 index 00000000..7caad9da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// code_execution_20250825 variant + /// + public sealed partial class OrAnthropicNullableCallerVariant1 + { + /// + /// Discriminator value: code_execution_20250825 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant1TypeJsonConverter))] + public global::OpenRouter.OrAnthropicNullableCallerVariant1Type Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolId { 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. + /// + /// + /// + /// Discriminator value: code_execution_20250825 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OrAnthropicNullableCallerVariant1( + string toolId, + global::OpenRouter.OrAnthropicNullableCallerVariant1Type type) + { + this.Type = type; + this.ToolId = toolId ?? throw new global::System.ArgumentNullException(nameof(toolId)); + } + + /// + /// Initializes a new instance of the class. + /// + public OrAnthropicNullableCallerVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1Type.g.cs new file mode 100644 index 00000000..b60a6ca0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: code_execution_20250825 + /// + public enum OrAnthropicNullableCallerVariant1Type + { + /// + /// code_execution_20250825 + /// + CodeExecution20250825, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrAnthropicNullableCallerVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrAnthropicNullableCallerVariant1Type value) + { + return value switch + { + OrAnthropicNullableCallerVariant1Type.CodeExecution20250825 => "code_execution_20250825", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrAnthropicNullableCallerVariant1Type? ToEnum(string value) + { + return value switch + { + "code_execution_20250825" => OrAnthropicNullableCallerVariant1Type.CodeExecution20250825, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.Json.g.cs new file mode 100644 index 00000000..a03bdb56 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OrAnthropicNullableCallerVariant2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant2), + jsonSerializerContext) as global::OpenRouter.OrAnthropicNullableCallerVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OrAnthropicNullableCallerVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OrAnthropicNullableCallerVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OrAnthropicNullableCallerVariant2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.g.cs new file mode 100644 index 00000000..bbbe0b03 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// code_execution_20260120 variant + /// + public sealed partial class OrAnthropicNullableCallerVariant2 + { + /// + /// Discriminator value: code_execution_20260120 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant2TypeJsonConverter))] + public global::OpenRouter.OrAnthropicNullableCallerVariant2Type Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolId { 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. + /// + /// + /// + /// Discriminator value: code_execution_20260120 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OrAnthropicNullableCallerVariant2( + string toolId, + global::OpenRouter.OrAnthropicNullableCallerVariant2Type type) + { + this.Type = type; + this.ToolId = toolId ?? throw new global::System.ArgumentNullException(nameof(toolId)); + } + + /// + /// Initializes a new instance of the class. + /// + public OrAnthropicNullableCallerVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2Type.g.cs new file mode 100644 index 00000000..2cdfeed0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: code_execution_20260120 + /// + public enum OrAnthropicNullableCallerVariant2Type + { + /// + /// code_execution_20260120 + /// + CodeExecution20260120, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrAnthropicNullableCallerVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrAnthropicNullableCallerVariant2Type value) + { + return value switch + { + OrAnthropicNullableCallerVariant2Type.CodeExecution20260120 => "code_execution_20260120", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrAnthropicNullableCallerVariant2Type? ToEnum(string value) + { + return value switch + { + "code_execution_20260120" => OrAnthropicNullableCallerVariant2Type.CodeExecution20260120, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.Json.g.cs new file mode 100644 index 00000000..d6814aa1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OrAnthropicNullableCallerVariant3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OrAnthropicNullableCallerVariant3), + jsonSerializerContext) as global::OpenRouter.OrAnthropicNullableCallerVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OrAnthropicNullableCallerVariant3? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OrAnthropicNullableCallerVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OrAnthropicNullableCallerVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OrAnthropicNullableCallerVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.g.cs new file mode 100644 index 00000000..0a75b4a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// direct variant + /// + public sealed partial class OrAnthropicNullableCallerVariant3 + { + /// + /// Discriminator value: direct + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OrAnthropicNullableCallerVariant3TypeJsonConverter))] + public global::OpenRouter.OrAnthropicNullableCallerVariant3Type 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. + /// + /// + /// Discriminator value: direct + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OrAnthropicNullableCallerVariant3( + global::OpenRouter.OrAnthropicNullableCallerVariant3Type type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public OrAnthropicNullableCallerVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3Type.g.cs new file mode 100644 index 00000000..82e84c81 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OrAnthropicNullableCallerVariant3Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: direct + /// + public enum OrAnthropicNullableCallerVariant3Type + { + /// + /// direct + /// + Direct, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrAnthropicNullableCallerVariant3TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrAnthropicNullableCallerVariant3Type value) + { + return value switch + { + OrAnthropicNullableCallerVariant3Type.Direct => "direct", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrAnthropicNullableCallerVariant3Type? ToEnum(string value) + { + return value switch + { + "direct" => OrAnthropicNullableCallerVariant3Type.Direct, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItem.g.cs index d6610cb6..3f677dd7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputComputerCallItem.g.cs @@ -9,7 +9,7 @@ namespace OpenRouter public sealed partial class OutputComputerCallItem { /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] public object? Action { get; set; } @@ -54,7 +54,9 @@ public sealed partial class OutputComputerCallItem /// /// /// - /// + /// + /// Any type + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.Json.g.cs new file mode 100644 index 00000000..568d7516 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputFilesServerToolItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OutputFilesServerToolItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputFilesServerToolItem), + jsonSerializerContext) as global::OpenRouter.OutputFilesServerToolItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OutputFilesServerToolItem? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OutputFilesServerToolItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OutputFilesServerToolItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputFilesServerToolItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.g.cs new file mode 100644 index 00000000..a5054e7c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputFilesServerToolItem.g.cs @@ -0,0 +1,110 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// An openrouter:files server tool output item + /// + public sealed partial class OutputFilesServerToolItem + { + /// + /// Error message when the file operation failed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } + + /// + /// The target file id supplied in the tool-call arguments. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] + public string? FileId { get; set; } + + /// + /// The target filename supplied in the tool-call arguments. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// The file operation performed (list, read, write, or edit). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + public string? Operation { get; set; } + + /// + /// JSON-serialized result of the file operation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + public string? Result { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ToolCallStatus Status { 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. + /// + /// + /// + /// Error message when the file operation failed. + /// + /// + /// The target file id supplied in the tool-call arguments. + /// + /// + /// The target filename supplied in the tool-call arguments. + /// + /// + /// + /// The file operation performed (list, read, write, or edit). + /// + /// + /// JSON-serialized result of the file operation. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OutputFilesServerToolItem( + global::OpenRouter.ToolCallStatus status, + string? error, + string? fileId, + string? filename, + string? id, + string? operation, + string? result) + { + this.Error = error; + this.FileId = fileId; + this.Filename = filename; + this.Id = id; + this.Operation = operation; + this.Result = result; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputFilesServerToolItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs index dd0e7d04..a6de8c3e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItems.g.cs @@ -606,13 +606,50 @@ public bool TryPickOpenrouterFileSearch( ? OpenrouterFileSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterFileSearch' but the value was {ToString()}."); + /// + /// An openrouter:files server tool output item + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.OutputItemsVariant17? OpenrouterFiles { get; init; } +#else + public global::OpenRouter.OutputItemsVariant17? OpenrouterFiles { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OpenrouterFiles))] +#endif + public bool IsOpenrouterFiles => OpenrouterFiles != null; + + /// + /// + /// + public bool TryPickOpenrouterFiles( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.OutputItemsVariant17? value) + { + value = OpenrouterFiles; + return IsOpenrouterFiles; + } + + /// + /// + /// + public global::OpenRouter.OutputItemsVariant17 PickOpenrouterFiles() => IsOpenrouterFiles + ? OpenrouterFiles! + : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterFiles' but the value was {ToString()}."); + /// /// An openrouter:fusion server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant17? OpenrouterFusion { get; init; } + public global::OpenRouter.OutputItemsVariant18? OpenrouterFusion { get; init; } #else - public global::OpenRouter.OutputItemsVariant17? OpenrouterFusion { get; } + public global::OpenRouter.OutputItemsVariant18? OpenrouterFusion { get; } #endif /// @@ -630,7 +667,7 @@ public bool TryPickOpenrouterFusion( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant17? value) + out global::OpenRouter.OutputItemsVariant18? value) { value = OpenrouterFusion; return IsOpenrouterFusion; @@ -639,7 +676,7 @@ public bool TryPickOpenrouterFusion( /// /// /// - public global::OpenRouter.OutputItemsVariant17 PickOpenrouterFusion() => IsOpenrouterFusion + public global::OpenRouter.OutputItemsVariant18 PickOpenrouterFusion() => IsOpenrouterFusion ? OpenrouterFusion! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterFusion' but the value was {ToString()}."); @@ -647,9 +684,9 @@ public bool TryPickOpenrouterFusion( /// An openrouter:image_generation server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant18? OpenrouterImageGeneration { get; init; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterImageGeneration { get; init; } #else - public global::OpenRouter.OutputItemsVariant18? OpenrouterImageGeneration { get; } + public global::OpenRouter.OutputItemsVariant19? OpenrouterImageGeneration { get; } #endif /// @@ -667,7 +704,7 @@ public bool TryPickOpenrouterImageGeneration( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant18? value) + out global::OpenRouter.OutputItemsVariant19? value) { value = OpenrouterImageGeneration; return IsOpenrouterImageGeneration; @@ -676,7 +713,7 @@ public bool TryPickOpenrouterImageGeneration( /// /// /// - public global::OpenRouter.OutputItemsVariant18 PickOpenrouterImageGeneration() => IsOpenrouterImageGeneration + public global::OpenRouter.OutputItemsVariant19 PickOpenrouterImageGeneration() => IsOpenrouterImageGeneration ? OpenrouterImageGeneration! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterImageGeneration' but the value was {ToString()}."); @@ -684,9 +721,9 @@ public bool TryPickOpenrouterImageGeneration( /// An openrouter:mcp server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant19? OpenrouterMcp { get; init; } + public global::OpenRouter.OutputItemsVariant20? OpenrouterMcp { get; init; } #else - public global::OpenRouter.OutputItemsVariant19? OpenrouterMcp { get; } + public global::OpenRouter.OutputItemsVariant20? OpenrouterMcp { get; } #endif /// @@ -704,7 +741,7 @@ public bool TryPickOpenrouterMcp( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant19? value) + out global::OpenRouter.OutputItemsVariant20? value) { value = OpenrouterMcp; return IsOpenrouterMcp; @@ -713,7 +750,7 @@ public bool TryPickOpenrouterMcp( /// /// /// - public global::OpenRouter.OutputItemsVariant19 PickOpenrouterMcp() => IsOpenrouterMcp + public global::OpenRouter.OutputItemsVariant20 PickOpenrouterMcp() => IsOpenrouterMcp ? OpenrouterMcp! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterMcp' but the value was {ToString()}."); @@ -721,9 +758,9 @@ public bool TryPickOpenrouterMcp( /// An openrouter:memory server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant20? OpenrouterMemory { get; init; } + public global::OpenRouter.OutputItemsVariant21? OpenrouterMemory { get; init; } #else - public global::OpenRouter.OutputItemsVariant20? OpenrouterMemory { get; } + public global::OpenRouter.OutputItemsVariant21? OpenrouterMemory { get; } #endif /// @@ -741,7 +778,7 @@ public bool TryPickOpenrouterMemory( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant20? value) + out global::OpenRouter.OutputItemsVariant21? value) { value = OpenrouterMemory; return IsOpenrouterMemory; @@ -750,7 +787,7 @@ public bool TryPickOpenrouterMemory( /// /// /// - public global::OpenRouter.OutputItemsVariant20 PickOpenrouterMemory() => IsOpenrouterMemory + public global::OpenRouter.OutputItemsVariant21 PickOpenrouterMemory() => IsOpenrouterMemory ? OpenrouterMemory! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterMemory' but the value was {ToString()}."); @@ -758,9 +795,9 @@ public bool TryPickOpenrouterMemory( /// An openrouter:subagent server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant21? OpenrouterSubagent { get; init; } + public global::OpenRouter.OutputItemsVariant22? OpenrouterSubagent { get; init; } #else - public global::OpenRouter.OutputItemsVariant21? OpenrouterSubagent { get; } + public global::OpenRouter.OutputItemsVariant22? OpenrouterSubagent { get; } #endif /// @@ -778,7 +815,7 @@ public bool TryPickOpenrouterSubagent( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant21? value) + out global::OpenRouter.OutputItemsVariant22? value) { value = OpenrouterSubagent; return IsOpenrouterSubagent; @@ -787,7 +824,7 @@ public bool TryPickOpenrouterSubagent( /// /// /// - public global::OpenRouter.OutputItemsVariant21 PickOpenrouterSubagent() => IsOpenrouterSubagent + public global::OpenRouter.OutputItemsVariant22 PickOpenrouterSubagent() => IsOpenrouterSubagent ? OpenrouterSubagent! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterSubagent' but the value was {ToString()}."); @@ -795,9 +832,9 @@ public bool TryPickOpenrouterSubagent( /// An openrouter:text_editor server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant22? OpenrouterTextEditor { get; init; } + public global::OpenRouter.OutputItemsVariant23? OpenrouterTextEditor { get; init; } #else - public global::OpenRouter.OutputItemsVariant22? OpenrouterTextEditor { get; } + public global::OpenRouter.OutputItemsVariant23? OpenrouterTextEditor { get; } #endif /// @@ -815,7 +852,7 @@ public bool TryPickOpenrouterTextEditor( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant22? value) + out global::OpenRouter.OutputItemsVariant23? value) { value = OpenrouterTextEditor; return IsOpenrouterTextEditor; @@ -824,7 +861,7 @@ public bool TryPickOpenrouterTextEditor( /// /// /// - public global::OpenRouter.OutputItemsVariant22 PickOpenrouterTextEditor() => IsOpenrouterTextEditor + public global::OpenRouter.OutputItemsVariant23 PickOpenrouterTextEditor() => IsOpenrouterTextEditor ? OpenrouterTextEditor! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterTextEditor' but the value was {ToString()}."); @@ -832,9 +869,9 @@ public bool TryPickOpenrouterTextEditor( /// An openrouter:tool_search server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant23? OpenrouterToolSearch { get; init; } + public global::OpenRouter.OutputItemsVariant24? OpenrouterToolSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant23? OpenrouterToolSearch { get; } + public global::OpenRouter.OutputItemsVariant24? OpenrouterToolSearch { get; } #endif /// @@ -852,7 +889,7 @@ public bool TryPickOpenrouterToolSearch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant23? value) + out global::OpenRouter.OutputItemsVariant24? value) { value = OpenrouterToolSearch; return IsOpenrouterToolSearch; @@ -861,7 +898,7 @@ public bool TryPickOpenrouterToolSearch( /// /// /// - public global::OpenRouter.OutputItemsVariant23 PickOpenrouterToolSearch() => IsOpenrouterToolSearch + public global::OpenRouter.OutputItemsVariant24 PickOpenrouterToolSearch() => IsOpenrouterToolSearch ? OpenrouterToolSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterToolSearch' but the value was {ToString()}."); @@ -869,9 +906,9 @@ public bool TryPickOpenrouterToolSearch( /// An openrouter:web_fetch server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant24? OpenrouterWebFetch { get; init; } + public global::OpenRouter.OutputItemsVariant25? OpenrouterWebFetch { get; init; } #else - public global::OpenRouter.OutputItemsVariant24? OpenrouterWebFetch { get; } + public global::OpenRouter.OutputItemsVariant25? OpenrouterWebFetch { get; } #endif /// @@ -889,7 +926,7 @@ public bool TryPickOpenrouterWebFetch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant24? value) + out global::OpenRouter.OutputItemsVariant25? value) { value = OpenrouterWebFetch; return IsOpenrouterWebFetch; @@ -898,7 +935,7 @@ public bool TryPickOpenrouterWebFetch( /// /// /// - public global::OpenRouter.OutputItemsVariant24 PickOpenrouterWebFetch() => IsOpenrouterWebFetch + public global::OpenRouter.OutputItemsVariant25 PickOpenrouterWebFetch() => IsOpenrouterWebFetch ? OpenrouterWebFetch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterWebFetch' but the value was {ToString()}."); @@ -906,9 +943,9 @@ public bool TryPickOpenrouterWebFetch( /// An openrouter:web_search server tool output item /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant25? OpenrouterWebSearch { get; init; } + public global::OpenRouter.OutputItemsVariant26? OpenrouterWebSearch { get; init; } #else - public global::OpenRouter.OutputItemsVariant25? OpenrouterWebSearch { get; } + public global::OpenRouter.OutputItemsVariant26? OpenrouterWebSearch { get; } #endif /// @@ -926,7 +963,7 @@ public bool TryPickOpenrouterWebSearch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant25? value) + out global::OpenRouter.OutputItemsVariant26? value) { value = OpenrouterWebSearch; return IsOpenrouterWebSearch; @@ -935,7 +972,7 @@ public bool TryPickOpenrouterWebSearch( /// /// /// - public global::OpenRouter.OutputItemsVariant25 PickOpenrouterWebSearch() => IsOpenrouterWebSearch + public global::OpenRouter.OutputItemsVariant26 PickOpenrouterWebSearch() => IsOpenrouterWebSearch ? OpenrouterWebSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'OpenrouterWebSearch' but the value was {ToString()}."); @@ -943,9 +980,9 @@ public bool TryPickOpenrouterWebSearch( /// An output item containing reasoning /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant26? Reasoning { get; init; } + public global::OpenRouter.OutputItemsVariant27? Reasoning { get; init; } #else - public global::OpenRouter.OutputItemsVariant26? Reasoning { get; } + public global::OpenRouter.OutputItemsVariant27? Reasoning { get; } #endif /// @@ -963,7 +1000,7 @@ public bool TryPickReasoning( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant26? value) + out global::OpenRouter.OutputItemsVariant27? value) { value = Reasoning; return IsReasoning; @@ -972,7 +1009,7 @@ public bool TryPickReasoning( /// /// /// - public global::OpenRouter.OutputItemsVariant26 PickReasoning() => IsReasoning + public global::OpenRouter.OutputItemsVariant27 PickReasoning() => IsReasoning ? Reasoning! : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); @@ -980,9 +1017,9 @@ public bool TryPickReasoning( /// A native `shell_call` output item matching OpenAI's Responses API shape. Emitted for the sandbox-backed `shell` tool. /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant27? ShellCall { get; init; } + public global::OpenRouter.OutputItemsVariant28? ShellCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant27? ShellCall { get; } + public global::OpenRouter.OutputItemsVariant28? ShellCall { get; } #endif /// @@ -1000,7 +1037,7 @@ public bool TryPickShellCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant27? value) + out global::OpenRouter.OutputItemsVariant28? value) { value = ShellCall; return IsShellCall; @@ -1009,7 +1046,7 @@ public bool TryPickShellCall( /// /// /// - public global::OpenRouter.OutputItemsVariant27 PickShellCall() => IsShellCall + public global::OpenRouter.OutputItemsVariant28 PickShellCall() => IsShellCall ? ShellCall! : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); @@ -1017,9 +1054,9 @@ public bool TryPickShellCall( /// A native `shell_call_output` item matching OpenAI's Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome. /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant28? ShellCallOutput { get; init; } + public global::OpenRouter.OutputItemsVariant29? ShellCallOutput { get; init; } #else - public global::OpenRouter.OutputItemsVariant28? ShellCallOutput { get; } + public global::OpenRouter.OutputItemsVariant29? ShellCallOutput { get; } #endif /// @@ -1037,7 +1074,7 @@ public bool TryPickShellCallOutput( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant28? value) + out global::OpenRouter.OutputItemsVariant29? value) { value = ShellCallOutput; return IsShellCallOutput; @@ -1046,7 +1083,7 @@ public bool TryPickShellCallOutput( /// /// /// - public global::OpenRouter.OutputItemsVariant28 PickShellCallOutput() => IsShellCallOutput + public global::OpenRouter.OutputItemsVariant29 PickShellCallOutput() => IsShellCallOutput ? ShellCallOutput! : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); @@ -1054,9 +1091,9 @@ public bool TryPickShellCallOutput( /// web_search_call variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.OutputItemsVariant29? WebSearchCall { get; init; } + public global::OpenRouter.OutputItemsVariant30? WebSearchCall { get; init; } #else - public global::OpenRouter.OutputItemsVariant29? WebSearchCall { get; } + public global::OpenRouter.OutputItemsVariant30? WebSearchCall { get; } #endif /// @@ -1074,7 +1111,7 @@ public bool TryPickWebSearchCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.OutputItemsVariant29? value) + out global::OpenRouter.OutputItemsVariant30? value) { value = WebSearchCall; return IsWebSearchCall; @@ -1083,7 +1120,7 @@ public bool TryPickWebSearchCall( /// /// /// - public global::OpenRouter.OutputItemsVariant29 PickWebSearchCall() => IsWebSearchCall + public global::OpenRouter.OutputItemsVariant30 PickWebSearchCall() => IsWebSearchCall ? WebSearchCall! : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -1462,20 +1499,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant16? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant17?(OutputItems @this) => @this.OpenrouterFusion; + public static implicit operator global::OpenRouter.OutputItemsVariant17?(OutputItems @this) => @this.OpenrouterFiles; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant17? value) { - OpenrouterFusion = value; + OpenrouterFiles = value; } /// /// /// - public static OutputItems FromOpenrouterFusion(global::OpenRouter.OutputItemsVariant17? value) => new OutputItems(value); + public static OutputItems FromOpenrouterFiles(global::OpenRouter.OutputItemsVariant17? value) => new OutputItems(value); /// /// @@ -1485,20 +1522,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant17? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant18?(OutputItems @this) => @this.OpenrouterImageGeneration; + public static implicit operator global::OpenRouter.OutputItemsVariant18?(OutputItems @this) => @this.OpenrouterFusion; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant18? value) { - OpenrouterImageGeneration = value; + OpenrouterFusion = value; } /// /// /// - public static OutputItems FromOpenrouterImageGeneration(global::OpenRouter.OutputItemsVariant18? value) => new OutputItems(value); + public static OutputItems FromOpenrouterFusion(global::OpenRouter.OutputItemsVariant18? value) => new OutputItems(value); /// /// @@ -1508,20 +1545,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant18? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant19?(OutputItems @this) => @this.OpenrouterMcp; + public static implicit operator global::OpenRouter.OutputItemsVariant19?(OutputItems @this) => @this.OpenrouterImageGeneration; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant19? value) { - OpenrouterMcp = value; + OpenrouterImageGeneration = value; } /// /// /// - public static OutputItems FromOpenrouterMcp(global::OpenRouter.OutputItemsVariant19? value) => new OutputItems(value); + public static OutputItems FromOpenrouterImageGeneration(global::OpenRouter.OutputItemsVariant19? value) => new OutputItems(value); /// /// @@ -1531,20 +1568,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant19? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant20?(OutputItems @this) => @this.OpenrouterMemory; + public static implicit operator global::OpenRouter.OutputItemsVariant20?(OutputItems @this) => @this.OpenrouterMcp; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant20? value) { - OpenrouterMemory = value; + OpenrouterMcp = value; } /// /// /// - public static OutputItems FromOpenrouterMemory(global::OpenRouter.OutputItemsVariant20? value) => new OutputItems(value); + public static OutputItems FromOpenrouterMcp(global::OpenRouter.OutputItemsVariant20? value) => new OutputItems(value); /// /// @@ -1554,20 +1591,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant20? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant21?(OutputItems @this) => @this.OpenrouterSubagent; + public static implicit operator global::OpenRouter.OutputItemsVariant21?(OutputItems @this) => @this.OpenrouterMemory; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant21? value) { - OpenrouterSubagent = value; + OpenrouterMemory = value; } /// /// /// - public static OutputItems FromOpenrouterSubagent(global::OpenRouter.OutputItemsVariant21? value) => new OutputItems(value); + public static OutputItems FromOpenrouterMemory(global::OpenRouter.OutputItemsVariant21? value) => new OutputItems(value); /// /// @@ -1577,20 +1614,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant21? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant22?(OutputItems @this) => @this.OpenrouterTextEditor; + public static implicit operator global::OpenRouter.OutputItemsVariant22?(OutputItems @this) => @this.OpenrouterSubagent; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant22? value) { - OpenrouterTextEditor = value; + OpenrouterSubagent = value; } /// /// /// - public static OutputItems FromOpenrouterTextEditor(global::OpenRouter.OutputItemsVariant22? value) => new OutputItems(value); + public static OutputItems FromOpenrouterSubagent(global::OpenRouter.OutputItemsVariant22? value) => new OutputItems(value); /// /// @@ -1600,20 +1637,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant22? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant23?(OutputItems @this) => @this.OpenrouterToolSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant23?(OutputItems @this) => @this.OpenrouterTextEditor; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant23? value) { - OpenrouterToolSearch = value; + OpenrouterTextEditor = value; } /// /// /// - public static OutputItems FromOpenrouterToolSearch(global::OpenRouter.OutputItemsVariant23? value) => new OutputItems(value); + public static OutputItems FromOpenrouterTextEditor(global::OpenRouter.OutputItemsVariant23? value) => new OutputItems(value); /// /// @@ -1623,20 +1660,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant23? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant24?(OutputItems @this) => @this.OpenrouterWebFetch; + public static implicit operator global::OpenRouter.OutputItemsVariant24?(OutputItems @this) => @this.OpenrouterToolSearch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant24? value) { - OpenrouterWebFetch = value; + OpenrouterToolSearch = value; } /// /// /// - public static OutputItems FromOpenrouterWebFetch(global::OpenRouter.OutputItemsVariant24? value) => new OutputItems(value); + public static OutputItems FromOpenrouterToolSearch(global::OpenRouter.OutputItemsVariant24? value) => new OutputItems(value); /// /// @@ -1646,20 +1683,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant24? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant25?(OutputItems @this) => @this.OpenrouterWebSearch; + public static implicit operator global::OpenRouter.OutputItemsVariant25?(OutputItems @this) => @this.OpenrouterWebFetch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant25? value) { - OpenrouterWebSearch = value; + OpenrouterWebFetch = value; } /// /// /// - public static OutputItems FromOpenrouterWebSearch(global::OpenRouter.OutputItemsVariant25? value) => new OutputItems(value); + public static OutputItems FromOpenrouterWebFetch(global::OpenRouter.OutputItemsVariant25? value) => new OutputItems(value); /// /// @@ -1669,20 +1706,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant25? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant26?(OutputItems @this) => @this.Reasoning; + public static implicit operator global::OpenRouter.OutputItemsVariant26?(OutputItems @this) => @this.OpenrouterWebSearch; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant26? value) { - Reasoning = value; + OpenrouterWebSearch = value; } /// /// /// - public static OutputItems FromReasoning(global::OpenRouter.OutputItemsVariant26? value) => new OutputItems(value); + public static OutputItems FromOpenrouterWebSearch(global::OpenRouter.OutputItemsVariant26? value) => new OutputItems(value); /// /// @@ -1692,20 +1729,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant26? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant27?(OutputItems @this) => @this.ShellCall; + public static implicit operator global::OpenRouter.OutputItemsVariant27?(OutputItems @this) => @this.Reasoning; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant27? value) { - ShellCall = value; + Reasoning = value; } /// /// /// - public static OutputItems FromShellCall(global::OpenRouter.OutputItemsVariant27? value) => new OutputItems(value); + public static OutputItems FromReasoning(global::OpenRouter.OutputItemsVariant27? value) => new OutputItems(value); /// /// @@ -1715,20 +1752,20 @@ public OutputItems(global::OpenRouter.OutputItemsVariant27? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant28?(OutputItems @this) => @this.ShellCallOutput; + public static implicit operator global::OpenRouter.OutputItemsVariant28?(OutputItems @this) => @this.ShellCall; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant28? value) { - ShellCallOutput = value; + ShellCall = value; } /// /// /// - public static OutputItems FromShellCallOutput(global::OpenRouter.OutputItemsVariant28? value) => new OutputItems(value); + public static OutputItems FromShellCall(global::OpenRouter.OutputItemsVariant28? value) => new OutputItems(value); /// /// @@ -1738,12 +1775,35 @@ public OutputItems(global::OpenRouter.OutputItemsVariant28? value) /// /// /// - public static implicit operator global::OpenRouter.OutputItemsVariant29?(OutputItems @this) => @this.WebSearchCall; + public static implicit operator global::OpenRouter.OutputItemsVariant29?(OutputItems @this) => @this.ShellCallOutput; /// /// /// public OutputItems(global::OpenRouter.OutputItemsVariant29? value) + { + ShellCallOutput = value; + } + + /// + /// + /// + public static OutputItems FromShellCallOutput(global::OpenRouter.OutputItemsVariant29? value) => new OutputItems(value); + + /// + /// + /// + public static implicit operator OutputItems(global::OpenRouter.OutputItemsVariant30 value) => new OutputItems((global::OpenRouter.OutputItemsVariant30?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.OutputItemsVariant30?(OutputItems @this) => @this.WebSearchCall; + + /// + /// + /// + public OutputItems(global::OpenRouter.OutputItemsVariant30? value) { WebSearchCall = value; } @@ -1751,7 +1811,7 @@ public OutputItems(global::OpenRouter.OutputItemsVariant29? value) /// /// /// - public static OutputItems FromWebSearchCall(global::OpenRouter.OutputItemsVariant29? value) => new OutputItems(value); + public static OutputItems FromWebSearchCall(global::OpenRouter.OutputItemsVariant30? value) => new OutputItems(value); /// /// @@ -1774,19 +1834,20 @@ public OutputItems( global::OpenRouter.OutputItemsVariant14? openrouterDatetime, global::OpenRouter.OutputItemsVariant15? openrouterExperimentalSearchModels, global::OpenRouter.OutputItemsVariant16? openrouterFileSearch, - global::OpenRouter.OutputItemsVariant17? openrouterFusion, - global::OpenRouter.OutputItemsVariant18? openrouterImageGeneration, - global::OpenRouter.OutputItemsVariant19? openrouterMcp, - global::OpenRouter.OutputItemsVariant20? openrouterMemory, - global::OpenRouter.OutputItemsVariant21? openrouterSubagent, - global::OpenRouter.OutputItemsVariant22? openrouterTextEditor, - global::OpenRouter.OutputItemsVariant23? openrouterToolSearch, - global::OpenRouter.OutputItemsVariant24? openrouterWebFetch, - global::OpenRouter.OutputItemsVariant25? openrouterWebSearch, - global::OpenRouter.OutputItemsVariant26? reasoning, - global::OpenRouter.OutputItemsVariant27? shellCall, - global::OpenRouter.OutputItemsVariant28? shellCallOutput, - global::OpenRouter.OutputItemsVariant29? webSearchCall + global::OpenRouter.OutputItemsVariant17? openrouterFiles, + global::OpenRouter.OutputItemsVariant18? openrouterFusion, + global::OpenRouter.OutputItemsVariant19? openrouterImageGeneration, + global::OpenRouter.OutputItemsVariant20? openrouterMcp, + global::OpenRouter.OutputItemsVariant21? openrouterMemory, + global::OpenRouter.OutputItemsVariant22? openrouterSubagent, + global::OpenRouter.OutputItemsVariant23? openrouterTextEditor, + global::OpenRouter.OutputItemsVariant24? openrouterToolSearch, + global::OpenRouter.OutputItemsVariant25? openrouterWebFetch, + global::OpenRouter.OutputItemsVariant26? openrouterWebSearch, + global::OpenRouter.OutputItemsVariant27? reasoning, + global::OpenRouter.OutputItemsVariant28? shellCall, + global::OpenRouter.OutputItemsVariant29? shellCallOutput, + global::OpenRouter.OutputItemsVariant30? webSearchCall ) { Type = type; @@ -1807,6 +1868,7 @@ public OutputItems( OpenrouterDatetime = openrouterDatetime; OpenrouterExperimentalSearchModels = openrouterExperimentalSearchModels; OpenrouterFileSearch = openrouterFileSearch; + OpenrouterFiles = openrouterFiles; OpenrouterFusion = openrouterFusion; OpenrouterImageGeneration = openrouterImageGeneration; OpenrouterMcp = openrouterMcp; @@ -1839,6 +1901,7 @@ OpenrouterMemory as object ?? OpenrouterMcp as object ?? OpenrouterImageGeneration as object ?? OpenrouterFusion as object ?? + OpenrouterFiles as object ?? OpenrouterFileSearch as object ?? OpenrouterExperimentalSearchModels as object ?? OpenrouterDatetime as object ?? @@ -1877,6 +1940,7 @@ ApplyPatchCall as object OpenrouterDatetime?.ToString() ?? OpenrouterExperimentalSearchModels?.ToString() ?? OpenrouterFileSearch?.ToString() ?? + OpenrouterFiles?.ToString() ?? OpenrouterFusion?.ToString() ?? OpenrouterImageGeneration?.ToString() ?? OpenrouterMcp?.ToString() ?? @@ -1897,7 +1961,7 @@ ApplyPatchCall as object /// public bool Validate() { - return IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && IsWebSearchCall; + return IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && IsReasoning && !IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && IsShellCall && !IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && IsShellCallOutput && !IsWebSearchCall || !IsApplyPatchCall && !IsCodeInterpreterCall && !IsComputerCall && !IsCustomToolCall && !IsFileSearchCall && !IsFunctionCall && !IsImageGenerationCall && !IsMessage && !IsOpenrouterAdvisor && !IsOpenrouterApplyPatch && !IsOpenrouterBash && !IsOpenrouterBrowserUse && !IsOpenrouterCodeInterpreter && !IsOpenrouterDatetime && !IsOpenrouterExperimentalSearchModels && !IsOpenrouterFileSearch && !IsOpenrouterFiles && !IsOpenrouterFusion && !IsOpenrouterImageGeneration && !IsOpenrouterMcp && !IsOpenrouterMemory && !IsOpenrouterSubagent && !IsOpenrouterTextEditor && !IsOpenrouterToolSearch && !IsOpenrouterWebFetch && !IsOpenrouterWebSearch && !IsReasoning && !IsShellCall && !IsShellCallOutput && IsWebSearchCall; } /// @@ -1920,19 +1984,20 @@ public bool Validate() global::System.Func? openrouterDatetime = null, global::System.Func? openrouterExperimentalSearchModels = null, global::System.Func? openrouterFileSearch = null, - global::System.Func? openrouterFusion = null, - global::System.Func? openrouterImageGeneration = null, - global::System.Func? openrouterMcp = null, - global::System.Func? openrouterMemory = null, - global::System.Func? openrouterSubagent = null, - global::System.Func? openrouterTextEditor = null, - global::System.Func? openrouterToolSearch = null, - global::System.Func? openrouterWebFetch = null, - global::System.Func? openrouterWebSearch = null, - global::System.Func? reasoning = null, - global::System.Func? shellCall = null, - global::System.Func? shellCallOutput = null, - global::System.Func? webSearchCall = null, + global::System.Func? openrouterFiles = null, + global::System.Func? openrouterFusion = null, + global::System.Func? openrouterImageGeneration = null, + global::System.Func? openrouterMcp = null, + global::System.Func? openrouterMemory = null, + global::System.Func? openrouterSubagent = null, + global::System.Func? openrouterTextEditor = null, + global::System.Func? openrouterToolSearch = null, + global::System.Func? openrouterWebFetch = null, + global::System.Func? openrouterWebSearch = null, + global::System.Func? reasoning = null, + global::System.Func? shellCall = null, + global::System.Func? shellCallOutput = null, + global::System.Func? webSearchCall = null, bool validate = true) { if (validate) @@ -2004,6 +2069,10 @@ public bool Validate() { return openrouterFileSearch(OpenrouterFileSearch!); } + else if (IsOpenrouterFiles && openrouterFiles != null) + { + return openrouterFiles(OpenrouterFiles!); + } else if (IsOpenrouterFusion && openrouterFusion != null) { return openrouterFusion(OpenrouterFusion!); @@ -2096,31 +2165,33 @@ public void Match( global::System.Action? openrouterFileSearch = null, - global::System.Action? openrouterFusion = null, + global::System.Action? openrouterFiles = null, - global::System.Action? openrouterImageGeneration = null, + global::System.Action? openrouterFusion = null, - global::System.Action? openrouterMcp = null, + global::System.Action? openrouterImageGeneration = null, - global::System.Action? openrouterMemory = null, + global::System.Action? openrouterMcp = null, - global::System.Action? openrouterSubagent = null, + global::System.Action? openrouterMemory = null, - global::System.Action? openrouterTextEditor = null, + global::System.Action? openrouterSubagent = null, - global::System.Action? openrouterToolSearch = null, + global::System.Action? openrouterTextEditor = null, - global::System.Action? openrouterWebFetch = null, + global::System.Action? openrouterToolSearch = null, - global::System.Action? openrouterWebSearch = null, + global::System.Action? openrouterWebFetch = null, - global::System.Action? reasoning = null, + global::System.Action? openrouterWebSearch = null, - global::System.Action? shellCall = null, + global::System.Action? reasoning = null, - global::System.Action? shellCallOutput = null, + global::System.Action? shellCall = null, - global::System.Action? webSearchCall = null, + global::System.Action? shellCallOutput = null, + + global::System.Action? webSearchCall = null, bool validate = true) { if (validate) @@ -2192,6 +2263,10 @@ public void Match( { openrouterFileSearch?.Invoke(OpenrouterFileSearch!); } + else if (IsOpenrouterFiles) + { + openrouterFiles?.Invoke(OpenrouterFiles!); + } else if (IsOpenrouterFusion) { openrouterFusion?.Invoke(OpenrouterFusion!); @@ -2266,19 +2341,20 @@ public void Switch( global::System.Action? openrouterDatetime = null, global::System.Action? openrouterExperimentalSearchModels = null, global::System.Action? openrouterFileSearch = null, - global::System.Action? openrouterFusion = null, - global::System.Action? openrouterImageGeneration = null, - global::System.Action? openrouterMcp = null, - global::System.Action? openrouterMemory = null, - global::System.Action? openrouterSubagent = null, - global::System.Action? openrouterTextEditor = null, - global::System.Action? openrouterToolSearch = null, - global::System.Action? openrouterWebFetch = null, - global::System.Action? openrouterWebSearch = null, - global::System.Action? reasoning = null, - global::System.Action? shellCall = null, - global::System.Action? shellCallOutput = null, - global::System.Action? webSearchCall = null, + global::System.Action? openrouterFiles = null, + global::System.Action? openrouterFusion = null, + global::System.Action? openrouterImageGeneration = null, + global::System.Action? openrouterMcp = null, + global::System.Action? openrouterMemory = null, + global::System.Action? openrouterSubagent = null, + global::System.Action? openrouterTextEditor = null, + global::System.Action? openrouterToolSearch = null, + global::System.Action? openrouterWebFetch = null, + global::System.Action? openrouterWebSearch = null, + global::System.Action? reasoning = null, + global::System.Action? shellCall = null, + global::System.Action? shellCallOutput = null, + global::System.Action? webSearchCall = null, bool validate = true) { if (validate) @@ -2350,6 +2426,10 @@ public void Switch( { openrouterFileSearch?.Invoke(OpenrouterFileSearch!); } + else if (IsOpenrouterFiles) + { + openrouterFiles?.Invoke(OpenrouterFiles!); + } else if (IsOpenrouterFusion) { openrouterFusion?.Invoke(OpenrouterFusion!); @@ -2443,32 +2523,34 @@ public override int GetHashCode() typeof(global::OpenRouter.OutputItemsVariant15), OpenrouterFileSearch, typeof(global::OpenRouter.OutputItemsVariant16), - OpenrouterFusion, + OpenrouterFiles, typeof(global::OpenRouter.OutputItemsVariant17), - OpenrouterImageGeneration, + OpenrouterFusion, typeof(global::OpenRouter.OutputItemsVariant18), - OpenrouterMcp, + OpenrouterImageGeneration, typeof(global::OpenRouter.OutputItemsVariant19), - OpenrouterMemory, + OpenrouterMcp, typeof(global::OpenRouter.OutputItemsVariant20), - OpenrouterSubagent, + OpenrouterMemory, typeof(global::OpenRouter.OutputItemsVariant21), - OpenrouterTextEditor, + OpenrouterSubagent, typeof(global::OpenRouter.OutputItemsVariant22), - OpenrouterToolSearch, + OpenrouterTextEditor, typeof(global::OpenRouter.OutputItemsVariant23), - OpenrouterWebFetch, + OpenrouterToolSearch, typeof(global::OpenRouter.OutputItemsVariant24), - OpenrouterWebSearch, + OpenrouterWebFetch, typeof(global::OpenRouter.OutputItemsVariant25), - Reasoning, + OpenrouterWebSearch, typeof(global::OpenRouter.OutputItemsVariant26), - ShellCall, + Reasoning, typeof(global::OpenRouter.OutputItemsVariant27), - ShellCallOutput, + ShellCall, typeof(global::OpenRouter.OutputItemsVariant28), - WebSearchCall, + ShellCallOutput, typeof(global::OpenRouter.OutputItemsVariant29), + WebSearchCall, + typeof(global::OpenRouter.OutputItemsVariant30), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -2501,19 +2583,20 @@ public bool Equals(OutputItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterDatetime, other.OpenrouterDatetime) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterExperimentalSearchModels, other.OpenrouterExperimentalSearchModels) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFileSearch, other.OpenrouterFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFusion, other.OpenrouterFusion) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterImageGeneration, other.OpenrouterImageGeneration) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMcp, other.OpenrouterMcp) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMemory, other.OpenrouterMemory) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterSubagent, other.OpenrouterSubagent) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterTextEditor, other.OpenrouterTextEditor) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterToolSearch, other.OpenrouterToolSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebFetch, other.OpenrouterWebFetch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebSearch, other.OpenrouterWebSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Reasoning, other.Reasoning) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCall, other.ShellCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCallOutput, other.ShellCallOutput) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchCall, other.WebSearchCall) + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFiles, other.OpenrouterFiles) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterFusion, other.OpenrouterFusion) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterImageGeneration, other.OpenrouterImageGeneration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMcp, other.OpenrouterMcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterMemory, other.OpenrouterMemory) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterSubagent, other.OpenrouterSubagent) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterTextEditor, other.OpenrouterTextEditor) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterToolSearch, other.OpenrouterToolSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebFetch, other.OpenrouterWebFetch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenrouterWebSearch, other.OpenrouterWebSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Reasoning, other.Reasoning) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCall, other.ShellCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellCallOutput, other.ShellCallOutput) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchCall, other.WebSearchCall) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs index 881faa24..49375ddd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsDiscriminatorType.g.cs @@ -75,6 +75,10 @@ public enum OutputItemsDiscriminatorType /// /// /// + Openrouter_files, + /// + /// + /// Openrouter_fusion, /// /// @@ -154,6 +158,7 @@ public static string ToValueString(this OutputItemsDiscriminatorType value) OutputItemsDiscriminatorType.Openrouter_datetime => "openrouter:datetime", OutputItemsDiscriminatorType.Openrouter_experimentalSearchModels => "openrouter:experimental__search_models", OutputItemsDiscriminatorType.Openrouter_fileSearch => "openrouter:file_search", + OutputItemsDiscriminatorType.Openrouter_files => "openrouter:files", OutputItemsDiscriminatorType.Openrouter_fusion => "openrouter:fusion", OutputItemsDiscriminatorType.Openrouter_imageGeneration => "openrouter:image_generation", OutputItemsDiscriminatorType.Openrouter_mcp => "openrouter:mcp", @@ -193,6 +198,7 @@ public static string ToValueString(this OutputItemsDiscriminatorType value) "openrouter:datetime" => OutputItemsDiscriminatorType.Openrouter_datetime, "openrouter:experimental__search_models" => OutputItemsDiscriminatorType.Openrouter_experimentalSearchModels, "openrouter:file_search" => OutputItemsDiscriminatorType.Openrouter_fileSearch, + "openrouter:files" => OutputItemsDiscriminatorType.Openrouter_files, "openrouter:fusion" => OutputItemsDiscriminatorType.Openrouter_fusion, "openrouter:image_generation" => OutputItemsDiscriminatorType.Openrouter_imageGeneration, "openrouter:mcp" => OutputItemsDiscriminatorType.Openrouter_mcp, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs index 84f5894b..e608ed6f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17.g.cs @@ -4,40 +4,34 @@ namespace OpenRouter { /// - /// An openrouter:fusion server tool output item + /// An openrouter:files server tool output item /// public sealed partial class OutputItemsVariant17 { /// - /// Discriminator value: openrouter:fusion + /// Discriminator value: openrouter:files /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant17TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant17Type Type { get; set; } /// - /// Structured analysis produced by the fusion judge model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("analysis")] - public global::OpenRouter.FusionAnalysisResult? Analysis { get; set; } - - /// - /// Error message when the fusion run did not produce an analysis result. + /// Error message when the file operation failed. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] public string? Error { get; set; } /// - /// Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. + /// The target file id supplied in the tool-call arguments. /// - [global::System.Text.Json.Serialization.JsonPropertyName("failed_models")] - public global::System.Collections.Generic.IList? FailedModels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] + public string? FileId { get; set; } /// - /// Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. + /// The target filename supplied in the tool-call arguments. /// - [global::System.Text.Json.Serialization.JsonPropertyName("failure_reason")] - public string? FailureReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } /// /// @@ -46,16 +40,16 @@ public sealed partial class OutputItemsVariant17 public string? Id { get; set; } /// - /// Analysis models that produced a response in this fusion run, with each model's full panel content. + /// The file operation performed (list, read, write, or edit). /// - [global::System.Text.Json.Serialization.JsonPropertyName("responses")] - public global::System.Collections.Generic.IList? Responses { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + public string? Operation { get; set; } /// - /// Web pages the analysis panels and judge retrieved via web search during this fusion run, deduplicated by URL across the whole run. Present when at least one model cited a source. + /// JSON-serialized result of the file operation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + public string? Result { get; set; } /// /// @@ -76,26 +70,23 @@ public sealed partial class OutputItemsVariant17 /// /// /// - /// Discriminator value: openrouter:fusion - /// - /// - /// Structured analysis produced by the fusion judge model. + /// Discriminator value: openrouter:files /// /// - /// Error message when the fusion run did not produce an analysis result. + /// Error message when the file operation failed. /// - /// - /// Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. + /// + /// The target file id supplied in the tool-call arguments. /// - /// - /// Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. + /// + /// The target filename supplied in the tool-call arguments. /// /// - /// - /// Analysis models that produced a response in this fusion run, with each model's full panel content. + /// + /// The file operation performed (list, read, write, or edit). /// - /// - /// Web pages the analysis panels and judge retrieved via web search during this fusion run, deduplicated by URL across the whole run. Present when at least one model cited a source. + /// + /// JSON-serialized result of the file operation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -103,22 +94,20 @@ public sealed partial class OutputItemsVariant17 public OutputItemsVariant17( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant17Type type, - global::OpenRouter.FusionAnalysisResult? analysis, string? error, - global::System.Collections.Generic.IList? failedModels, - string? failureReason, + string? fileId, + string? filename, string? id, - global::System.Collections.Generic.IList? responses, - global::System.Collections.Generic.IList? sources) + string? operation, + string? result) { this.Type = type; - this.Analysis = analysis; this.Error = error; - this.FailedModels = failedModels; - this.FailureReason = failureReason; + this.FileId = fileId; + this.Filename = filename; this.Id = id; - this.Responses = responses; - this.Sources = sources; + this.Operation = operation; + this.Result = result; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs index 8a290f6f..9ef52910 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant17Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:fusion + /// Discriminator value: openrouter:files /// public enum OutputItemsVariant17Type { /// - /// openrouter:fusion + /// openrouter:files /// - Openrouter_fusion, + Openrouter_files, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant17Type value) { return value switch { - OutputItemsVariant17Type.Openrouter_fusion => "openrouter:fusion", + OutputItemsVariant17Type.Openrouter_files => "openrouter:files", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant17Type value) { return value switch { - "openrouter:fusion" => OutputItemsVariant17Type.Openrouter_fusion, + "openrouter:files" => OutputItemsVariant17Type.Openrouter_files, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs index 19546d07..1b617506 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18.g.cs @@ -4,46 +4,58 @@ namespace OpenRouter { /// - /// An openrouter:image_generation server tool output item + /// An openrouter:fusion server tool output item /// public sealed partial class OutputItemsVariant18 { /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant18TypeJsonConverter))] public global::OpenRouter.OutputItemsVariant18Type Type { get; set; } /// - /// + /// Structured analysis produced by the fusion judge model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("analysis")] + public global::OpenRouter.FusionAnalysisResult? Analysis { get; set; } /// - /// + /// Error message when the fusion run did not produce an analysis result. /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageB64")] - public string? ImageB64 { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } /// - /// + /// Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] - public string? ImageUrl { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failed_models")] + public global::System.Collections.Generic.IList? FailedModels { get; set; } /// - /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - public string? Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failure_reason")] + public string? FailureReason { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("revisedPrompt")] - public string? RevisedPrompt { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Analysis models that produced a response in this fusion run, with each model's full panel content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("responses")] + public global::System.Collections.Generic.IList? Responses { get; set; } + + /// + /// Web pages the analysis panels and judge retrieved via web search during this fusion run, deduplicated by URL across the whole run. Present when at least one model cited a source. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } /// /// @@ -64,33 +76,49 @@ public sealed partial class OutputItemsVariant18 /// /// /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion + /// + /// + /// Structured analysis produced by the fusion judge model. + /// + /// + /// Error message when the fusion run did not produce an analysis result. + /// + /// + /// Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. + /// + /// + /// Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. /// /// - /// - /// - /// - /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + /// Analysis models that produced a response in this fusion run, with each model's full panel content. + /// + /// + /// Web pages the analysis panels and judge retrieved via web search during this fusion run, deduplicated by URL across the whole run. Present when at least one model cited a source. /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant18( global::OpenRouter.ToolCallStatus status, global::OpenRouter.OutputItemsVariant18Type type, + global::OpenRouter.FusionAnalysisResult? analysis, + string? error, + global::System.Collections.Generic.IList? failedModels, + string? failureReason, string? id, - string? imageB64, - string? imageUrl, - string? result, - string? revisedPrompt) + global::System.Collections.Generic.IList? responses, + global::System.Collections.Generic.IList? sources) { this.Type = type; + this.Analysis = analysis; + this.Error = error; + this.FailedModels = failedModels; + this.FailureReason = failureReason; this.Id = id; - this.ImageB64 = imageB64; - this.ImageUrl = imageUrl; - this.Result = result; - this.RevisedPrompt = revisedPrompt; + this.Responses = responses; + this.Sources = sources; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Type.g.cs index dc39e515..06f85deb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant18Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: openrouter:image_generation + /// Discriminator value: openrouter:fusion /// public enum OutputItemsVariant18Type { /// - /// openrouter:image_generation + /// openrouter:fusion /// - Openrouter_imageGeneration, + Openrouter_fusion, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this OutputItemsVariant18Type value) { return value switch { - OutputItemsVariant18Type.Openrouter_imageGeneration => "openrouter:image_generation", + OutputItemsVariant18Type.Openrouter_fusion => "openrouter:fusion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this OutputItemsVariant18Type value) { return value switch { - "openrouter:image_generation" => OutputItemsVariant18Type.Openrouter_imageGeneration, + "openrouter:fusion" => OutputItemsVariant18Type.Openrouter_fusion, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs index e90dcee7..4a8b2a85 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19.g.cs @@ -4,16 +4,16 @@ namespace OpenRouter { /// - /// An openrouter:mcp server tool output item + /// An openrouter:image_generation server tool output item /// public sealed partial class OutputItemsVariant19 { /// - /// + /// Discriminator value: openrouter:image_generation /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputMcpServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputItemsVariant19TypeJsonConverter))] + public global::OpenRouter.OutputItemsVariant19Type Type { get; set; } /// /// @@ -24,22 +24,34 @@ public sealed partial class OutputItemsVariant19 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("serverLabel")] - public string? ServerLabel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageB64")] + public string? ImageB64 { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ToolCallStatus Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] + public string? ImageUrl { get; set; } + + /// + /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + public string? Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("revisedPrompt")] + public string? RevisedPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -51,25 +63,35 @@ public sealed partial class OutputItemsVariant19 /// Initializes a new instance of the class. /// /// - /// + /// + /// Discriminator value: openrouter:image_generation + /// /// - /// - /// + /// + /// + /// + /// The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant19( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputMcpServerToolItemType type, + global::OpenRouter.OutputItemsVariant19Type type, string? id, - string? serverLabel, - string? toolName) + string? imageB64, + string? imageUrl, + string? result, + string? revisedPrompt) { this.Type = type; this.Id = id; - this.ServerLabel = serverLabel; + this.ImageB64 = imageB64; + this.ImageUrl = imageUrl; + this.Result = result; + this.RevisedPrompt = revisedPrompt; this.Status = status; - this.ToolName = toolName; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Type.g.cs new file mode 100644 index 00000000..10f37cbd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant19Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: openrouter:image_generation + /// + public enum OutputItemsVariant19Type + { + /// + /// openrouter:image_generation + /// + Openrouter_imageGeneration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputItemsVariant19TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputItemsVariant19Type value) + { + return value switch + { + OutputItemsVariant19Type.Openrouter_imageGeneration => "openrouter:image_generation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputItemsVariant19Type? ToEnum(string value) + { + return value switch + { + "openrouter:image_generation" => OutputItemsVariant19Type.Openrouter_imageGeneration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs index f13beab2..a09c5840 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:memory server tool output item + /// An openrouter:mcp server tool output item /// public sealed partial class OutputItemsVariant20 { @@ -12,15 +12,8 @@ public sealed partial class OutputItemsVariant20 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputMemoryServerToolItemType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter))] - public global::OpenRouter.OutputMemoryServerToolItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMcpServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputMcpServerToolItemType Type { get; set; } /// /// @@ -31,8 +24,8 @@ public sealed partial class OutputItemsVariant20 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public string? Key { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serverLabel")] + public string? ServerLabel { get; set; } /// /// @@ -45,8 +38,8 @@ public sealed partial class OutputItemsVariant20 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public object? Value { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] + public string? ToolName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,27 +52,24 @@ public sealed partial class OutputItemsVariant20 /// /// /// - /// /// - /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant20( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputMemoryServerToolItemType type, - global::OpenRouter.OutputMemoryServerToolItemAction? action, + global::OpenRouter.OutputMcpServerToolItemType type, string? id, - string? key, - object? value) + string? serverLabel, + string? toolName) { this.Type = type; - this.Action = action; this.Id = id; - this.Key = key; + this.ServerLabel = serverLabel; this.Status = status; - this.Value = value; + this.ToolName = toolName; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.Json.g.cs deleted file mode 100644 index c5596ff8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class OutputItemsVariant20Value - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.OutputItemsVariant20Value? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.OutputItemsVariant20Value), - jsonSerializerContext) as global::OpenRouter.OutputItemsVariant20Value; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.OutputItemsVariant20Value? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.OutputItemsVariant20Value? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.OutputItemsVariant20Value), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant20Value; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.g.cs deleted file mode 100644 index 4dfac961..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant20Value.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class OutputItemsVariant20Value - { - - /// - /// 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.OutputItemsVariant21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs index 2fc56a6a..20031889 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:subagent server tool output item + /// An openrouter:memory server tool output item /// public sealed partial class OutputItemsVariant21 { @@ -12,14 +12,15 @@ public sealed partial class OutputItemsVariant21 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputSubagentServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputSubagentServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputMemoryServerToolItemType Type { get; set; } /// - /// Error message when the subagent task did not produce an outcome. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMemoryServerToolItemActionJsonConverter))] + public global::OpenRouter.OutputMemoryServerToolItemAction? Action { get; set; } /// /// @@ -28,16 +29,10 @@ public sealed partial class OutputItemsVariant21 public string? Id { get; set; } /// - /// Slug of the worker model that executed the task. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// The worker model's result (the outcome text returned to the delegating model). + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] - public string? Outcome { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } /// /// @@ -48,16 +43,10 @@ public sealed partial class OutputItemsVariant21 public required global::OpenRouter.ToolCallStatus Status { get; set; } /// - /// The task description the delegating model sent to the worker. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("task_description")] - public string? TaskDescription { get; set; } - - /// - /// The short task identifier the delegating model supplied. + /// Any type /// - [global::System.Text.Json.Serialization.JsonPropertyName("task_name")] - public string? TaskName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -70,43 +59,29 @@ public sealed partial class OutputItemsVariant21 /// /// /// - /// - /// Error message when the subagent task did not produce an outcome. - /// + /// /// - /// - /// Slug of the worker model that executed the task. - /// - /// - /// The worker model's result (the outcome text returned to the delegating model). - /// - /// - /// The task description the delegating model sent to the worker. - /// - /// - /// The short task identifier the delegating model supplied. + /// + /// + /// Any type /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant21( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputSubagentServerToolItemType type, - string? error, + global::OpenRouter.OutputMemoryServerToolItemType type, + global::OpenRouter.OutputMemoryServerToolItemAction? action, string? id, - string? model, - string? outcome, - string? taskDescription, - string? taskName) + string? key, + object? value) { this.Type = type; - this.Error = error; + this.Action = action; this.Id = id; - this.Model = model; - this.Outcome = outcome; + this.Key = key; this.Status = status; - this.TaskDescription = taskDescription; - this.TaskName = taskName; + this.Value = value; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.Json.g.cs new file mode 100644 index 00000000..86cdf7b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant21Value + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OutputItemsVariant21Value? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant21Value), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant21Value; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OutputItemsVariant21Value? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OutputItemsVariant21Value? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OutputItemsVariant21Value), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant21Value; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.g.cs new file mode 100644 index 00000000..ea03e22a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant21Value.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class OutputItemsVariant21Value + { + + /// + /// 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.OutputItemsVariant22.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs index 80238f4b..4034aac5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant22.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:text_editor server tool output item + /// An openrouter:subagent server tool output item /// public sealed partial class OutputItemsVariant22 { @@ -12,27 +12,32 @@ public sealed partial class OutputItemsVariant22 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputTextEditorServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputSubagentServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputSubagentServerToolItemType Type { get; set; } /// - /// + /// Error message when the subagent task did not produce an outcome. /// - [global::System.Text.Json.Serialization.JsonPropertyName("command")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter))] - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Command { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// - /// + /// Slug of the worker model that executed the task. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// The worker model's result (the outcome text returned to the delegating model). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] + public string? Outcome { get; set; } /// /// @@ -42,6 +47,18 @@ public sealed partial class OutputItemsVariant22 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// The task description the delegating model sent to the worker. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task_description")] + public string? TaskDescription { get; set; } + + /// + /// The short task identifier the delegating model supplied. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string? TaskName { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,24 +70,43 @@ public sealed partial class OutputItemsVariant22 /// /// /// - /// - /// + /// + /// Error message when the subagent task did not produce an outcome. + /// /// + /// + /// Slug of the worker model that executed the task. + /// + /// + /// The worker model's result (the outcome text returned to the delegating model). + /// + /// + /// The task description the delegating model sent to the worker. + /// + /// + /// The short task identifier the delegating model supplied. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant22( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputTextEditorServerToolItemType type, - global::OpenRouter.OutputTextEditorServerToolItemCommand? command, - string? filePath, - string? id) + global::OpenRouter.OutputSubagentServerToolItemType type, + string? error, + string? id, + string? model, + string? outcome, + string? taskDescription, + string? taskName) { this.Type = type; - this.Command = command; - this.FilePath = filePath; + this.Error = error; this.Id = id; + this.Model = model; + this.Outcome = outcome; this.Status = status; + this.TaskDescription = taskDescription; + this.TaskName = taskName; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs index 1bc9d654..0cc7045e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant23.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:tool_search server tool output item + /// An openrouter:text_editor server tool output item /// public sealed partial class OutputItemsVariant23 { @@ -12,20 +12,27 @@ public sealed partial class OutputItemsVariant23 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputToolSearchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputTextEditorServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("command")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputTextEditorServerToolItemCommandJsonConverter))] + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Command { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] + public string? FilePath { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// @@ -46,20 +53,23 @@ public sealed partial class OutputItemsVariant23 /// /// /// + /// + /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant23( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputToolSearchServerToolItemType type, - string? id, - string? query) + global::OpenRouter.OutputTextEditorServerToolItemType type, + global::OpenRouter.OutputTextEditorServerToolItemCommand? command, + string? filePath, + string? id) { this.Type = type; + this.Command = command; + this.FilePath = filePath; this.Id = id; - this.Query = query; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs index 5fd3d2d0..0e71286d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant24.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:web_fetch server tool output item + /// An openrouter:tool_search server tool output item /// public sealed partial class OutputItemsVariant24 { @@ -12,32 +12,20 @@ public sealed partial class OutputItemsVariant24 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputWebFetchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputToolSearchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputToolSearchServerToolItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// The error message if the fetch failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - - /// - /// The HTTP status code returned by the upstream URL fetch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("httpStatus")] - public int? HttpStatus { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } /// /// @@ -47,18 +35,6 @@ public sealed partial class OutputItemsVariant24 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,37 +46,21 @@ public sealed partial class OutputItemsVariant24 /// /// /// - /// - /// - /// The error message if the fetch failed. - /// - /// - /// The HTTP status code returned by the upstream URL fetch. - /// /// - /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant24( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputWebFetchServerToolItemType type, - string? content, - string? error, - int? httpStatus, + global::OpenRouter.OutputToolSearchServerToolItemType type, string? id, - string? title, - string? url) + string? query) { this.Type = type; - this.Content = content; - this.Error = error; - this.HttpStatus = httpStatus; this.Id = id; + this.Query = query; this.Status = status; - this.Title = title; - this.Url = url; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs index bdd3b859..3c19aead 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant25.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An openrouter:web_search server tool output item + /// An openrouter:web_fetch server tool output item /// public sealed partial class OutputItemsVariant25 { @@ -12,14 +12,26 @@ public sealed partial class OutputItemsVariant25 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeJsonConverter))] - public global::OpenRouter.OutputWebSearchServerToolItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebFetchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputWebFetchServerToolItemType Type { get; set; } /// - /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + + /// + /// The error message if the fetch failed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public global::OpenRouter.OutputWebSearchServerToolItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } + + /// + /// The HTTP status code returned by the upstream URL fetch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("httpStatus")] + public int? HttpStatus { get; set; } /// /// @@ -35,6 +47,18 @@ public sealed partial class OutputItemsVariant25 [global::System.Text.Json.Serialization.JsonRequired] public required global::OpenRouter.ToolCallStatus Status { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,23 +70,37 @@ public sealed partial class OutputItemsVariant25 /// /// /// - /// - /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. + /// + /// + /// The error message if the fetch failed. + /// + /// + /// The HTTP status code returned by the upstream URL fetch. /// /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant25( global::OpenRouter.ToolCallStatus status, - global::OpenRouter.OutputWebSearchServerToolItemType type, - global::OpenRouter.OutputWebSearchServerToolItemAction? action, - string? id) + global::OpenRouter.OutputWebFetchServerToolItemType type, + string? content, + string? error, + int? httpStatus, + string? id, + string? title, + string? url) { this.Type = type; - this.Action = action; + this.Content = content; + this.Error = error; + this.HttpStatus = httpStatus; this.Id = id; this.Status = status; + this.Title = title; + this.Url = url; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant26.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant26.g.cs index d8dd49ed..bcc3184f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant26.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant26.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// An output item containing reasoning + /// An openrouter:web_search server tool output item /// public sealed partial class OutputItemsVariant26 { @@ -12,54 +12,28 @@ public sealed partial class OutputItemsVariant26 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter))] - public global::OpenRouter.OutputReasoningItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchServerToolItemTypeJsonConverter))] + public global::OpenRouter.OutputWebSearchServerToolItemType Type { get; set; } /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList? Content { get; set; } - - /// - /// + /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. /// - [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] - public string? EncryptedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public global::OpenRouter.OutputWebSearchServerToolItemAction? Action { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public string? Id { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatusJsonConverter))] - public global::OpenRouter.OutputReasoningItemStatus? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Summary { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter))] - public global::OpenRouter.ReasoningFormat? Format { get; set; } - - /// - /// A signature for the reasoning content, used for verification - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public string? Signature { get; set; } + public required global::OpenRouter.ToolCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -70,37 +44,25 @@ public sealed partial class OutputItemsVariant26 /// /// Initializes a new instance of the class. /// - /// - /// - /// - /// - /// /// - /// - /// - /// A signature for the reasoning content, used for verification + /// + /// + /// The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant26( - string id, - global::System.Collections.Generic.IList summary, - global::OpenRouter.OutputReasoningItemType type, - global::System.Collections.Generic.IList? content, - string? encryptedContent, - global::OpenRouter.OutputReasoningItemStatus? status, - global::OpenRouter.ReasoningFormat? format, - string? signature) + global::OpenRouter.ToolCallStatus status, + global::OpenRouter.OutputWebSearchServerToolItemType type, + global::OpenRouter.OutputWebSearchServerToolItemAction? action, + string? id) { this.Type = type; - this.Content = content; - this.EncryptedContent = encryptedContent; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Action = action; + this.Id = id; this.Status = status; - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); - this.Format = format; - this.Signature = signature; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant27.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant27.g.cs index 0fd5d775..9d889c96 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant27.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant27.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// A native `shell_call` output item matching OpenAI's Responses API shape. Emitted for the sandbox-backed `shell` tool. + /// An output item containing reasoning /// public sealed partial class OutputItemsVariant27 { @@ -12,21 +12,20 @@ public sealed partial class OutputItemsVariant27 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputShellCallItemTypeJsonConverter))] - public global::OpenRouter.OutputShellCallItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemTypeJsonConverter))] + public global::OpenRouter.OutputReasoningItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public global::OpenRouter.OutputShellCallItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::System.Collections.Generic.IList? Content { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CallId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("encrypted_content")] + public string? EncryptedContent { get; set; } /// /// @@ -36,12 +35,31 @@ public sealed partial class OutputItemsVariant27 public required string Id { get; set; } /// - /// Status of a shell call or its output. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ShellCallStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputReasoningItemStatusJsonConverter))] + public global::OpenRouter.OutputReasoningItemStatus? Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ShellCallStatus Status { get; set; } + public required global::System.Collections.Generic.IList Summary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter))] + public global::OpenRouter.ReasoningFormat? Format { get; set; } + + /// + /// A signature for the reasoning content, used for verification + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public string? Signature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,28 +70,37 @@ public sealed partial class OutputItemsVariant27 /// /// Initializes a new instance of the class. /// - /// /// - /// - /// Status of a shell call or its output. - /// + /// /// - /// + /// + /// + /// + /// + /// + /// A signature for the reasoning content, used for verification + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant27( - string callId, string id, - global::OpenRouter.ShellCallStatus status, - global::OpenRouter.OutputShellCallItemType type, - global::OpenRouter.OutputShellCallItemAction? action) + global::System.Collections.Generic.IList summary, + global::OpenRouter.OutputReasoningItemType type, + global::System.Collections.Generic.IList? content, + string? encryptedContent, + global::OpenRouter.OutputReasoningItemStatus? status, + global::OpenRouter.ReasoningFormat? format, + string? signature) { this.Type = type; - this.Action = action; - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Content = content; + this.EncryptedContent = encryptedContent; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Status = status; + this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); + this.Format = format; + this.Signature = signature; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant28.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant28.g.cs index 50715c46..8e6ab8a9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant28.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant28.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// A native `shell_call_output` item matching OpenAI's Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome. + /// A native `shell_call` output item matching OpenAI's Responses API shape. Emitted for the sandbox-backed `shell` tool. /// public sealed partial class OutputItemsVariant28 { @@ -12,35 +12,28 @@ public sealed partial class OutputItemsVariant28 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputShellCallOutputItemTypeJsonConverter))] - public global::OpenRouter.OutputShellCallOutputItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputShellCallItemTypeJsonConverter))] + public global::OpenRouter.OutputShellCallItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CallId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + public global::OpenRouter.OutputShellCallItemAction? Action { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_output_length")] - public int? MaxOutputLength { get; set; } + public required string CallId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Output { get; set; } + public required string Id { get; set; } /// /// Status of a shell call or its output. @@ -61,28 +54,25 @@ public sealed partial class OutputItemsVariant28 /// /// /// - /// /// /// Status of a shell call or its output. /// /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant28( string callId, string id, - global::System.Collections.Generic.IList output, global::OpenRouter.ShellCallStatus status, - global::OpenRouter.OutputShellCallOutputItemType type, - int? maxOutputLength) + global::OpenRouter.OutputShellCallItemType type, + global::OpenRouter.OutputShellCallItemAction? action) { this.Type = type; + this.Action = action; this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.MaxOutputLength = maxOutputLength; - this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant29.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant29.g.cs index c79ff78e..f1fc930f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant29.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant29.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web_search_call variant + /// A native `shell_call_output` item matching OpenAI's Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome. /// public sealed partial class OutputItemsVariant29 { @@ -12,15 +12,15 @@ public sealed partial class OutputItemsVariant29 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeJsonConverter))] - public global::OpenRouter.OutputWebSearchCallItemType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputShellCallOutputItemTypeJsonConverter))] + public global::OpenRouter.OutputShellCallOutputItemType Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter))] - public global::OpenRouter.OutputWebSearchCallItemAction? Action { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CallId { get; set; } /// /// @@ -32,10 +32,23 @@ public sealed partial class OutputItemsVariant29 /// /// /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_output_length")] + public int? MaxOutputLength { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Output { get; set; } + + /// + /// Status of a shell call or its output. + /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ShellCallStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.WebSearchStatus Status { get; set; } + public required global::OpenRouter.ShellCallStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,22 +59,30 @@ public sealed partial class OutputItemsVariant29 /// /// Initializes a new instance of the class. /// + /// /// - /// + /// + /// + /// Status of a shell call or its output. + /// /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemsVariant29( + string callId, string id, - global::OpenRouter.WebSearchStatus status, - global::OpenRouter.OutputWebSearchCallItemType type, - global::OpenRouter.OutputWebSearchCallItemAction? action) + global::System.Collections.Generic.IList output, + global::OpenRouter.ShellCallStatus status, + global::OpenRouter.OutputShellCallOutputItemType type, + int? maxOutputLength) { this.Type = type; - this.Action = action; + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.MaxOutputLength = maxOutputLength; + this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs index 4952d046..8815f8be 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant3.g.cs @@ -16,7 +16,7 @@ public sealed partial class OutputItemsVariant3 public global::OpenRouter.OutputItemsVariant3Type Type { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] public object? Action { get; set; } @@ -64,7 +64,9 @@ public sealed partial class OutputItemsVariant3 /// /// Discriminator value: computer_call /// - /// + /// + /// Any type + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.Json.g.cs new file mode 100644 index 00000000..6362eab3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OutputItemsVariant30 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OutputItemsVariant30? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OutputItemsVariant30), + jsonSerializerContext) as global::OpenRouter.OutputItemsVariant30; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OutputItemsVariant30? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.OutputItemsVariant30? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.OutputItemsVariant30), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputItemsVariant30; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.g.cs new file mode 100644 index 00000000..e1f3bc1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant30.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web_search_call variant + /// + public sealed partial class OutputItemsVariant30 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemTypeJsonConverter))] + public global::OpenRouter.OutputWebSearchCallItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputWebSearchCallItemActionJsonConverter))] + public global::OpenRouter.OutputWebSearchCallItemAction? Action { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.WebSearchStatus Status { 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 OutputItemsVariant30( + string id, + global::OpenRouter.WebSearchStatus status, + global::OpenRouter.OutputWebSearchCallItemType type, + global::OpenRouter.OutputWebSearchCallItemAction? action) + { + this.Type = type; + this.Action = action; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public OutputItemsVariant30() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs index 0278b1e4..4eb2382e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputItemsVariant8.g.cs @@ -33,8 +33,8 @@ public sealed partial class OutputItemsVariant8 /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessageItemPhaseJsonConverter))] - public global::OpenRouter.OutputMessageItemPhase? Phase { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Phase { get; set; } /// /// @@ -74,7 +74,7 @@ public OutputItemsVariant8( global::System.Collections.Generic.IList content, string id, global::OpenRouter.OutputMessageItemType type, - global::OpenRouter.OutputMessageItemPhase? phase, + global::OpenRouter.OneOf? phase, global::OpenRouter.OutputMessageItemRole role, global::OpenRouter.OutputMessageItemStatus? status) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItem.g.cs index 1f4004c3..bf87b73b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMemoryServerToolItem.g.cs @@ -43,7 +43,7 @@ public sealed partial class OutputMemoryServerToolItem public global::OpenRouter.OutputMemoryServerToolItemType Type { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] public object? Value { get; set; } @@ -62,7 +62,9 @@ public sealed partial class OutputMemoryServerToolItem /// /// /// - /// + /// + /// Any type + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessage.g.cs index 180ad924..b00c5f35 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessage.g.cs @@ -26,8 +26,8 @@ public sealed partial class OutputMessage /// The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OutputMessagePhaseJsonConverter))] - public global::OpenRouter.OutputMessagePhase? Phase { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Phase { get; set; } /// /// @@ -73,7 +73,7 @@ public sealed partial class OutputMessage public OutputMessage( global::System.Collections.Generic.IList content, string id, - global::OpenRouter.OutputMessagePhase? phase, + global::OpenRouter.OneOf? phase, global::OpenRouter.OutputMessageRole role, global::OpenRouter.OutputMessageStatus? status, global::OpenRouter.OutputMessageType type) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhase.g.cs index 345d2746..10637605 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhase.g.cs @@ -82,43 +82,6 @@ public bool TryPickOutputMessageItemPhase1( public global::OpenRouter.OutputMessageItemPhase1 PickOutputMessageItemPhase1() => IsOutputMessageItemPhase1 ? OutputMessageItemPhase1!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputMessageItemPhase1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? OutputMessageItemPhaseVariant3 { get; init; } -#else - public object? OutputMessageItemPhaseVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OutputMessageItemPhaseVariant3))] -#endif - public bool IsOutputMessageItemPhaseVariant3 => OutputMessageItemPhaseVariant3 != null; - - /// - /// - /// - public bool TryPickOutputMessageItemPhaseVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = OutputMessageItemPhaseVariant3; - return IsOutputMessageItemPhaseVariant3; - } - - /// - /// - /// - public object PickOutputMessageItemPhaseVariant3() => IsOutputMessageItemPhaseVariant3 - ? OutputMessageItemPhaseVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'OutputMessageItemPhaseVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public OutputMessageItemPhase(global::OpenRouter.OutputMessageItemPhase1? value) /// public OutputMessageItemPhase( global::OpenRouter.OutputMessageItemPhase0? outputMessageItemPhase0, - global::OpenRouter.OutputMessageItemPhase1? outputMessageItemPhase1, - object? outputMessageItemPhaseVariant3 + global::OpenRouter.OutputMessageItemPhase1? outputMessageItemPhase1 ) { OutputMessageItemPhase0 = outputMessageItemPhase0; OutputMessageItemPhase1 = outputMessageItemPhase1; - OutputMessageItemPhaseVariant3 = outputMessageItemPhaseVariant3; } /// /// /// public object? Object => - OutputMessageItemPhaseVariant3 as object ?? OutputMessageItemPhase1 as object ?? OutputMessageItemPhase0 as object ; @@ -193,8 +153,7 @@ OutputMessageItemPhase0 as object /// public override string? ToString() => OutputMessageItemPhase0?.ToValueString() ?? - OutputMessageItemPhase1?.ToValueString() ?? - OutputMessageItemPhaseVariant3?.ToString() + OutputMessageItemPhase1?.ToValueString() ; /// @@ -202,7 +161,7 @@ OutputMessageItemPhase0 as object /// public bool Validate() { - return IsOutputMessageItemPhase0 && !IsOutputMessageItemPhase1 && !IsOutputMessageItemPhaseVariant3 || !IsOutputMessageItemPhase0 && IsOutputMessageItemPhase1 && !IsOutputMessageItemPhaseVariant3 || !IsOutputMessageItemPhase0 && !IsOutputMessageItemPhase1 && IsOutputMessageItemPhaseVariant3; + return IsOutputMessageItemPhase0 && !IsOutputMessageItemPhase1 || !IsOutputMessageItemPhase0 && IsOutputMessageItemPhase1; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? outputMessageItemPhase0 = null, global::System.Func? outputMessageItemPhase1 = null, - global::System.Func? outputMessageItemPhaseVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return outputMessageItemPhase1(OutputMessageItemPhase1!); } - else if (IsOutputMessageItemPhaseVariant3 && outputMessageItemPhaseVariant3 != null) - { - return outputMessageItemPhaseVariant3(OutputMessageItemPhaseVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? outputMessageItemPhase0 = null, global::System.Action? outputMessageItemPhase1 = null, - - global::System.Action? outputMessageItemPhaseVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { outputMessageItemPhase1?.Invoke(OutputMessageItemPhase1!); } - else if (IsOutputMessageItemPhaseVariant3) - { - outputMessageItemPhaseVariant3?.Invoke(OutputMessageItemPhaseVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? outputMessageItemPhase0 = null, global::System.Action? outputMessageItemPhase1 = null, - global::System.Action? outputMessageItemPhaseVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { outputMessageItemPhase1?.Invoke(OutputMessageItemPhase1!); } - else if (IsOutputMessageItemPhaseVariant3) - { - outputMessageItemPhaseVariant3?.Invoke(OutputMessageItemPhaseVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.OutputMessageItemPhase0), OutputMessageItemPhase1, typeof(global::OpenRouter.OutputMessageItemPhase1), - OutputMessageItemPhaseVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(OutputMessageItemPhase other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessageItemPhase0, other.OutputMessageItemPhase0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessageItemPhase1, other.OutputMessageItemPhase1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessageItemPhaseVariant3, other.OutputMessageItemPhaseVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessageItemPhase1, other.OutputMessageItemPhase1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.Json.g.cs deleted file mode 100644 index e958f83c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class OutputMessageItemPhaseVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.OutputMessageItemPhaseVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.OutputMessageItemPhaseVariant3), - jsonSerializerContext) as global::OpenRouter.OutputMessageItemPhaseVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.OutputMessageItemPhaseVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.OutputMessageItemPhaseVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.OutputMessageItemPhaseVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputMessageItemPhaseVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.g.cs deleted file mode 100644 index 85cfb825..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessageItemPhaseVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class OutputMessageItemPhaseVariant3 - { - - /// - /// 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.OutputMessagePhase.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhase.g.cs index 1203220e..6b3c8184 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhase.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhase.g.cs @@ -82,43 +82,6 @@ public bool TryPickOutputMessagePhase1( public global::OpenRouter.OutputMessagePhase1 PickOutputMessagePhase1() => IsOutputMessagePhase1 ? OutputMessagePhase1!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputMessagePhase1' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? OutputMessagePhaseVariant3 { get; init; } -#else - public object? OutputMessagePhaseVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OutputMessagePhaseVariant3))] -#endif - public bool IsOutputMessagePhaseVariant3 => OutputMessagePhaseVariant3 != null; - - /// - /// - /// - public bool TryPickOutputMessagePhaseVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = OutputMessagePhaseVariant3; - return IsOutputMessagePhaseVariant3; - } - - /// - /// - /// - public object PickOutputMessagePhaseVariant3() => IsOutputMessagePhaseVariant3 - ? OutputMessagePhaseVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'OutputMessagePhaseVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public OutputMessagePhase(global::OpenRouter.OutputMessagePhase1? value) /// public OutputMessagePhase( global::OpenRouter.OutputMessagePhase0? outputMessagePhase0, - global::OpenRouter.OutputMessagePhase1? outputMessagePhase1, - object? outputMessagePhaseVariant3 + global::OpenRouter.OutputMessagePhase1? outputMessagePhase1 ) { OutputMessagePhase0 = outputMessagePhase0; OutputMessagePhase1 = outputMessagePhase1; - OutputMessagePhaseVariant3 = outputMessagePhaseVariant3; } /// /// /// public object? Object => - OutputMessagePhaseVariant3 as object ?? OutputMessagePhase1 as object ?? OutputMessagePhase0 as object ; @@ -193,8 +153,7 @@ OutputMessagePhase0 as object /// public override string? ToString() => OutputMessagePhase0?.ToValueString() ?? - OutputMessagePhase1?.ToValueString() ?? - OutputMessagePhaseVariant3?.ToString() + OutputMessagePhase1?.ToValueString() ; /// @@ -202,7 +161,7 @@ OutputMessagePhase0 as object /// public bool Validate() { - return IsOutputMessagePhase0 && !IsOutputMessagePhase1 && !IsOutputMessagePhaseVariant3 || !IsOutputMessagePhase0 && IsOutputMessagePhase1 && !IsOutputMessagePhaseVariant3 || !IsOutputMessagePhase0 && !IsOutputMessagePhase1 && IsOutputMessagePhaseVariant3; + return IsOutputMessagePhase0 && !IsOutputMessagePhase1 || !IsOutputMessagePhase0 && IsOutputMessagePhase1; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? outputMessagePhase0 = null, global::System.Func? outputMessagePhase1 = null, - global::System.Func? outputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return outputMessagePhase1(OutputMessagePhase1!); } - else if (IsOutputMessagePhaseVariant3 && outputMessagePhaseVariant3 != null) - { - return outputMessagePhaseVariant3(OutputMessagePhaseVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? outputMessagePhase0 = null, global::System.Action? outputMessagePhase1 = null, - - global::System.Action? outputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { outputMessagePhase1?.Invoke(OutputMessagePhase1!); } - else if (IsOutputMessagePhaseVariant3) - { - outputMessagePhaseVariant3?.Invoke(OutputMessagePhaseVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? outputMessagePhase0 = null, global::System.Action? outputMessagePhase1 = null, - global::System.Action? outputMessagePhaseVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { outputMessagePhase1?.Invoke(OutputMessagePhase1!); } - else if (IsOutputMessagePhaseVariant3) - { - outputMessagePhaseVariant3?.Invoke(OutputMessagePhaseVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.OutputMessagePhase0), OutputMessagePhase1, typeof(global::OpenRouter.OutputMessagePhase1), - OutputMessagePhaseVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(OutputMessagePhase other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessagePhase0, other.OutputMessagePhase0) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessagePhase1, other.OutputMessagePhase1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessagePhaseVariant3, other.OutputMessagePhaseVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(OutputMessagePhase1, other.OutputMessagePhase1) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.Json.g.cs deleted file mode 100644 index c45b3c3f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class OutputMessagePhaseVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.OutputMessagePhaseVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.OutputMessagePhaseVariant3), - jsonSerializerContext) as global::OpenRouter.OutputMessagePhaseVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.OutputMessagePhaseVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.OutputMessagePhaseVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.OutputMessagePhaseVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OutputMessagePhaseVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.g.cs deleted file mode 100644 index 1d1b8713..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputMessagePhaseVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class OutputMessagePhaseVariant3 - { - - /// - /// 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.Parameter.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Parameter.g.cs index 1bb20f26..721c3594 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.Parameter.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Parameter.g.cs @@ -43,6 +43,10 @@ public enum Parameter /// /// /// + Prediction, + /// + /// + /// PresencePenalty, /// /// @@ -130,6 +134,7 @@ public static string ToValueString(this Parameter value) Parameter.MaxTokens => "max_tokens", Parameter.MinP => "min_p", Parameter.ParallelToolCalls => "parallel_tool_calls", + Parameter.Prediction => "prediction", Parameter.PresencePenalty => "presence_penalty", Parameter.Reasoning => "reasoning", Parameter.ReasoningEffort => "reasoning_effort", @@ -165,6 +170,7 @@ public static string ToValueString(this Parameter value) "max_tokens" => Parameter.MaxTokens, "min_p" => Parameter.MinP, "parallel_tool_calls" => Parameter.ParallelToolCalls, + "prediction" => Parameter.Prediction, "presence_penalty" => Parameter.PresencePenalty, "reasoning" => Parameter.Reasoning, "reasoning_effort" => Parameter.ReasoningEffort, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.Json.g.cs new file mode 100644 index 00000000..1b811916 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Prediction + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Prediction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Prediction), + jsonSerializerContext) as global::OpenRouter.Prediction; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Prediction? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.Prediction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.Prediction), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Prediction; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.g.cs new file mode 100644 index 00000000..7fb6d3f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Prediction.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// + public sealed partial class Prediction + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PredictionContentJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.PredictionContent Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PredictionTypeJsonConverter))] + public global::OpenRouter.PredictionType 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 Prediction( + global::OpenRouter.PredictionContent content, + global::OpenRouter.PredictionType type) + { + this.Content = content; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public Prediction() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.Json.g.cs new file mode 100644 index 00000000..e12274b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct PredictionContent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PredictionContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PredictionContent), + jsonSerializerContext) as global::OpenRouter.PredictionContent?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PredictionContent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PredictionContent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PredictionContent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PredictionContent?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.g.cs new file mode 100644 index 00000000..83e26305 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContent.g.cs @@ -0,0 +1,272 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct PredictionContent : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? PredictionContentVariant1 { get; init; } +#else + public string? PredictionContentVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PredictionContentVariant1))] +#endif + public bool IsPredictionContentVariant1 => PredictionContentVariant1 != null; + + /// + /// + /// + public bool TryPickPredictionContentVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = PredictionContentVariant1; + return IsPredictionContentVariant1; + } + + /// + /// + /// + public string PickPredictionContentVariant1() => IsPredictionContentVariant1 + ? PredictionContentVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'PredictionContentVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? PredictionContent1 { get; init; } +#else + public global::System.Collections.Generic.IList? PredictionContent1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PredictionContent1))] +#endif + public bool IsPredictionContent1 => PredictionContent1 != null; + + /// + /// + /// + public bool TryPickPredictionContent1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::System.Collections.Generic.IList? value) + { + value = PredictionContent1; + return IsPredictionContent1; + } + + /// + /// + /// + public global::System.Collections.Generic.IList PickPredictionContent1() => IsPredictionContent1 + ? PredictionContent1! + : throw new global::System.InvalidOperationException($"Expected union variant 'PredictionContent1' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator PredictionContent(string value) => new PredictionContent((string?)value); + + /// + /// + /// + public static implicit operator string?(PredictionContent @this) => @this.PredictionContentVariant1; + + /// + /// + /// + public PredictionContent(string? value) + { + PredictionContentVariant1 = value; + } + + /// + /// + /// + public static PredictionContent FromPredictionContentVariant1(string? value) => new PredictionContent(value); + + /// + /// + /// + public PredictionContent( + string? predictionContentVariant1, + global::System.Collections.Generic.IList? predictionContent1 + ) + { + PredictionContentVariant1 = predictionContentVariant1; + PredictionContent1 = predictionContent1; + } + + /// + /// + /// + public object? Object => + PredictionContent1 as object ?? + PredictionContentVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + PredictionContentVariant1?.ToString() ?? + PredictionContent1?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPredictionContentVariant1 && !IsPredictionContent1 || !IsPredictionContentVariant1 && IsPredictionContent1; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? predictionContentVariant1 = null, + global::System.Func, TResult>? predictionContent1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPredictionContentVariant1 && predictionContentVariant1 != null) + { + return predictionContentVariant1(PredictionContentVariant1!); + } + else if (IsPredictionContent1 && predictionContent1 != null) + { + return predictionContent1(PredictionContent1!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? predictionContentVariant1 = null, + + global::System.Action>? predictionContent1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPredictionContentVariant1) + { + predictionContentVariant1?.Invoke(PredictionContentVariant1!); + } + else if (IsPredictionContent1) + { + predictionContent1?.Invoke(PredictionContent1!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? predictionContentVariant1 = null, + global::System.Action>? predictionContent1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPredictionContentVariant1) + { + predictionContentVariant1?.Invoke(PredictionContentVariant1!); + } + else if (IsPredictionContent1) + { + predictionContent1?.Invoke(PredictionContent1!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + PredictionContentVariant1, + typeof(string), + PredictionContent1, + typeof(global::System.Collections.Generic.IList), + }; + 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(PredictionContent other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(PredictionContentVariant1, other.PredictionContentVariant1) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(PredictionContent1, other.PredictionContent1) + ; + } + + /// + /// + /// + public static bool operator ==(PredictionContent obj1, PredictionContent obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(PredictionContent obj1, PredictionContent obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is PredictionContent o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.Json.g.cs new file mode 100644 index 00000000..77ad43c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class PredictionContentText + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PredictionContentText? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PredictionContentText), + jsonSerializerContext) as global::OpenRouter.PredictionContentText; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PredictionContentText? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PredictionContentText? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PredictionContentText), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PredictionContentText; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.g.cs new file mode 100644 index 00000000..aaa1f15a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentText.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Text content part for a predicted output. + /// + public sealed partial class PredictionContentText + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PredictionContentTextTypeJsonConverter))] + public global::OpenRouter.PredictionContentTextType 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 PredictionContentText( + string text, + global::OpenRouter.PredictionContentTextType type) + { + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public PredictionContentText() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentTextType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentTextType.g.cs new file mode 100644 index 00000000..e9590d50 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionContentTextType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum PredictionContentTextType + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PredictionContentTextTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PredictionContentTextType value) + { + return value switch + { + PredictionContentTextType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PredictionContentTextType? ToEnum(string value) + { + return value switch + { + "text" => PredictionContentTextType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionType.g.cs new file mode 100644 index 00000000..9786052c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PredictionType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum PredictionType + { + /// + /// + /// + Content, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PredictionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PredictionType value) + { + return value switch + { + PredictionType.Content => "content", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PredictionType? ToEnum(string value) + { + return value switch + { + "content" => PredictionType.Content, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatency.g.cs index 3d9cbdfe..ce9f314d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatency.g.cs @@ -82,43 +82,6 @@ public bool TryPickPercentileLatencyCutoffs( public global::OpenRouter.PercentileLatencyCutoffs PickPercentileLatencyCutoffs() => IsPercentileLatencyCutoffs ? PercentileLatencyCutoffs! : throw new global::System.InvalidOperationException($"Expected union variant 'PercentileLatencyCutoffs' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? PreferredMaxLatencyVariant3 { get; init; } -#else - public object? PreferredMaxLatencyVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PreferredMaxLatencyVariant3))] -#endif - public bool IsPreferredMaxLatencyVariant3 => PreferredMaxLatencyVariant3 != null; - - /// - /// - /// - public bool TryPickPreferredMaxLatencyVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = PreferredMaxLatencyVariant3; - return IsPreferredMaxLatencyVariant3; - } - - /// - /// - /// - public object PickPreferredMaxLatencyVariant3() => IsPreferredMaxLatencyVariant3 - ? PreferredMaxLatencyVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'PreferredMaxLatencyVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public PreferredMaxLatency(global::OpenRouter.PercentileLatencyCutoffs? value) /// public PreferredMaxLatency( double? preferredMaxLatencyVariant1, - global::OpenRouter.PercentileLatencyCutoffs? percentileLatencyCutoffs, - object? preferredMaxLatencyVariant3 + global::OpenRouter.PercentileLatencyCutoffs? percentileLatencyCutoffs ) { PreferredMaxLatencyVariant1 = preferredMaxLatencyVariant1; PercentileLatencyCutoffs = percentileLatencyCutoffs; - PreferredMaxLatencyVariant3 = preferredMaxLatencyVariant3; } /// /// /// public object? Object => - PreferredMaxLatencyVariant3 as object ?? PercentileLatencyCutoffs as object ?? PreferredMaxLatencyVariant1 as object ; @@ -193,8 +153,7 @@ PreferredMaxLatencyVariant1 as object /// public override string? ToString() => PreferredMaxLatencyVariant1?.ToString() ?? - PercentileLatencyCutoffs?.ToString() ?? - PreferredMaxLatencyVariant3?.ToString() + PercentileLatencyCutoffs?.ToString() ; /// @@ -202,7 +161,7 @@ PreferredMaxLatencyVariant1 as object /// public bool Validate() { - return IsPreferredMaxLatencyVariant1 && !IsPercentileLatencyCutoffs && !IsPreferredMaxLatencyVariant3 || !IsPreferredMaxLatencyVariant1 && IsPercentileLatencyCutoffs && !IsPreferredMaxLatencyVariant3 || !IsPreferredMaxLatencyVariant1 && !IsPercentileLatencyCutoffs && IsPreferredMaxLatencyVariant3; + return IsPreferredMaxLatencyVariant1 && !IsPercentileLatencyCutoffs || !IsPreferredMaxLatencyVariant1 && IsPercentileLatencyCutoffs; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? preferredMaxLatencyVariant1 = null, global::System.Func? percentileLatencyCutoffs = null, - global::System.Func? preferredMaxLatencyVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return percentileLatencyCutoffs(PercentileLatencyCutoffs!); } - else if (IsPreferredMaxLatencyVariant3 && preferredMaxLatencyVariant3 != null) - { - return preferredMaxLatencyVariant3(PreferredMaxLatencyVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? preferredMaxLatencyVariant1 = null, global::System.Action? percentileLatencyCutoffs = null, - - global::System.Action? preferredMaxLatencyVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { percentileLatencyCutoffs?.Invoke(PercentileLatencyCutoffs!); } - else if (IsPreferredMaxLatencyVariant3) - { - preferredMaxLatencyVariant3?.Invoke(PreferredMaxLatencyVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? preferredMaxLatencyVariant1 = null, global::System.Action? percentileLatencyCutoffs = null, - global::System.Action? preferredMaxLatencyVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { percentileLatencyCutoffs?.Invoke(PercentileLatencyCutoffs!); } - else if (IsPreferredMaxLatencyVariant3) - { - preferredMaxLatencyVariant3?.Invoke(PreferredMaxLatencyVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(double), PercentileLatencyCutoffs, typeof(global::OpenRouter.PercentileLatencyCutoffs), - PreferredMaxLatencyVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(PreferredMaxLatency other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(PreferredMaxLatencyVariant1, other.PreferredMaxLatencyVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PercentileLatencyCutoffs, other.PercentileLatencyCutoffs) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PreferredMaxLatencyVariant3, other.PreferredMaxLatencyVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(PercentileLatencyCutoffs, other.PercentileLatencyCutoffs) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.Json.g.cs deleted file mode 100644 index 961f082a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PreferredMaxLatencyVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PreferredMaxLatencyVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PreferredMaxLatencyVariant3), - jsonSerializerContext) as global::OpenRouter.PreferredMaxLatencyVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PreferredMaxLatencyVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.PreferredMaxLatencyVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.PreferredMaxLatencyVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PreferredMaxLatencyVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.g.cs deleted file mode 100644 index cbe9d94e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMaxLatencyVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class PreferredMaxLatencyVariant3 - { - - /// - /// 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.PreferredMinThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughput.g.cs index a11bd4fd..4a13b1a5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughput.g.cs @@ -82,43 +82,6 @@ public bool TryPickPercentileThroughputCutoffs( public global::OpenRouter.PercentileThroughputCutoffs PickPercentileThroughputCutoffs() => IsPercentileThroughputCutoffs ? PercentileThroughputCutoffs! : throw new global::System.InvalidOperationException($"Expected union variant 'PercentileThroughputCutoffs' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? PreferredMinThroughputVariant3 { get; init; } -#else - public object? PreferredMinThroughputVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PreferredMinThroughputVariant3))] -#endif - public bool IsPreferredMinThroughputVariant3 => PreferredMinThroughputVariant3 != null; - - /// - /// - /// - public bool TryPickPreferredMinThroughputVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = PreferredMinThroughputVariant3; - return IsPreferredMinThroughputVariant3; - } - - /// - /// - /// - public object PickPreferredMinThroughputVariant3() => IsPreferredMinThroughputVariant3 - ? PreferredMinThroughputVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'PreferredMinThroughputVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public PreferredMinThroughput(global::OpenRouter.PercentileThroughputCutoffs? va /// public PreferredMinThroughput( double? preferredMinThroughputVariant1, - global::OpenRouter.PercentileThroughputCutoffs? percentileThroughputCutoffs, - object? preferredMinThroughputVariant3 + global::OpenRouter.PercentileThroughputCutoffs? percentileThroughputCutoffs ) { PreferredMinThroughputVariant1 = preferredMinThroughputVariant1; PercentileThroughputCutoffs = percentileThroughputCutoffs; - PreferredMinThroughputVariant3 = preferredMinThroughputVariant3; } /// /// /// public object? Object => - PreferredMinThroughputVariant3 as object ?? PercentileThroughputCutoffs as object ?? PreferredMinThroughputVariant1 as object ; @@ -193,8 +153,7 @@ PreferredMinThroughputVariant1 as object /// public override string? ToString() => PreferredMinThroughputVariant1?.ToString() ?? - PercentileThroughputCutoffs?.ToString() ?? - PreferredMinThroughputVariant3?.ToString() + PercentileThroughputCutoffs?.ToString() ; /// @@ -202,7 +161,7 @@ PreferredMinThroughputVariant1 as object /// public bool Validate() { - return IsPreferredMinThroughputVariant1 && !IsPercentileThroughputCutoffs && !IsPreferredMinThroughputVariant3 || !IsPreferredMinThroughputVariant1 && IsPercentileThroughputCutoffs && !IsPreferredMinThroughputVariant3 || !IsPreferredMinThroughputVariant1 && !IsPercentileThroughputCutoffs && IsPreferredMinThroughputVariant3; + return IsPreferredMinThroughputVariant1 && !IsPercentileThroughputCutoffs || !IsPreferredMinThroughputVariant1 && IsPercentileThroughputCutoffs; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? preferredMinThroughputVariant1 = null, global::System.Func? percentileThroughputCutoffs = null, - global::System.Func? preferredMinThroughputVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return percentileThroughputCutoffs(PercentileThroughputCutoffs!); } - else if (IsPreferredMinThroughputVariant3 && preferredMinThroughputVariant3 != null) - { - return preferredMinThroughputVariant3(PreferredMinThroughputVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? preferredMinThroughputVariant1 = null, global::System.Action? percentileThroughputCutoffs = null, - - global::System.Action? preferredMinThroughputVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { percentileThroughputCutoffs?.Invoke(PercentileThroughputCutoffs!); } - else if (IsPreferredMinThroughputVariant3) - { - preferredMinThroughputVariant3?.Invoke(PreferredMinThroughputVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? preferredMinThroughputVariant1 = null, global::System.Action? percentileThroughputCutoffs = null, - global::System.Action? preferredMinThroughputVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { percentileThroughputCutoffs?.Invoke(PercentileThroughputCutoffs!); } - else if (IsPreferredMinThroughputVariant3) - { - preferredMinThroughputVariant3?.Invoke(PreferredMinThroughputVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(double), PercentileThroughputCutoffs, typeof(global::OpenRouter.PercentileThroughputCutoffs), - PreferredMinThroughputVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(PreferredMinThroughput other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(PreferredMinThroughputVariant1, other.PreferredMinThroughputVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PercentileThroughputCutoffs, other.PercentileThroughputCutoffs) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PreferredMinThroughputVariant3, other.PreferredMinThroughputVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(PercentileThroughputCutoffs, other.PercentileThroughputCutoffs) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.Json.g.cs deleted file mode 100644 index 49434076..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PreferredMinThroughputVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PreferredMinThroughputVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PreferredMinThroughputVariant3), - jsonSerializerContext) as global::OpenRouter.PreferredMinThroughputVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PreferredMinThroughputVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.PreferredMinThroughputVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.PreferredMinThroughputVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PreferredMinThroughputVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.g.cs deleted file mode 100644 index 4cb28960..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreferredMinThroughputVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class PreferredMinThroughputVariant3 - { - - /// - /// 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.Preview20250311WebSearchServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preview20250311WebSearchServerTool.g.cs index 039e12fd..062ccb91 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.Preview20250311WebSearchServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preview20250311WebSearchServerTool.g.cs @@ -45,7 +45,8 @@ public sealed partial class Preview20250311WebSearchServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] - public global::OpenRouter.PreviewWebSearchUserLocation? UserLocation { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter))] + public global::OpenRouter.PreviewWebSearchUserLocation2? UserLocation { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -77,7 +78,7 @@ public Preview20250311WebSearchServerTool( int? maxResults, global::OpenRouter.SearchContextSizeEnum? searchContextSize, global::OpenRouter.Preview20250311WebSearchServerToolType type, - global::OpenRouter.PreviewWebSearchUserLocation? userLocation) + global::OpenRouter.PreviewWebSearchUserLocation2? userLocation) { this.Engine = engine; this.Filters = filters; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchServerTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchServerTool.g.cs index 499ee65d..df7effcb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchServerTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchServerTool.g.cs @@ -45,7 +45,8 @@ public sealed partial class PreviewWebSearchServerTool /// /// [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] - public global::OpenRouter.PreviewWebSearchUserLocation? UserLocation { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PreviewWebSearchUserLocation2JsonConverter))] + public global::OpenRouter.PreviewWebSearchUserLocation2? UserLocation { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -77,7 +78,7 @@ public PreviewWebSearchServerTool( int? maxResults, global::OpenRouter.SearchContextSizeEnum? searchContextSize, global::OpenRouter.PreviewWebSearchServerToolType type, - global::OpenRouter.PreviewWebSearchUserLocation? userLocation) + global::OpenRouter.PreviewWebSearchUserLocation2? userLocation) { this.Engine = engine; this.Filters = filters; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.Json.g.cs new file mode 100644 index 00000000..2eb85765 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct PreviewWebSearchUserLocation2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PreviewWebSearchUserLocation2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PreviewWebSearchUserLocation2), + jsonSerializerContext) as global::OpenRouter.PreviewWebSearchUserLocation2?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PreviewWebSearchUserLocation2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PreviewWebSearchUserLocation2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PreviewWebSearchUserLocation2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PreviewWebSearchUserLocation2?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.g.cs new file mode 100644 index 00000000..64163538 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PreviewWebSearchUserLocation2.g.cs @@ -0,0 +1,272 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct PreviewWebSearchUserLocation2 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.PreviewWebSearchUserLocation? PreviewWebSearchUserLocation { get; init; } +#else + public global::OpenRouter.PreviewWebSearchUserLocation? PreviewWebSearchUserLocation { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PreviewWebSearchUserLocation))] +#endif + public bool IsPreviewWebSearchUserLocation => PreviewWebSearchUserLocation != null; + + /// + /// + /// + public bool TryPickPreviewWebSearchUserLocation( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.PreviewWebSearchUserLocation? value) + { + value = PreviewWebSearchUserLocation; + return IsPreviewWebSearchUserLocation; + } + + /// + /// + /// + public global::OpenRouter.PreviewWebSearchUserLocation PickPreviewWebSearchUserLocation() => IsPreviewWebSearchUserLocation + ? PreviewWebSearchUserLocation! + : throw new global::System.InvalidOperationException($"Expected union variant 'PreviewWebSearchUserLocation' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public object? LocationVariant2 { get; init; } +#else + public object? LocationVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LocationVariant2))] +#endif + public bool IsLocationVariant2 => LocationVariant2 != null; + + /// + /// + /// + public bool TryPickLocationVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out object? value) + { + value = LocationVariant2; + return IsLocationVariant2; + } + + /// + /// + /// + public object PickLocationVariant2() => IsLocationVariant2 + ? LocationVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'LocationVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator PreviewWebSearchUserLocation2(global::OpenRouter.PreviewWebSearchUserLocation value) => new PreviewWebSearchUserLocation2((global::OpenRouter.PreviewWebSearchUserLocation?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.PreviewWebSearchUserLocation?(PreviewWebSearchUserLocation2 @this) => @this.PreviewWebSearchUserLocation; + + /// + /// + /// + public PreviewWebSearchUserLocation2(global::OpenRouter.PreviewWebSearchUserLocation? value) + { + PreviewWebSearchUserLocation = value; + } + + /// + /// + /// + public static PreviewWebSearchUserLocation2 FromPreviewWebSearchUserLocation(global::OpenRouter.PreviewWebSearchUserLocation? value) => new PreviewWebSearchUserLocation2(value); + + /// + /// + /// + public PreviewWebSearchUserLocation2( + global::OpenRouter.PreviewWebSearchUserLocation? previewWebSearchUserLocation, + object? locationVariant2 + ) + { + PreviewWebSearchUserLocation = previewWebSearchUserLocation; + LocationVariant2 = locationVariant2; + } + + /// + /// + /// + public object? Object => + LocationVariant2 as object ?? + PreviewWebSearchUserLocation as object + ; + + /// + /// + /// + public override string? ToString() => + PreviewWebSearchUserLocation?.ToString() ?? + LocationVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPreviewWebSearchUserLocation && !IsLocationVariant2 || !IsPreviewWebSearchUserLocation && IsLocationVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? previewWebSearchUserLocation = null, + global::System.Func? locationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPreviewWebSearchUserLocation && previewWebSearchUserLocation != null) + { + return previewWebSearchUserLocation(PreviewWebSearchUserLocation!); + } + else if (IsLocationVariant2 && locationVariant2 != null) + { + return locationVariant2(LocationVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? previewWebSearchUserLocation = null, + + global::System.Action? locationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPreviewWebSearchUserLocation) + { + previewWebSearchUserLocation?.Invoke(PreviewWebSearchUserLocation!); + } + else if (IsLocationVariant2) + { + locationVariant2?.Invoke(LocationVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? previewWebSearchUserLocation = null, + global::System.Action? locationVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsPreviewWebSearchUserLocation) + { + previewWebSearchUserLocation?.Invoke(PreviewWebSearchUserLocation!); + } + else if (IsLocationVariant2) + { + locationVariant2?.Invoke(LocationVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + PreviewWebSearchUserLocation, + typeof(global::OpenRouter.PreviewWebSearchUserLocation), + LocationVariant2, + typeof(object), + }; + 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(PreviewWebSearchUserLocation2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(PreviewWebSearchUserLocation, other.PreviewWebSearchUserLocation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(LocationVariant2, other.LocationVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(PreviewWebSearchUserLocation2 obj1, PreviewWebSearchUserLocation2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(PreviewWebSearchUserLocation2 obj1, PreviewWebSearchUserLocation2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is PreviewWebSearchUserLocation2 o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.Json.g.cs new file mode 100644 index 00000000..5cc6fc86 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class PricingOverride + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PricingOverride? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PricingOverride), + jsonSerializerContext) as global::OpenRouter.PricingOverride; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PricingOverride? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PricingOverride? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PricingOverride), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PricingOverride; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.g.cs new file mode 100644 index 00000000..4341dad0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PricingOverride.g.cs @@ -0,0 +1,145 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price. + /// + public sealed partial class PricingOverride + { + /// + /// Overridden price in USD per audio input token + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public string? Audio { get; set; } + + /// + /// Overridden price in USD per token for completion (output) generation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion")] + public string? Completion { get; set; } + + /// + /// Overridden price in USD per cached audio input token + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio_cache")] + public string? InputAudioCache { get; set; } + + /// + /// Overridden price in USD per cached input token (read) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_cache_read")] + public string? InputCacheRead { get; set; } + + /// + /// Overridden price in USD per cache-write token + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write")] + public string? InputCacheWrite { get; set; } + + /// + /// Overridden price in USD per 1-hour cache-write token + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write_1h")] + public string? InputCacheWrite1h { get; set; } + + /// + /// Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min_prompt_tokens")] + public double? MinPromptTokens { get; set; } + + /// + /// Overridden price in USD per token for prompt (input) processing + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + public string? Prompt { get; set; } + + /// + /// Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("utc_end")] + public double? UtcEnd { get; set; } + + /// + /// Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("utc_start")] + public double? UtcStart { 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. + /// + /// + /// Overridden price in USD per audio input token + /// + /// + /// Overridden price in USD per token for completion (output) generation + /// + /// + /// Overridden price in USD per cached audio input token + /// + /// + /// Overridden price in USD per cached input token (read) + /// + /// + /// Overridden price in USD per cache-write token + /// + /// + /// Overridden price in USD per 1-hour cache-write token + /// + /// + /// Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold + /// + /// + /// Overridden price in USD per token for prompt (input) processing + /// + /// + /// Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00) + /// + /// + /// Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PricingOverride( + string? audio, + string? completion, + string? inputAudioCache, + string? inputCacheRead, + string? inputCacheWrite, + string? inputCacheWrite1h, + double? minPromptTokens, + string? prompt, + double? utcEnd, + double? utcStart) + { + this.Audio = audio; + this.Completion = completion; + this.InputAudioCache = inputAudioCache; + this.InputCacheRead = inputCacheRead; + this.InputCacheWrite = inputCacheWrite; + this.InputCacheWrite1h = inputCacheWrite1h; + this.MinPromptTokens = minPromptTokens; + this.Prompt = prompt; + this.UtcEnd = utcEnd; + this.UtcStart = utcStart; + } + + /// + /// Initializes a new instance of the class. + /// + public PricingOverride() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.Json.g.cs new file mode 100644 index 00000000..853852ca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class PromptCacheBreakpoint + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PromptCacheBreakpoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PromptCacheBreakpoint), + jsonSerializerContext) as global::OpenRouter.PromptCacheBreakpoint; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PromptCacheBreakpoint? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PromptCacheBreakpoint? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PromptCacheBreakpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PromptCacheBreakpoint; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.g.cs new file mode 100644 index 00000000..4db0b585 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpoint.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. + /// + public sealed partial class PromptCacheBreakpoint + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PromptCacheBreakpointModeJsonConverter))] + public global::OpenRouter.PromptCacheBreakpointMode Mode { 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 PromptCacheBreakpoint( + global::OpenRouter.PromptCacheBreakpointMode mode) + { + this.Mode = mode; + } + + /// + /// Initializes a new instance of the class. + /// + public PromptCacheBreakpoint() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpointMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpointMode.g.cs new file mode 100644 index 00000000..9be38fd5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheBreakpointMode.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum PromptCacheBreakpointMode + { + /// + /// + /// + Explicit, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PromptCacheBreakpointModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PromptCacheBreakpointMode value) + { + return value switch + { + PromptCacheBreakpointMode.Explicit => "explicit", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PromptCacheBreakpointMode? ToEnum(string value) + { + return value switch + { + "explicit" => PromptCacheBreakpointMode.Explicit, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.Json.g.cs new file mode 100644 index 00000000..ddee44a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class PromptCacheOptions + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PromptCacheOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PromptCacheOptions), + jsonSerializerContext) as global::OpenRouter.PromptCacheOptions; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PromptCacheOptions? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.PromptCacheOptions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.PromptCacheOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PromptCacheOptions; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.g.cs new file mode 100644 index 00000000..e4185ed1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptions.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// + public sealed partial class PromptCacheOptions + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PromptCacheOptionsModeJsonConverter))] + public global::OpenRouter.PromptCacheOptionsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] + public string? Ttl { 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 PromptCacheOptions( + global::OpenRouter.PromptCacheOptionsMode mode, + string? ttl) + { + this.Mode = mode; + this.Ttl = ttl; + } + + /// + /// Initializes a new instance of the class. + /// + public PromptCacheOptions() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptionsMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptionsMode.g.cs new file mode 100644 index 00000000..ea45270b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PromptCacheOptionsMode.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum PromptCacheOptionsMode + { + /// + /// + /// + Explicit, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PromptCacheOptionsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PromptCacheOptionsMode value) + { + return value switch + { + PromptCacheOptionsMode.Explicit => "explicit", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PromptCacheOptionsMode? ToEnum(string value) + { + return value switch + { + "explicit" => PromptCacheOptionsMode.Explicit, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs index 7f455dc8..e4a6f4e3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs @@ -123,6 +123,10 @@ public enum ProviderName /// /// /// + Deepgram, + /// + /// + /// DekaLLM, /// /// @@ -143,6 +147,10 @@ public enum ProviderName /// /// /// + FishAudio, + /// + /// + /// Friendli, /// /// @@ -199,6 +207,10 @@ public enum ProviderName /// /// /// + Krea, + /// + /// + /// Liquid, /// /// @@ -211,6 +223,10 @@ public enum ProviderName /// /// /// + Meta, + /// + /// + /// Minimax, /// /// @@ -303,6 +319,10 @@ public enum ProviderName /// /// /// + SailResearch, + /// + /// + /// SakanaAi, /// /// @@ -339,6 +359,10 @@ public enum ProviderName /// /// /// + Tencent, + /// + /// + /// Tenstorrent, /// /// @@ -414,11 +438,13 @@ public static string ToValueString(this ProviderName value) ProviderName.Decart => "Decart", ProviderName.DeepInfra => "DeepInfra", ProviderName.DeepSeek => "DeepSeek", + ProviderName.Deepgram => "Deepgram", ProviderName.DekaLLM => "DekaLLM", ProviderName.DigitalOcean => "DigitalOcean", ProviderName.FakeProvider => "FakeProvider", ProviderName.Featherless => "Featherless", ProviderName.Fireworks => "Fireworks", + ProviderName.FishAudio => "Fish Audio", ProviderName.Friendli => "Friendli", ProviderName.GMICloud => "GMICloud", ProviderName.Google => "Google", @@ -433,9 +459,11 @@ public static string ToValueString(this ProviderName value) ProviderName.Inflection => "Inflection", ProviderName.IoNet => "Io Net", ProviderName.Ionstream => "Ionstream", + ProviderName.Krea => "Krea", ProviderName.Liquid => "Liquid", ProviderName.Mancer2 => "Mancer 2", ProviderName.Mara => "Mara", + ProviderName.Meta => "Meta", ProviderName.Minimax => "Minimax", ProviderName.Mistral => "Mistral", ProviderName.ModelRun => "ModelRun", @@ -459,6 +487,7 @@ public static string ToValueString(this ProviderName value) ProviderName.Recraft => "Recraft", ProviderName.Reka => "Reka", ProviderName.Relace => "Relace", + ProviderName.SailResearch => "Sail Research", ProviderName.SakanaAi => "Sakana AI", ProviderName.SambaNova => "SambaNova", ProviderName.Seed => "Seed", @@ -468,6 +497,7 @@ public static string ToValueString(this ProviderName value) ProviderName.StepFun => "StepFun", ProviderName.StreamLake => "StreamLake", ProviderName.Switchpoint => "Switchpoint", + ProviderName.Tencent => "Tencent", ProviderName.Tenstorrent => "Tenstorrent", ProviderName.Together => "Together", ProviderName.Upstage => "Upstage", @@ -515,11 +545,13 @@ public static string ToValueString(this ProviderName value) "Decart" => ProviderName.Decart, "DeepInfra" => ProviderName.DeepInfra, "DeepSeek" => ProviderName.DeepSeek, + "Deepgram" => ProviderName.Deepgram, "DekaLLM" => ProviderName.DekaLLM, "DigitalOcean" => ProviderName.DigitalOcean, "FakeProvider" => ProviderName.FakeProvider, "Featherless" => ProviderName.Featherless, "Fireworks" => ProviderName.Fireworks, + "Fish Audio" => ProviderName.FishAudio, "Friendli" => ProviderName.Friendli, "GMICloud" => ProviderName.GMICloud, "Google" => ProviderName.Google, @@ -534,9 +566,11 @@ public static string ToValueString(this ProviderName value) "Inflection" => ProviderName.Inflection, "Io Net" => ProviderName.IoNet, "Ionstream" => ProviderName.Ionstream, + "Krea" => ProviderName.Krea, "Liquid" => ProviderName.Liquid, "Mancer 2" => ProviderName.Mancer2, "Mara" => ProviderName.Mara, + "Meta" => ProviderName.Meta, "Minimax" => ProviderName.Minimax, "Mistral" => ProviderName.Mistral, "ModelRun" => ProviderName.ModelRun, @@ -560,6 +594,7 @@ public static string ToValueString(this ProviderName value) "Recraft" => ProviderName.Recraft, "Reka" => ProviderName.Reka, "Relace" => ProviderName.Relace, + "Sail Research" => ProviderName.SailResearch, "Sakana AI" => ProviderName.SakanaAi, "SambaNova" => ProviderName.SambaNova, "Seed" => ProviderName.Seed, @@ -569,6 +604,7 @@ public static string ToValueString(this ProviderName value) "StepFun" => ProviderName.StepFun, "StreamLake" => ProviderName.StreamLake, "Switchpoint" => ProviderName.Switchpoint, + "Tencent" => ProviderName.Tencent, "Tenstorrent" => ProviderName.Tenstorrent, "Together" => ProviderName.Together, "Upstage" => ProviderName.Upstage, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs index d33d5ac9..bafd265e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs @@ -194,6 +194,12 @@ public sealed partial class ProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("decart")] public object? Decart { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepgram")] + public object? Deepgram { get; set; } + /// /// /// @@ -242,6 +248,12 @@ public sealed partial class ProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("fireworks")] public object? Fireworks { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fish-audio")] + public object? FishAudio { get; set; } + /// /// /// @@ -362,6 +374,12 @@ public sealed partial class ProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("klusterai")] public object? Klusterai { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("krea")] + public object? Krea { get; set; } + /// /// /// @@ -593,8 +611,14 @@ public sealed partial class ProviderOptions /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("sakana-ai")] - public object? SakanaAi { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sail-research")] + public object? SailResearch { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sakana")] + public object? Sakana { get; set; } /// /// @@ -662,6 +686,12 @@ public sealed partial class ProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("targon")] public object? Targon { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tencent")] + public object? Tencent { get; set; } + /// /// /// @@ -768,6 +798,7 @@ public sealed partial class ProviderOptions /// /// /// + /// /// /// /// @@ -776,6 +807,7 @@ public sealed partial class ProviderOptions /// /// /// + /// /// /// /// @@ -796,6 +828,7 @@ public sealed partial class ProviderOptions /// /// /// + /// /// /// /// @@ -834,7 +867,8 @@ public sealed partial class ProviderOptions /// /// /// - /// + /// + /// /// /// /// @@ -846,6 +880,7 @@ public sealed partial class ProviderOptions /// /// /// + /// /// /// /// @@ -892,6 +927,7 @@ public ProviderOptions( object? crusoe, object? darkbloom, object? decart, + object? deepgram, object? deepinfra, object? deepseek, object? dekallm, @@ -900,6 +936,7 @@ public ProviderOptions( object? fakeProvider, object? featherless, object? fireworks, + object? fishAudio, object? friendli, object? gmicloud, object? googleAiStudio, @@ -920,6 +957,7 @@ public ProviderOptions( object? ioNet, object? ionstream, object? klusterai, + object? krea, object? lambda, object? lepton, object? liquid, @@ -958,7 +996,8 @@ public ProviderOptions( object? reka, object? relace, object? replicate, - object? sakanaAi, + object? sailResearch, + object? sakana, object? sambanova, object? sambanovaCloaked, object? seed, @@ -970,6 +1009,7 @@ public ProviderOptions( object? streamlake, object? switchpoint, object? targon, + object? tencent, object? tenstorrent, object? together, object? togetherLite, @@ -1013,6 +1053,7 @@ public ProviderOptions( this.Crusoe = crusoe; this.Darkbloom = darkbloom; this.Decart = decart; + this.Deepgram = deepgram; this.Deepinfra = deepinfra; this.Deepseek = deepseek; this.Dekallm = dekallm; @@ -1021,6 +1062,7 @@ public ProviderOptions( this.FakeProvider = fakeProvider; this.Featherless = featherless; this.Fireworks = fireworks; + this.FishAudio = fishAudio; this.Friendli = friendli; this.Gmicloud = gmicloud; this.GoogleAiStudio = googleAiStudio; @@ -1041,6 +1083,7 @@ public ProviderOptions( this.IoNet = ioNet; this.Ionstream = ionstream; this.Klusterai = klusterai; + this.Krea = krea; this.Lambda = lambda; this.Lepton = lepton; this.Liquid = liquid; @@ -1079,7 +1122,8 @@ public ProviderOptions( this.Reka = reka; this.Relace = relace; this.Replicate = replicate; - this.SakanaAi = sakanaAi; + this.SailResearch = sailResearch; + this.Sakana = sakana; this.Sambanova = sambanova; this.SambanovaCloaked = sambanovaCloaked; this.Seed = seed; @@ -1091,6 +1135,7 @@ public ProviderOptions( this.Streamlake = streamlake; this.Switchpoint = switchpoint; this.Targon = targon; + this.Tencent = tencent; this.Tenstorrent = tenstorrent; this.Together = together; this.TogetherLite = togetherLite; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.Json.g.cs new file mode 100644 index 00000000..b07429a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsDeepgram + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsDeepgram), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsDeepgram; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsDeepgram? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsDeepgram), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsDeepgram; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.g.cs new file mode 100644 index 00000000..4a878004 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsDeepgram + { + + /// + /// 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.ProviderOptionsDeepgram2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram2.Json.g.cs new file mode 100644 index 00000000..de451f5c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsDeepgram2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsDeepgram2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsDeepgram2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsDeepgram2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsDeepgram2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsDeepgram2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram2.g.cs new file mode 100644 index 00000000..590e9a5c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsDeepgram2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsDeepgram2 + { + + /// + /// 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.ProviderOptionsFishAudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio.Json.g.cs new file mode 100644 index 00000000..24bd5a5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsFishAudio + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsFishAudio), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsFishAudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsFishAudio? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsFishAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsFishAudio; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio.g.cs new file mode 100644 index 00000000..f8900927 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsFishAudio + { + + /// + /// 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.ProviderOptionsFishAudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio2.Json.g.cs new file mode 100644 index 00000000..ee64106c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsFishAudio2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsFishAudio2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsFishAudio2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsFishAudio2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsFishAudio2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsFishAudio2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio2.g.cs new file mode 100644 index 00000000..f2d6a014 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsFishAudio2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsFishAudio2 + { + + /// + /// 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.ProviderOptionsKrea.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea.Json.g.cs new file mode 100644 index 00000000..40cc5707 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsKrea + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsKrea? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsKrea), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsKrea; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsKrea? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsKrea? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsKrea), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsKrea; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea.g.cs new file mode 100644 index 00000000..3701680f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsKrea + { + + /// + /// 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.ProviderOptionsKrea2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea2.Json.g.cs new file mode 100644 index 00000000..133374f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsKrea2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsKrea2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsKrea2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsKrea2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsKrea2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsKrea2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsKrea2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsKrea2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea2.g.cs new file mode 100644 index 00000000..e692790b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsKrea2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsKrea2 + { + + /// + /// 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.ProviderOptionsSailResearch.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch.Json.g.cs new file mode 100644 index 00000000..7def004c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsSailResearch + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsSailResearch), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsSailResearch; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSailResearch? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsSailResearch), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSailResearch; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch.g.cs new file mode 100644 index 00000000..c09b73c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsSailResearch + { + + /// + /// 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.ProviderOptionsSailResearch2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch2.Json.g.cs new file mode 100644 index 00000000..197ac277 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsSailResearch2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsSailResearch2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsSailResearch2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSailResearch2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsSailResearch2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSailResearch2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch2.g.cs new file mode 100644 index 00000000..bac318f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSailResearch2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsSailResearch2 + { + + /// + /// 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.ProviderOptionsSakana.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana.Json.g.cs new file mode 100644 index 00000000..34b8e634 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsSakana + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSakana? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsSakana), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsSakana; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSakana? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsSakana? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsSakana), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSakana; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana.g.cs new file mode 100644 index 00000000..2d4b537d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsSakana + { + + /// + /// 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.ProviderOptionsSakana2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana2.Json.g.cs new file mode 100644 index 00000000..8be08651 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsSakana2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSakana2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsSakana2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsSakana2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsSakana2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsSakana2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsSakana2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSakana2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana2.g.cs new file mode 100644 index 00000000..d211f356 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakana2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsSakana2 + { + + /// + /// 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.ProviderOptionsSakanaAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi.Json.g.cs deleted file mode 100644 index 35218b1f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ProviderOptionsSakanaAi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ProviderOptionsSakanaAi), - jsonSerializerContext) as global::OpenRouter.ProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ProviderOptionsSakanaAi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ProviderOptionsSakanaAi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi.g.cs deleted file mode 100644 index 30703338..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ProviderOptionsSakanaAi - { - - /// - /// 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.ProviderOptionsSakanaAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi2.Json.g.cs deleted file mode 100644 index 47620fc5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ProviderOptionsSakanaAi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ProviderOptionsSakanaAi2), - jsonSerializerContext) as global::OpenRouter.ProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ProviderOptionsSakanaAi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ProviderOptionsSakanaAi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi2.g.cs deleted file mode 100644 index ab1d81e6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsSakanaAi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ProviderOptionsSakanaAi2 - { - - /// - /// 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.ProviderOptionsTencent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent.Json.g.cs new file mode 100644 index 00000000..d084cfcf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsTencent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTencent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsTencent), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsTencent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTencent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsTencent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsTencent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsTencent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent.g.cs new file mode 100644 index 00000000..e39d3559 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsTencent + { + + /// + /// 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.ProviderOptionsTencent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent2.Json.g.cs new file mode 100644 index 00000000..a9d789c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsTencent2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTencent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsTencent2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsTencent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTencent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ProviderOptionsTencent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ProviderOptionsTencent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsTencent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent2.g.cs new file mode 100644 index 00000000..0e20f10d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTencent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsTencent2 + { + + /// + /// 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.ProviderPreferences.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs index d6530678..919120fe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs @@ -22,8 +22,8 @@ public sealed partial class ProviderPreferences /// - deny: use only providers which do not collect user data. /// [global::System.Text.Json.Serialization.JsonPropertyName("data_collection")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? DataCollection { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderPreferencesDataCollectionJsonConverter))] + public global::OpenRouter.ProviderPreferencesDataCollection? DataCollection { get; set; } /// /// Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used. @@ -85,8 +85,8 @@ public sealed partial class ProviderPreferences /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. /// [global::System.Text.Json.Serialization.JsonPropertyName("sort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderPreferencesSortJsonConverter))] - public global::OpenRouter.ProviderPreferencesSort? Sort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Sort { get; set; } /// /// Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. @@ -151,7 +151,7 @@ public sealed partial class ProviderPreferences #endif public ProviderPreferences( bool? allowFallbacks, - global::OpenRouter.OneOf? dataCollection, + global::OpenRouter.ProviderPreferencesDataCollection? dataCollection, bool? enforceDistillableText, global::System.Collections.Generic.IList? ignore, global::OpenRouter.ProviderPreferencesMaxPrice? maxPrice, @@ -161,7 +161,7 @@ public ProviderPreferences( global::OpenRouter.PreferredMinThroughput? preferredMinThroughput, global::System.Collections.Generic.IList? quantizations, bool? requireParameters, - global::OpenRouter.ProviderPreferencesSort? sort, + global::OpenRouter.OneOf? sort, bool? zdr) { this.AllowFallbacks = allowFallbacks; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSort.g.cs index 096cd26e..2f96cdfd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSort.g.cs @@ -82,43 +82,6 @@ public bool TryPickProviderSortConfig( public global::OpenRouter.ProviderSortConfig PickProviderSortConfig() => IsProviderSortConfig ? ProviderSortConfig! : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderSortConfig' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ProviderPreferencesSortVariant3 { get; init; } -#else - public object? ProviderPreferencesSortVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ProviderPreferencesSortVariant3))] -#endif - public bool IsProviderPreferencesSortVariant3 => ProviderPreferencesSortVariant3 != null; - - /// - /// - /// - public bool TryPickProviderPreferencesSortVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ProviderPreferencesSortVariant3; - return IsProviderPreferencesSortVariant3; - } - - /// - /// - /// - public object PickProviderPreferencesSortVariant3() => IsProviderPreferencesSortVariant3 - ? ProviderPreferencesSortVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderPreferencesSortVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public ProviderPreferencesSort(global::OpenRouter.ProviderSortConfig? value) /// public ProviderPreferencesSort( global::OpenRouter.ProviderSort? providerSort, - global::OpenRouter.ProviderSortConfig? providerSortConfig, - object? providerPreferencesSortVariant3 + global::OpenRouter.ProviderSortConfig? providerSortConfig ) { ProviderSort = providerSort; ProviderSortConfig = providerSortConfig; - ProviderPreferencesSortVariant3 = providerPreferencesSortVariant3; } /// /// /// public object? Object => - ProviderPreferencesSortVariant3 as object ?? ProviderSortConfig as object ?? ProviderSort as object ; @@ -193,8 +153,7 @@ ProviderSort as object /// public override string? ToString() => ProviderSort?.ToValueString() ?? - ProviderSortConfig?.ToString() ?? - ProviderPreferencesSortVariant3?.ToString() + ProviderSortConfig?.ToString() ; /// @@ -202,7 +161,7 @@ ProviderSort as object /// public bool Validate() { - return IsProviderSort && !IsProviderSortConfig && !IsProviderPreferencesSortVariant3 || !IsProviderSort && IsProviderSortConfig && !IsProviderPreferencesSortVariant3 || !IsProviderSort && !IsProviderSortConfig && IsProviderPreferencesSortVariant3; + return IsProviderSort && !IsProviderSortConfig || !IsProviderSort && IsProviderSortConfig; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? providerSort = null, global::System.Func? providerSortConfig = null, - global::System.Func? providerPreferencesSortVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return providerSortConfig(ProviderSortConfig!); } - else if (IsProviderPreferencesSortVariant3 && providerPreferencesSortVariant3 != null) - { - return providerPreferencesSortVariant3(ProviderPreferencesSortVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - - global::System.Action? providerPreferencesSortVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsProviderPreferencesSortVariant3) - { - providerPreferencesSortVariant3?.Invoke(ProviderPreferencesSortVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - global::System.Action? providerPreferencesSortVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsProviderPreferencesSortVariant3) - { - providerPreferencesSortVariant3?.Invoke(ProviderPreferencesSortVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.ProviderSort), ProviderSortConfig, typeof(global::OpenRouter.ProviderSortConfig), - ProviderPreferencesSortVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(ProviderPreferencesSort other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSort, other.ProviderSort) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderPreferencesSortVariant3, other.ProviderPreferencesSortVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.Json.g.cs deleted file mode 100644 index 1590ef7d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ProviderPreferencesSortVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ProviderPreferencesSortVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ProviderPreferencesSortVariant3), - jsonSerializerContext) as global::OpenRouter.ProviderPreferencesSortVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ProviderPreferencesSortVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ProviderPreferencesSortVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ProviderPreferencesSortVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderPreferencesSortVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.g.cs deleted file mode 100644 index c1298e70..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferencesSortVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ProviderPreferencesSortVariant3 - { - - /// - /// 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.ProviderResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponse.g.cs index 55d6f018..0d73a927 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponse.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponse.g.cs @@ -45,6 +45,13 @@ public sealed partial class ProviderResponse [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderResponseProviderNameJsonConverter))] public global::OpenRouter.ProviderResponseProviderName? ProviderName { get; set; } + /// + /// The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("routed_service_tier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderResponseRoutedServiceTierJsonConverter))] + public global::OpenRouter.ProviderResponseRoutedServiceTier? RoutedServiceTier { get; set; } + /// /// HTTP status code from the provider /// @@ -78,6 +85,9 @@ public sealed partial class ProviderResponse /// /// Name of the provider /// + /// + /// The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ. + /// /// /// HTTP status code from the provider /// @@ -91,6 +101,7 @@ public ProviderResponse( double? latency, string? modelPermaslug, global::OpenRouter.ProviderResponseProviderName? providerName, + global::OpenRouter.ProviderResponseRoutedServiceTier? routedServiceTier, int? status) { this.EndpointId = endpointId; @@ -99,6 +110,7 @@ public ProviderResponse( this.Latency = latency; this.ModelPermaslug = modelPermaslug; this.ProviderName = providerName; + this.RoutedServiceTier = routedServiceTier; this.Status = status; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs index 6555fb97..17a4f64e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs @@ -143,6 +143,10 @@ public enum ProviderResponseProviderName /// /// /// + Deepgram, + /// + /// + /// DekaLLM, /// /// @@ -167,6 +171,10 @@ public enum ProviderResponseProviderName /// /// /// + FishAudio, + /// + /// + /// Friendli, /// /// @@ -247,6 +255,10 @@ public enum ProviderResponseProviderName /// /// /// + Krea, + /// + /// + /// Lambda, /// /// @@ -403,6 +415,10 @@ public enum ProviderResponseProviderName /// /// /// + SailResearch, + /// + /// + /// SakanaAi, /// /// @@ -447,6 +463,10 @@ public enum ProviderResponseProviderName /// /// /// + Tencent, + /// + /// + /// Tenstorrent, /// /// @@ -535,12 +555,14 @@ public static string ToValueString(this ProviderResponseProviderName value) ProviderResponseProviderName.Decart => "Decart", ProviderResponseProviderName.DeepInfra => "DeepInfra", ProviderResponseProviderName.DeepSeek => "DeepSeek", + ProviderResponseProviderName.Deepgram => "Deepgram", ProviderResponseProviderName.DekaLLM => "DekaLLM", ProviderResponseProviderName.DigitalOcean => "DigitalOcean", ProviderResponseProviderName.Enfer => "Enfer", ProviderResponseProviderName.FakeProvider => "FakeProvider", ProviderResponseProviderName.Featherless => "Featherless", ProviderResponseProviderName.Fireworks => "Fireworks", + ProviderResponseProviderName.FishAudio => "Fish Audio", ProviderResponseProviderName.Friendli => "Friendli", ProviderResponseProviderName.GMICloud => "GMICloud", ProviderResponseProviderName.GoPomelo => "GoPomelo", @@ -561,6 +583,7 @@ public static string ToValueString(this ProviderResponseProviderName value) ProviderResponseProviderName.IoNet => "Io Net", ProviderResponseProviderName.Ionstream => "Ionstream", ProviderResponseProviderName.Kluster => "Kluster", + ProviderResponseProviderName.Krea => "Krea", ProviderResponseProviderName.Lambda => "Lambda", ProviderResponseProviderName.Lepton => "Lepton", ProviderResponseProviderName.Liquid => "Liquid", @@ -600,6 +623,7 @@ public static string ToValueString(this ProviderResponseProviderName value) ProviderResponseProviderName.Relace => "Relace", ProviderResponseProviderName.Replicate => "Replicate", ProviderResponseProviderName.SfCompute => "SF Compute", + ProviderResponseProviderName.SailResearch => "Sail Research", ProviderResponseProviderName.SakanaAi => "Sakana AI", ProviderResponseProviderName.SambaNova => "SambaNova", ProviderResponseProviderName.SambaNova2 => "SambaNova 2", @@ -611,6 +635,7 @@ public static string ToValueString(this ProviderResponseProviderName value) ProviderResponseProviderName.StreamLake => "StreamLake", ProviderResponseProviderName.Switchpoint => "Switchpoint", ProviderResponseProviderName.Targon => "Targon", + ProviderResponseProviderName.Tencent => "Tencent", ProviderResponseProviderName.Tenstorrent => "Tenstorrent", ProviderResponseProviderName.Together => "Together", ProviderResponseProviderName.Together2 => "Together 2", @@ -665,12 +690,14 @@ public static string ToValueString(this ProviderResponseProviderName value) "Decart" => ProviderResponseProviderName.Decart, "DeepInfra" => ProviderResponseProviderName.DeepInfra, "DeepSeek" => ProviderResponseProviderName.DeepSeek, + "Deepgram" => ProviderResponseProviderName.Deepgram, "DekaLLM" => ProviderResponseProviderName.DekaLLM, "DigitalOcean" => ProviderResponseProviderName.DigitalOcean, "Enfer" => ProviderResponseProviderName.Enfer, "FakeProvider" => ProviderResponseProviderName.FakeProvider, "Featherless" => ProviderResponseProviderName.Featherless, "Fireworks" => ProviderResponseProviderName.Fireworks, + "Fish Audio" => ProviderResponseProviderName.FishAudio, "Friendli" => ProviderResponseProviderName.Friendli, "GMICloud" => ProviderResponseProviderName.GMICloud, "GoPomelo" => ProviderResponseProviderName.GoPomelo, @@ -691,6 +718,7 @@ public static string ToValueString(this ProviderResponseProviderName value) "Io Net" => ProviderResponseProviderName.IoNet, "Ionstream" => ProviderResponseProviderName.Ionstream, "Kluster" => ProviderResponseProviderName.Kluster, + "Krea" => ProviderResponseProviderName.Krea, "Lambda" => ProviderResponseProviderName.Lambda, "Lepton" => ProviderResponseProviderName.Lepton, "Liquid" => ProviderResponseProviderName.Liquid, @@ -730,6 +758,7 @@ public static string ToValueString(this ProviderResponseProviderName value) "Relace" => ProviderResponseProviderName.Relace, "Replicate" => ProviderResponseProviderName.Replicate, "SF Compute" => ProviderResponseProviderName.SfCompute, + "Sail Research" => ProviderResponseProviderName.SailResearch, "Sakana AI" => ProviderResponseProviderName.SakanaAi, "SambaNova" => ProviderResponseProviderName.SambaNova, "SambaNova 2" => ProviderResponseProviderName.SambaNova2, @@ -741,6 +770,7 @@ public static string ToValueString(this ProviderResponseProviderName value) "StreamLake" => ProviderResponseProviderName.StreamLake, "Switchpoint" => ProviderResponseProviderName.Switchpoint, "Targon" => ProviderResponseProviderName.Targon, + "Tencent" => ProviderResponseProviderName.Tencent, "Tenstorrent" => ProviderResponseProviderName.Tenstorrent, "Together" => ProviderResponseProviderName.Together, "Together 2" => ProviderResponseProviderName.Together2, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseRoutedServiceTier.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseRoutedServiceTier.g.cs new file mode 100644 index 00000000..13f99fe5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseRoutedServiceTier.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ. + /// + public enum ProviderResponseRoutedServiceTier + { + /// + /// + /// + Flex, + /// + /// + /// + Priority, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ProviderResponseRoutedServiceTierExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ProviderResponseRoutedServiceTier value) + { + return value switch + { + ProviderResponseRoutedServiceTier.Flex => "flex", + ProviderResponseRoutedServiceTier.Priority => "priority", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ProviderResponseRoutedServiceTier? ToEnum(string value) + { + return value switch + { + "flex" => ProviderResponseRoutedServiceTier.Flex, + "priority" => ProviderResponseRoutedServiceTier.Priority, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderSortConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderSortConfig.g.cs index b8ba3e54..a105b749 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderSortConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderSortConfig.g.cs @@ -12,15 +12,15 @@ public sealed partial class ProviderSortConfig /// The provider sorting strategy (price, throughput, latency) /// [global::System.Text.Json.Serialization.JsonPropertyName("by")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? By { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderSortConfigByJsonConverter))] + public global::OpenRouter.ProviderSortConfigBy? By { get; set; } /// /// Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model. /// [global::System.Text.Json.Serialization.JsonPropertyName("partition")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? Partition { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProviderSortConfigPartitionJsonConverter))] + public global::OpenRouter.ProviderSortConfigPartition? Partition { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,8 +41,8 @@ public sealed partial class ProviderSortConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ProviderSortConfig( - global::OpenRouter.OneOf? by, - global::OpenRouter.OneOf? partition) + global::OpenRouter.ProviderSortConfigBy? by, + global::OpenRouter.ProviderSortConfigPartition? partition) { this.By = by; this.Partition = partition; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProvidersGetResponsesContentApplicationJsonSchemaDataItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProvidersGetResponsesContentApplicationJsonSchemaDataItems.g.cs index 186d792e..da24c179 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProvidersGetResponsesContentApplicationJsonSchemaDataItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProvidersGetResponsesContentApplicationJsonSchemaDataItems.g.cs @@ -18,8 +18,8 @@ public sealed partial class ProvidersGetResponsesContentApplicationJsonSchemaDat /// ISO 3166-1 Alpha-2 country code of the provider headquarters /// [global::System.Text.Json.Serialization.JsonPropertyName("headquarters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? Headquarters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersJsonConverter))] + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Headquarters { get; set; } /// /// Display name of the provider @@ -90,7 +90,7 @@ public ProvidersGetResponsesContentApplicationJsonSchemaDataItems( string name, string slug, global::System.Collections.Generic.IList? datacenters, - global::OpenRouter.OneOf? headquarters, + global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? headquarters, string? privacyPolicyUrl, string? statusPageUrl, string? termsOfServiceUrl) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs index 504a76ad..67b6dd57 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs @@ -74,9 +74,9 @@ public sealed partial class PublicEndpoint /// /// [global::System.Text.Json.Serialization.JsonPropertyName("quantization")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.QuantizationJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.Quantization Quantization { get; set; } + public required global::OpenRouter.OneOf Quantization { get; set; } /// /// @@ -179,7 +179,7 @@ public PublicEndpoint( string name, global::OpenRouter.PublicEndpointPricing pricing, global::OpenRouter.ProviderName providerName, - global::OpenRouter.Quantization quantization, + global::OpenRouter.OneOf quantization, global::System.Collections.Generic.IList supportedParameters, bool supportsImplicitCaching, string tag, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs index 2e99719d..315896ba 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs @@ -81,6 +81,12 @@ public sealed partial class PublicEndpointPricing [global::System.Text.Json.Serialization.JsonPropertyName("internal_reasoning")] public string? InternalReasoning { get; set; } + /// + /// Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overrides")] + public global::System.Collections.Generic.IList? Overrides { get; set; } + /// /// Price in USD per token for prompt (input) processing /// @@ -148,6 +154,9 @@ public sealed partial class PublicEndpointPricing /// /// Price in USD per internal reasoning token /// + /// + /// Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions. + /// /// /// Price in USD per request /// @@ -171,6 +180,7 @@ public PublicEndpointPricing( string? inputCacheWrite, string? inputCacheWrite1h, string? internalReasoning, + global::System.Collections.Generic.IList? overrides, string? request, string? webSearch) { @@ -186,6 +196,7 @@ public PublicEndpointPricing( this.InputCacheWrite = inputCacheWrite; this.InputCacheWrite1h = inputCacheWrite1h; this.InternalReasoning = internalReasoning; + this.Overrides = overrides; this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Request = request; this.WebSearch = webSearch; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicPricing.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicPricing.g.cs index 599bad2a..33c89355 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicPricing.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicPricing.g.cs @@ -81,6 +81,12 @@ public sealed partial class PublicPricing [global::System.Text.Json.Serialization.JsonPropertyName("internal_reasoning")] public string? InternalReasoning { get; set; } + /// + /// Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overrides")] + public global::System.Collections.Generic.IList? Overrides { get; set; } + /// /// Price in USD per token for prompt (input) processing /// @@ -148,6 +154,9 @@ public sealed partial class PublicPricing /// /// Price in USD per internal reasoning token /// + /// + /// Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions. + /// /// /// Price in USD per request /// @@ -171,6 +180,7 @@ public PublicPricing( string? inputCacheWrite, string? inputCacheWrite1h, string? internalReasoning, + global::System.Collections.Generic.IList? overrides, string? request, string? webSearch) { @@ -186,6 +196,7 @@ public PublicPricing( this.InputCacheWrite = inputCacheWrite; this.InputCacheWrite1h = inputCacheWrite1h; this.InternalReasoning = internalReasoning; + this.Overrides = overrides; this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Request = request; this.WebSearch = webSearch; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs index 0d61e578..8e4ce2c6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs @@ -8,6 +8,18 @@ namespace OpenRouter /// public sealed partial class QueryAnalyticsRequest { + /// + /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("classifier_dimensions")] + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? ClassifierDimensions { get; set; } + + /// + /// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("classifier_filters")] + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? ClassifierFilters { get; set; } + /// /// /// @@ -67,6 +79,12 @@ public sealed partial class QueryAnalyticsRequest /// Initializes a new instance of the class. /// /// + /// + /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. + /// + /// + /// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions. + /// /// /// /// @@ -85,6 +103,8 @@ public sealed partial class QueryAnalyticsRequest #endif public QueryAnalyticsRequest( global::System.Collections.Generic.IList metrics, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions, + global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters, global::System.Collections.Generic.IList? dimensions, global::System.Collections.Generic.IList? filters, string? granularity, @@ -93,6 +113,8 @@ public QueryAnalyticsRequest( global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy? orderBy, global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaTimeRange? timeRange) { + this.ClassifierDimensions = classifierDimensions; + this.ClassifierFilters = classifierFilters; this.Dimensions = dimensions; this.Filters = filters; this.Granularity = granularity; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningConfig.g.cs index 7736feba..30a91406 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningConfig.g.cs @@ -8,6 +8,13 @@ namespace OpenRouter /// public sealed partial class ReasoningConfig { + /// + /// Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("context")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningContextJsonConverter))] + public global::OpenRouter.ReasoningContext? Context { get; set; } + /// /// /// @@ -15,6 +22,13 @@ public sealed partial class ReasoningConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningEffortJsonConverter))] public global::OpenRouter.ReasoningEffort? Effort { get; set; } + /// + /// Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningModeJsonConverter))] + public global::OpenRouter.ReasoningMode? Mode { get; set; } + /// /// /// @@ -43,7 +57,13 @@ public sealed partial class ReasoningConfig /// /// Initializes a new instance of the class. /// + /// + /// Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer. + /// /// + /// + /// Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// /// @@ -51,12 +71,16 @@ public sealed partial class ReasoningConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReasoningConfig( + global::OpenRouter.ReasoningContext? context, global::OpenRouter.ReasoningEffort? effort, + global::OpenRouter.ReasoningMode? mode, global::OpenRouter.ReasoningSummaryVerbosity? summary, bool? enabled, int? maxTokens) { + this.Context = context; this.Effort = effort; + this.Mode = mode; this.Summary = summary; this.Enabled = enabled; this.MaxTokens = maxTokens; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningContext.g.cs new file mode 100644 index 00000000..feeafc83 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningContext.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer. + /// + public enum ReasoningContext + { + /// + /// + /// + AllTurns, + /// + /// + /// + Auto, + /// + /// + /// + CurrentTurn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ReasoningContextExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ReasoningContext value) + { + return value switch + { + ReasoningContext.AllTurns => "all_turns", + ReasoningContext.Auto => "auto", + ReasoningContext.CurrentTurn => "current_turn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ReasoningContext? ToEnum(string value) + { + return value switch + { + "all_turns" => ReasoningContext.AllTurns, + "auto" => ReasoningContext.Auto, + "current_turn" => ReasoningContext.CurrentTurn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnion.g.cs index 85c6aa44..ac48f254 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnion.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnion.g.cs @@ -51,13 +51,50 @@ public bool TryPickReasoningEncrypted( ? ReasoningEncrypted! : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningEncrypted' but the value was {ToString()}."); + /// + /// Record of an OpenRouter server-tool invocation (e.g. openrouter:fusion), carried in reasoning_details so a prior tool call can be rehydrated into a later turn of the same conversation. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ReasoningDetailUnionVariant2? ReasoningServerToolCall { get; init; } +#else + public global::OpenRouter.ReasoningDetailUnionVariant2? ReasoningServerToolCall { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReasoningServerToolCall))] +#endif + public bool IsReasoningServerToolCall => ReasoningServerToolCall != null; + + /// + /// + /// + public bool TryPickReasoningServerToolCall( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ReasoningDetailUnionVariant2? value) + { + value = ReasoningServerToolCall; + return IsReasoningServerToolCall; + } + + /// + /// + /// + public global::OpenRouter.ReasoningDetailUnionVariant2 PickReasoningServerToolCall() => IsReasoningServerToolCall + ? ReasoningServerToolCall! + : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningServerToolCall' but the value was {ToString()}."); + /// /// Reasoning detail summary schema /// #if NET6_0_OR_GREATER - public global::OpenRouter.ReasoningDetailUnionVariant2? ReasoningSummary { get; init; } + public global::OpenRouter.ReasoningDetailUnionVariant3? ReasoningSummary { get; init; } #else - public global::OpenRouter.ReasoningDetailUnionVariant2? ReasoningSummary { get; } + public global::OpenRouter.ReasoningDetailUnionVariant3? ReasoningSummary { get; } #endif /// @@ -75,7 +112,7 @@ public bool TryPickReasoningSummary( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ReasoningDetailUnionVariant2? value) + out global::OpenRouter.ReasoningDetailUnionVariant3? value) { value = ReasoningSummary; return IsReasoningSummary; @@ -84,7 +121,7 @@ public bool TryPickReasoningSummary( /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2 PickReasoningSummary() => IsReasoningSummary + public global::OpenRouter.ReasoningDetailUnionVariant3 PickReasoningSummary() => IsReasoningSummary ? ReasoningSummary! : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningSummary' but the value was {ToString()}."); @@ -92,9 +129,9 @@ public bool TryPickReasoningSummary( /// Reasoning detail text schema /// #if NET6_0_OR_GREATER - public global::OpenRouter.ReasoningDetailUnionVariant3? ReasoningText { get; init; } + public global::OpenRouter.ReasoningDetailUnionVariant4? ReasoningText { get; init; } #else - public global::OpenRouter.ReasoningDetailUnionVariant3? ReasoningText { get; } + public global::OpenRouter.ReasoningDetailUnionVariant4? ReasoningText { get; } #endif /// @@ -112,7 +149,7 @@ public bool TryPickReasoningText( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ReasoningDetailUnionVariant3? value) + out global::OpenRouter.ReasoningDetailUnionVariant4? value) { value = ReasoningText; return IsReasoningText; @@ -121,7 +158,7 @@ public bool TryPickReasoningText( /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3 PickReasoningText() => IsReasoningText + public global::OpenRouter.ReasoningDetailUnionVariant4 PickReasoningText() => IsReasoningText ? ReasoningText! : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// @@ -155,20 +192,20 @@ public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant1? val /// /// /// - public static implicit operator global::OpenRouter.ReasoningDetailUnionVariant2?(ReasoningDetailUnion @this) => @this.ReasoningSummary; + public static implicit operator global::OpenRouter.ReasoningDetailUnionVariant2?(ReasoningDetailUnion @this) => @this.ReasoningServerToolCall; /// /// /// public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant2? value) { - ReasoningSummary = value; + ReasoningServerToolCall = value; } /// /// /// - public static ReasoningDetailUnion FromReasoningSummary(global::OpenRouter.ReasoningDetailUnionVariant2? value) => new ReasoningDetailUnion(value); + public static ReasoningDetailUnion FromReasoningServerToolCall(global::OpenRouter.ReasoningDetailUnionVariant2? value) => new ReasoningDetailUnion(value); /// /// @@ -178,12 +215,35 @@ public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant2? val /// /// /// - public static implicit operator global::OpenRouter.ReasoningDetailUnionVariant3?(ReasoningDetailUnion @this) => @this.ReasoningText; + public static implicit operator global::OpenRouter.ReasoningDetailUnionVariant3?(ReasoningDetailUnion @this) => @this.ReasoningSummary; /// /// /// public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant3? value) + { + ReasoningSummary = value; + } + + /// + /// + /// + public static ReasoningDetailUnion FromReasoningSummary(global::OpenRouter.ReasoningDetailUnionVariant3? value) => new ReasoningDetailUnion(value); + + /// + /// + /// + public static implicit operator ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant4 value) => new ReasoningDetailUnion((global::OpenRouter.ReasoningDetailUnionVariant4?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ReasoningDetailUnionVariant4?(ReasoningDetailUnion @this) => @this.ReasoningText; + + /// + /// + /// + public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant4? value) { ReasoningText = value; } @@ -191,7 +251,7 @@ public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant3? val /// /// /// - public static ReasoningDetailUnion FromReasoningText(global::OpenRouter.ReasoningDetailUnionVariant3? value) => new ReasoningDetailUnion(value); + public static ReasoningDetailUnion FromReasoningText(global::OpenRouter.ReasoningDetailUnionVariant4? value) => new ReasoningDetailUnion(value); /// /// @@ -199,13 +259,15 @@ public ReasoningDetailUnion(global::OpenRouter.ReasoningDetailUnionVariant3? val public ReasoningDetailUnion( global::OpenRouter.ReasoningDetailUnionDiscriminatorType? type, global::OpenRouter.ReasoningDetailUnionVariant1? reasoningEncrypted, - global::OpenRouter.ReasoningDetailUnionVariant2? reasoningSummary, - global::OpenRouter.ReasoningDetailUnionVariant3? reasoningText + global::OpenRouter.ReasoningDetailUnionVariant2? reasoningServerToolCall, + global::OpenRouter.ReasoningDetailUnionVariant3? reasoningSummary, + global::OpenRouter.ReasoningDetailUnionVariant4? reasoningText ) { Type = type; ReasoningEncrypted = reasoningEncrypted; + ReasoningServerToolCall = reasoningServerToolCall; ReasoningSummary = reasoningSummary; ReasoningText = reasoningText; } @@ -216,6 +278,7 @@ public ReasoningDetailUnion( public object? Object => ReasoningText as object ?? ReasoningSummary as object ?? + ReasoningServerToolCall as object ?? ReasoningEncrypted as object ; @@ -224,6 +287,7 @@ ReasoningEncrypted as object /// public override string? ToString() => ReasoningEncrypted?.ToString() ?? + ReasoningServerToolCall?.ToString() ?? ReasoningSummary?.ToString() ?? ReasoningText?.ToString() ; @@ -233,7 +297,7 @@ ReasoningEncrypted as object /// public bool Validate() { - return IsReasoningEncrypted && !IsReasoningSummary && !IsReasoningText || !IsReasoningEncrypted && IsReasoningSummary && !IsReasoningText || !IsReasoningEncrypted && !IsReasoningSummary && IsReasoningText; + return IsReasoningEncrypted && !IsReasoningServerToolCall && !IsReasoningSummary && !IsReasoningText || !IsReasoningEncrypted && IsReasoningServerToolCall && !IsReasoningSummary && !IsReasoningText || !IsReasoningEncrypted && !IsReasoningServerToolCall && IsReasoningSummary && !IsReasoningText || !IsReasoningEncrypted && !IsReasoningServerToolCall && !IsReasoningSummary && IsReasoningText; } /// @@ -241,8 +305,9 @@ public bool Validate() /// public TResult? Match( global::System.Func? reasoningEncrypted = null, - global::System.Func? reasoningSummary = null, - global::System.Func? reasoningText = null, + global::System.Func? reasoningServerToolCall = null, + global::System.Func? reasoningSummary = null, + global::System.Func? reasoningText = null, bool validate = true) { if (validate) @@ -254,6 +319,10 @@ public bool Validate() { return reasoningEncrypted(ReasoningEncrypted!); } + else if (IsReasoningServerToolCall && reasoningServerToolCall != null) + { + return reasoningServerToolCall(ReasoningServerToolCall!); + } else if (IsReasoningSummary && reasoningSummary != null) { return reasoningSummary(ReasoningSummary!); @@ -272,9 +341,11 @@ public bool Validate() public void Match( global::System.Action? reasoningEncrypted = null, - global::System.Action? reasoningSummary = null, + global::System.Action? reasoningServerToolCall = null, - global::System.Action? reasoningText = null, + global::System.Action? reasoningSummary = null, + + global::System.Action? reasoningText = null, bool validate = true) { if (validate) @@ -286,6 +357,10 @@ public void Match( { reasoningEncrypted?.Invoke(ReasoningEncrypted!); } + else if (IsReasoningServerToolCall) + { + reasoningServerToolCall?.Invoke(ReasoningServerToolCall!); + } else if (IsReasoningSummary) { reasoningSummary?.Invoke(ReasoningSummary!); @@ -301,8 +376,9 @@ public void Match( /// public void Switch( global::System.Action? reasoningEncrypted = null, - global::System.Action? reasoningSummary = null, - global::System.Action? reasoningText = null, + global::System.Action? reasoningServerToolCall = null, + global::System.Action? reasoningSummary = null, + global::System.Action? reasoningText = null, bool validate = true) { if (validate) @@ -314,6 +390,10 @@ public void Switch( { reasoningEncrypted?.Invoke(ReasoningEncrypted!); } + else if (IsReasoningServerToolCall) + { + reasoningServerToolCall?.Invoke(ReasoningServerToolCall!); + } else if (IsReasoningSummary) { reasoningSummary?.Invoke(ReasoningSummary!); @@ -333,10 +413,12 @@ public override int GetHashCode() { ReasoningEncrypted, typeof(global::OpenRouter.ReasoningDetailUnionVariant1), - ReasoningSummary, + ReasoningServerToolCall, typeof(global::OpenRouter.ReasoningDetailUnionVariant2), - ReasoningText, + ReasoningSummary, typeof(global::OpenRouter.ReasoningDetailUnionVariant3), + ReasoningText, + typeof(global::OpenRouter.ReasoningDetailUnionVariant4), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -354,8 +436,9 @@ public bool Equals(ReasoningDetailUnion other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningEncrypted, other.ReasoningEncrypted) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummary, other.ReasoningSummary) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningText, other.ReasoningText) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningServerToolCall, other.ReasoningServerToolCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningSummary, other.ReasoningSummary) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReasoningText, other.ReasoningText) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionDiscriminatorType.g.cs index a95d9d6c..8f5fd945 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionDiscriminatorType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionDiscriminatorType.g.cs @@ -15,6 +15,10 @@ public enum ReasoningDetailUnionDiscriminatorType /// /// /// + ReasoningServerToolCall, + /// + /// + /// ReasoningSummary, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this ReasoningDetailUnionDiscriminatorType va return value switch { ReasoningDetailUnionDiscriminatorType.ReasoningEncrypted => "reasoning.encrypted", + ReasoningDetailUnionDiscriminatorType.ReasoningServerToolCall => "reasoning.server_tool_call", ReasoningDetailUnionDiscriminatorType.ReasoningSummary => "reasoning.summary", ReasoningDetailUnionDiscriminatorType.ReasoningText => "reasoning.text", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this ReasoningDetailUnionDiscriminatorType va return value switch { "reasoning.encrypted" => ReasoningDetailUnionDiscriminatorType.ReasoningEncrypted, + "reasoning.server_tool_call" => ReasoningDetailUnionDiscriminatorType.ReasoningServerToolCall, "reasoning.summary" => ReasoningDetailUnionDiscriminatorType.ReasoningSummary, "reasoning.text" => ReasoningDetailUnionDiscriminatorType.ReasoningText, _ => null, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2.g.cs index aba13f0d..f87d7079 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2.g.cs @@ -4,17 +4,24 @@ namespace OpenRouter { /// - /// Reasoning detail summary schema + /// Record of an OpenRouter server-tool invocation (e.g. openrouter:fusion), carried in reasoning_details so a prior tool call can be rehydrated into a later turn of the same conversation. /// public sealed partial class ReasoningDetailUnionVariant2 { /// - /// Discriminator value: reasoning.summary + /// Discriminator value: reasoning.server_tool_call /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant2TypeJsonConverter))] public global::OpenRouter.ReasoningDetailUnionVariant2Type Type { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Arguments { get; set; } + /// /// /// @@ -37,9 +44,22 @@ public sealed partial class ReasoningDetailUnionVariant2 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Result { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + public string? ToolCallId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_name")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Summary { get; set; } + public required string ToolName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,28 +70,37 @@ public sealed partial class ReasoningDetailUnionVariant2 /// /// Initializes a new instance of the class. /// - /// + /// + /// + /// /// - /// Discriminator value: reasoning.summary + /// Discriminator value: reasoning.server_tool_call /// /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReasoningDetailUnionVariant2( - string summary, + string arguments, + string result, + string toolName, global::OpenRouter.ReasoningDetailUnionVariant2Type type, global::OpenRouter.ReasoningFormat? format, string? id, - int? index) + int? index, + string? toolCallId) { this.Type = type; + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); this.Format = format; this.Id = id; this.Index = index; - this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); + this.ToolCallId = toolCallId; + this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2Type.g.cs index 44d8a8d7..6a4ad7f2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant2Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: reasoning.summary + /// Discriminator value: reasoning.server_tool_call /// public enum ReasoningDetailUnionVariant2Type { /// - /// reasoning.summary + /// reasoning.server_tool_call /// - ReasoningSummary, + ReasoningServerToolCall, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ReasoningDetailUnionVariant2Type value) { return value switch { - ReasoningDetailUnionVariant2Type.ReasoningSummary => "reasoning.summary", + ReasoningDetailUnionVariant2Type.ReasoningServerToolCall => "reasoning.server_tool_call", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ReasoningDetailUnionVariant2Type value) { return value switch { - "reasoning.summary" => ReasoningDetailUnionVariant2Type.ReasoningSummary, + "reasoning.server_tool_call" => ReasoningDetailUnionVariant2Type.ReasoningServerToolCall, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3.g.cs index 2d68e1e6..010f9335 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// Reasoning detail text schema + /// Reasoning detail summary schema /// public sealed partial class ReasoningDetailUnionVariant3 { /// - /// Discriminator value: reasoning.text + /// Discriminator value: reasoning.summary /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant3TypeJsonConverter))] @@ -37,14 +37,9 @@ public sealed partial class ReasoningDetailUnionVariant3 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public string? Signature { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Summary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,31 +50,28 @@ public sealed partial class ReasoningDetailUnionVariant3 /// /// Initializes a new instance of the class. /// + /// /// - /// Discriminator value: reasoning.text + /// Discriminator value: reasoning.summary /// /// /// /// - /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReasoningDetailUnionVariant3( + string summary, global::OpenRouter.ReasoningDetailUnionVariant3Type type, global::OpenRouter.ReasoningFormat? format, string? id, - int? index, - string? signature, - string? text) + int? index) { this.Type = type; this.Format = format; this.Id = id; this.Index = index; - this.Signature = signature; - this.Text = text; + this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3Type.g.cs index 9bd19a23..e1818252 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3Type.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant3Type.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: reasoning.text + /// Discriminator value: reasoning.summary /// public enum ReasoningDetailUnionVariant3Type { /// - /// reasoning.text + /// reasoning.summary /// - ReasoningText, + ReasoningSummary, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ReasoningDetailUnionVariant3Type value) { return value switch { - ReasoningDetailUnionVariant3Type.ReasoningText => "reasoning.text", + ReasoningDetailUnionVariant3Type.ReasoningSummary => "reasoning.summary", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ReasoningDetailUnionVariant3Type value) { return value switch { - "reasoning.text" => ReasoningDetailUnionVariant3Type.ReasoningText, + "reasoning.summary" => ReasoningDetailUnionVariant3Type.ReasoningSummary, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.Json.g.cs new file mode 100644 index 00000000..6572bc99 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ReasoningDetailUnionVariant4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ReasoningDetailUnionVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ReasoningDetailUnionVariant4), + jsonSerializerContext) as global::OpenRouter.ReasoningDetailUnionVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ReasoningDetailUnionVariant4? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ReasoningDetailUnionVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ReasoningDetailUnionVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ReasoningDetailUnionVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.g.cs new file mode 100644 index 00000000..91008a63 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Reasoning detail text schema + /// + public sealed partial class ReasoningDetailUnionVariant4 + { + /// + /// Discriminator value: reasoning.text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningDetailUnionVariant4TypeJsonConverter))] + public global::OpenRouter.ReasoningDetailUnionVariant4Type Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ReasoningFormatJsonConverter))] + public global::OpenRouter.ReasoningFormat? Format { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + public int? Index { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public string? Signature { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { 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. + /// + /// + /// Discriminator value: reasoning.text + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ReasoningDetailUnionVariant4( + global::OpenRouter.ReasoningDetailUnionVariant4Type type, + global::OpenRouter.ReasoningFormat? format, + string? id, + int? index, + string? signature, + string? text) + { + this.Type = type; + this.Format = format; + this.Id = id; + this.Index = index; + this.Signature = signature; + this.Text = text; + } + + /// + /// Initializes a new instance of the class. + /// + public ReasoningDetailUnionVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4Type.g.cs new file mode 100644 index 00000000..0f607ca2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningDetailUnionVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: reasoning.text + /// + public enum ReasoningDetailUnionVariant4Type + { + /// + /// reasoning.text + /// + ReasoningText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ReasoningDetailUnionVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ReasoningDetailUnionVariant4Type value) + { + return value switch + { + ReasoningDetailUnionVariant4Type.ReasoningText => "reasoning.text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ReasoningDetailUnionVariant4Type? ToEnum(string value) + { + return value switch + { + "reasoning.text" => ReasoningDetailUnionVariant4Type.ReasoningText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningFormat.g.cs index 64a0328d..e28b3e73 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningFormat.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningFormat.g.cs @@ -23,6 +23,10 @@ public enum ReasoningFormat /// /// /// + MetaResponsesV1, + /// + /// + /// OpenaiResponsesV1, /// /// @@ -49,6 +53,7 @@ public static string ToValueString(this ReasoningFormat value) ReasoningFormat.AnthropicClaudeV1 => "anthropic-claude-v1", ReasoningFormat.AzureOpenaiResponsesV1 => "azure-openai-responses-v1", ReasoningFormat.GoogleGeminiV1 => "google-gemini-v1", + ReasoningFormat.MetaResponsesV1 => "meta-responses-v1", ReasoningFormat.OpenaiResponsesV1 => "openai-responses-v1", ReasoningFormat.Unknown => "unknown", ReasoningFormat.XaiResponsesV1 => "xai-responses-v1", @@ -65,6 +70,7 @@ public static string ToValueString(this ReasoningFormat value) "anthropic-claude-v1" => ReasoningFormat.AnthropicClaudeV1, "azure-openai-responses-v1" => ReasoningFormat.AzureOpenaiResponsesV1, "google-gemini-v1" => ReasoningFormat.GoogleGeminiV1, + "meta-responses-v1" => ReasoningFormat.MetaResponsesV1, "openai-responses-v1" => ReasoningFormat.OpenaiResponsesV1, "unknown" => ReasoningFormat.Unknown, "xai-responses-v1" => ReasoningFormat.XaiResponsesV1, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningMode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningMode.g.cs new file mode 100644 index 00000000..215c5f6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ReasoningMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer. + /// + public enum ReasoningMode + { + /// + /// + /// + Pro, + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ReasoningModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ReasoningMode value) + { + return value switch + { + ReasoningMode.Pro => "pro", + ReasoningMode.Standard => "standard", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ReasoningMode? ToEnum(string value) + { + return value switch + { + "pro" => ReasoningMode.Pro, + "standard" => ReasoningMode.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProvider.g.cs index 876a99e8..1d50fe5a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProvider.g.cs @@ -22,8 +22,8 @@ public sealed partial class RerankPostRequestBodyContentApplicationJsonSchemaPro /// - deny: use only providers which do not collect user data. /// [global::System.Text.Json.Serialization.JsonPropertyName("data_collection")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? DataCollection { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionJsonConverter))] + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? DataCollection { get; set; } /// /// Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used. @@ -85,8 +85,8 @@ public sealed partial class RerankPostRequestBodyContentApplicationJsonSchemaPro /// The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed. /// [global::System.Text.Json.Serialization.JsonPropertyName("sort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortJsonConverter))] - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Sort { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Sort { get; set; } /// /// Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. @@ -151,7 +151,7 @@ public sealed partial class RerankPostRequestBodyContentApplicationJsonSchemaPro #endif public RerankPostRequestBodyContentApplicationJsonSchemaProvider( bool? allowFallbacks, - global::OpenRouter.OneOf? dataCollection, + global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? dataCollection, bool? enforceDistillableText, global::System.Collections.Generic.IList? ignore, global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? maxPrice, @@ -161,7 +161,7 @@ public RerankPostRequestBodyContentApplicationJsonSchemaProvider( global::OpenRouter.PreferredMinThroughput? preferredMinThroughput, global::System.Collections.Generic.IList? quantizations, bool? requireParameters, - global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? sort, + global::OpenRouter.OneOf? sort, bool? zdr) { this.AllowFallbacks = allowFallbacks; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs index 703b26a6..3b7cfa7e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort.g.cs @@ -82,43 +82,6 @@ public bool TryPickProviderSortConfig( public global::OpenRouter.ProviderSortConfig PickProviderSortConfig() => IsProviderSortConfig ? ProviderSortConfig! : throw new global::System.InvalidOperationException($"Expected union variant 'ProviderSortConfig' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 { get; init; } -#else - public object? RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3))] -#endif - public bool IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 => RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 != null; - - /// - /// - /// - public bool TryPickRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - return IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// - /// - public object PickRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3() => IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - ? RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3! - : throw new global::System.InvalidOperationException($"Expected union variant 'RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3' but the value was {ToString()}."); /// /// /// @@ -170,20 +133,17 @@ public RerankPostRequestBodyContentApplicationJsonSchemaProviderSort(global::Ope /// public RerankPostRequestBodyContentApplicationJsonSchemaProviderSort( global::OpenRouter.ProviderSort? providerSort, - global::OpenRouter.ProviderSortConfig? providerSortConfig, - object? rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 + global::OpenRouter.ProviderSortConfig? providerSortConfig ) { ProviderSort = providerSort; ProviderSortConfig = providerSortConfig; - RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; } /// /// /// public object? Object => - RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 as object ?? ProviderSortConfig as object ?? ProviderSort as object ; @@ -193,8 +153,7 @@ ProviderSort as object /// public override string? ToString() => ProviderSort?.ToValueString() ?? - ProviderSortConfig?.ToString() ?? - RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.ToString() + ProviderSortConfig?.ToString() ; /// @@ -202,7 +161,7 @@ ProviderSort as object /// public bool Validate() { - return IsProviderSort && !IsProviderSortConfig && !IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 || !IsProviderSort && IsProviderSortConfig && !IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 || !IsProviderSort && !IsProviderSortConfig && IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; + return IsProviderSort && !IsProviderSortConfig || !IsProviderSort && IsProviderSortConfig; } /// @@ -211,7 +170,6 @@ public bool Validate() public TResult? Match( global::System.Func? providerSort = null, global::System.Func? providerSortConfig = null, - global::System.Func? rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -227,10 +185,6 @@ public bool Validate() { return providerSortConfig(ProviderSortConfig!); } - else if (IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 && rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 != null) - { - return rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3(RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } return default(TResult); } @@ -242,8 +196,6 @@ public void Match( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - - global::System.Action? rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -259,10 +211,6 @@ public void Match( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.Invoke(RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } } /// @@ -271,7 +219,6 @@ public void Match( public void Switch( global::System.Action? providerSort = null, global::System.Action? providerSortConfig = null, - global::System.Action? rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 = null, bool validate = true) { if (validate) @@ -287,10 +234,6 @@ public void Switch( { providerSortConfig?.Invoke(ProviderSortConfig!); } - else if (IsRerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) - { - rerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3?.Invoke(RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3!); - } } /// @@ -304,8 +247,6 @@ public override int GetHashCode() typeof(global::OpenRouter.ProviderSort), ProviderSortConfig, typeof(global::OpenRouter.ProviderSortConfig), - RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3, - typeof(object), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -323,8 +264,7 @@ public bool Equals(RerankPostRequestBodyContentApplicationJsonSchemaProviderSort { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSort, other.ProviderSort) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3, other.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ProviderSortConfig, other.ProviderSortConfig) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs deleted file mode 100644 index 75702545..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3), - jsonSerializerContext) as global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs deleted file mode 100644 index 9c1c135b..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class RerankPostRequestBodyContentApplicationJsonSchemaProviderSortVariant3 - { - - /// - /// 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.ResponsesErrorFieldCode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesErrorFieldCode.g.cs index 35dde7fe..2fda1868 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesErrorFieldCode.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesErrorFieldCode.g.cs @@ -8,6 +8,10 @@ namespace OpenRouter /// public enum ResponsesErrorFieldCode { + /// + /// + /// + BioPolicy, /// /// /// @@ -94,6 +98,7 @@ public static string ToValueString(this ResponsesErrorFieldCode value) { return value switch { + ResponsesErrorFieldCode.BioPolicy => "bio_policy", ResponsesErrorFieldCode.EmptyImageFile => "empty_image_file", ResponsesErrorFieldCode.FailedToDownloadImage => "failed_to_download_image", ResponsesErrorFieldCode.ImageContentPolicyViolation => "image_content_policy_violation", @@ -122,6 +127,7 @@ public static string ToValueString(this ResponsesErrorFieldCode value) { return value switch { + "bio_policy" => ResponsesErrorFieldCode.BioPolicy, "empty_image_file" => ResponsesErrorFieldCode.EmptyImageFile, "failed_to_download_image" => ResponsesErrorFieldCode.FailedToDownloadImage, "image_content_policy_violation" => ResponsesErrorFieldCode.ImageContentPolicyViolation, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs index c24b41dc..9d280872 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs @@ -15,7 +15,7 @@ public sealed partial class ResponsesRequest public bool? Background { get; set; } /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } @@ -113,10 +113,10 @@ public sealed partial class ResponsesRequest public double? PresencePenalty { get; set; } /// - /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. /// [global::System.Text.Json.Serialization.JsonPropertyName("previous_response_id")] - public string? PreviousResponseId { get; set; } + public object? PreviousResponseId { get; set; } /// /// @@ -130,6 +130,12 @@ public sealed partial class ResponsesRequest [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_key")] public string? PromptCacheKey { get; set; } + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cache_options")] + public global::OpenRouter.PromptCacheOptions? PromptCacheOptions { get; set; } + /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -155,11 +161,11 @@ public sealed partial class ResponsesRequest public string? SafetyIdentifier { get; set; } /// - /// + /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("service_tier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestServiceTierJsonConverter))] + public global::OpenRouter.ResponsesRequestServiceTier? ServiceTier { get; set; } /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. @@ -258,7 +264,7 @@ public sealed partial class ResponsesRequest /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -285,9 +291,14 @@ public sealed partial class ResponsesRequest /// Plugins you want to enable for this request, including their settings. /// /// - /// + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -298,7 +309,9 @@ public sealed partial class ResponsesRequest /// Any type /// /// - /// + /// + /// Default Value: auto + /// /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. /// @@ -346,14 +359,15 @@ public ResponsesRequest( bool? parallelToolCalls, global::System.Collections.Generic.IList? plugins, double? presencePenalty, - string? previousResponseId, + object? previousResponseId, global::OpenRouter.StoredPromptTemplate? prompt, string? promptCacheKey, + global::OpenRouter.PromptCacheOptions? promptCacheOptions, global::OpenRouter.ProviderPreferences? provider, global::OpenRouter.ReasoningConfig? reasoning, object? route, string? safetyIdentifier, - global::OpenRouter.OneOf? serviceTier, + global::OpenRouter.ResponsesRequestServiceTier? serviceTier, string? sessionId, global::System.Collections.Generic.IList? stopServerToolsWhen, bool? store, @@ -389,6 +403,7 @@ public ResponsesRequest( this.PreviousResponseId = previousResponseId; this.Prompt = prompt; this.PromptCacheKey = promptCacheKey; + this.PromptCacheOptions = promptCacheOptions; this.Provider = provider; this.Reasoning = reasoning; this.Route = route; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItems.g.cs index b90b4f84..dc56199c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItems.g.cs @@ -14,13 +14,50 @@ namespace OpenRouter /// public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Id { get; } + /// + /// auto-beta-router variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? AutoBetaRouter { get; init; } +#else + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? AutoBetaRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AutoBetaRouter))] +#endif + public bool IsAutoBetaRouter => AutoBetaRouter != null; + + /// + /// + /// + public bool TryPickAutoBetaRouter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ResponsesRequestPluginsItemsVariant1? value) + { + value = AutoBetaRouter; + return IsAutoBetaRouter; + } + + /// + /// + /// + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1 PickAutoBetaRouter() => IsAutoBetaRouter + ? AutoBetaRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'AutoBetaRouter' but the value was {ToString()}."); + /// /// auto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? AutoRouter { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? AutoRouter { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? AutoRouter { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? AutoRouter { get; } #endif /// @@ -38,7 +75,7 @@ public bool TryPickAutoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant1? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant2? value) { value = AutoRouter; return IsAutoRouter; @@ -47,7 +84,7 @@ public bool TryPickAutoRouter( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1 PickAutoRouter() => IsAutoRouter + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2 PickAutoRouter() => IsAutoRouter ? AutoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'AutoRouter' but the value was {ToString()}."); @@ -55,9 +92,9 @@ public bool TryPickAutoRouter( /// context-compression variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? ContextCompression { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? ContextCompression { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? ContextCompression { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? ContextCompression { get; } #endif /// @@ -75,7 +112,7 @@ public bool TryPickContextCompression( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant2? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant3? value) { value = ContextCompression; return IsContextCompression; @@ -84,7 +121,7 @@ public bool TryPickContextCompression( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2 PickContextCompression() => IsContextCompression + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3 PickContextCompression() => IsContextCompression ? ContextCompression! : throw new global::System.InvalidOperationException($"Expected union variant 'ContextCompression' but the value was {ToString()}."); @@ -92,9 +129,9 @@ public bool TryPickContextCompression( /// file-parser variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? FileParser { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? FileParser { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? FileParser { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? FileParser { get; } #endif /// @@ -112,7 +149,7 @@ public bool TryPickFileParser( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant3? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant4? value) { value = FileParser; return IsFileParser; @@ -121,7 +158,7 @@ public bool TryPickFileParser( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3 PickFileParser() => IsFileParser + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4 PickFileParser() => IsFileParser ? FileParser! : throw new global::System.InvalidOperationException($"Expected union variant 'FileParser' but the value was {ToString()}."); @@ -129,9 +166,9 @@ public bool TryPickFileParser( /// fusion variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Fusion { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Fusion { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Fusion { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Fusion { get; } #endif /// @@ -149,7 +186,7 @@ public bool TryPickFusion( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant4? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant5? value) { value = Fusion; return IsFusion; @@ -158,7 +195,7 @@ public bool TryPickFusion( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4 PickFusion() => IsFusion + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5 PickFusion() => IsFusion ? Fusion! : throw new global::System.InvalidOperationException($"Expected union variant 'Fusion' but the value was {ToString()}."); @@ -166,9 +203,9 @@ public bool TryPickFusion( /// moderation variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Moderation { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Moderation { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Moderation { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Moderation { get; } #endif /// @@ -186,7 +223,7 @@ public bool TryPickModeration( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant5? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant6? value) { value = Moderation; return IsModeration; @@ -195,7 +232,7 @@ public bool TryPickModeration( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5 PickModeration() => IsModeration + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6 PickModeration() => IsModeration ? Moderation! : throw new global::System.InvalidOperationException($"Expected union variant 'Moderation' but the value was {ToString()}."); @@ -203,9 +240,9 @@ public bool TryPickModeration( /// pareto-router variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? ParetoRouter { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? ParetoRouter { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? ParetoRouter { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? ParetoRouter { get; } #endif /// @@ -223,7 +260,7 @@ public bool TryPickParetoRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant6? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant7? value) { value = ParetoRouter; return IsParetoRouter; @@ -232,7 +269,7 @@ public bool TryPickParetoRouter( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6 PickParetoRouter() => IsParetoRouter + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7 PickParetoRouter() => IsParetoRouter ? ParetoRouter! : throw new global::System.InvalidOperationException($"Expected union variant 'ParetoRouter' but the value was {ToString()}."); @@ -240,9 +277,9 @@ public bool TryPickParetoRouter( /// response-healing variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? ResponseHealing { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? ResponseHealing { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? ResponseHealing { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? ResponseHealing { get; } #endif /// @@ -260,7 +297,7 @@ public bool TryPickResponseHealing( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant7? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant8? value) { value = ResponseHealing; return IsResponseHealing; @@ -269,7 +306,7 @@ public bool TryPickResponseHealing( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7 PickResponseHealing() => IsResponseHealing + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8 PickResponseHealing() => IsResponseHealing ? ResponseHealing! : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseHealing' but the value was {ToString()}."); @@ -277,9 +314,9 @@ public bool TryPickResponseHealing( /// web variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Web { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Web { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Web { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Web { get; } #endif /// @@ -297,7 +334,7 @@ public bool TryPickWeb( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant8? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant9? value) { value = Web; return IsWeb; @@ -306,7 +343,7 @@ public bool TryPickWeb( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8 PickWeb() => IsWeb + public global::OpenRouter.ResponsesRequestPluginsItemsVariant9 PickWeb() => IsWeb ? Web! : throw new global::System.InvalidOperationException($"Expected union variant 'Web' but the value was {ToString()}."); @@ -314,9 +351,9 @@ public bool TryPickWeb( /// web-fetch variant /// #if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? WebFetch { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant10? WebFetch { get; init; } #else - public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? WebFetch { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant10? WebFetch { get; } #endif /// @@ -334,7 +371,7 @@ public bool TryPickWebFetch( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ResponsesRequestPluginsItemsVariant9? value) + out global::OpenRouter.ResponsesRequestPluginsItemsVariant10? value) { value = WebFetch; return IsWebFetch; @@ -343,7 +380,7 @@ public bool TryPickWebFetch( /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant9 PickWebFetch() => IsWebFetch + public global::OpenRouter.ResponsesRequestPluginsItemsVariant10 PickWebFetch() => IsWebFetch ? WebFetch! : throw new global::System.InvalidOperationException($"Expected union variant 'WebFetch' but the value was {ToString()}."); /// @@ -354,20 +391,20 @@ public bool TryPickWebFetch( /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant1?(ResponsesRequestPluginsItems @this) => @this.AutoRouter; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant1?(ResponsesRequestPluginsItems @this) => @this.AutoBetaRouter; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant1? value) { - AutoRouter = value; + AutoBetaRouter = value; } /// /// /// - public static ResponsesRequestPluginsItems FromAutoRouter(global::OpenRouter.ResponsesRequestPluginsItemsVariant1? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromAutoBetaRouter(global::OpenRouter.ResponsesRequestPluginsItemsVariant1? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -377,20 +414,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant2?(ResponsesRequestPluginsItems @this) => @this.ContextCompression; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant2?(ResponsesRequestPluginsItems @this) => @this.AutoRouter; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant2? value) { - ContextCompression = value; + AutoRouter = value; } /// /// /// - public static ResponsesRequestPluginsItems FromContextCompression(global::OpenRouter.ResponsesRequestPluginsItemsVariant2? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromAutoRouter(global::OpenRouter.ResponsesRequestPluginsItemsVariant2? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -400,20 +437,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant3?(ResponsesRequestPluginsItems @this) => @this.FileParser; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant3?(ResponsesRequestPluginsItems @this) => @this.ContextCompression; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant3? value) { - FileParser = value; + ContextCompression = value; } /// /// /// - public static ResponsesRequestPluginsItems FromFileParser(global::OpenRouter.ResponsesRequestPluginsItemsVariant3? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromContextCompression(global::OpenRouter.ResponsesRequestPluginsItemsVariant3? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -423,20 +460,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant4?(ResponsesRequestPluginsItems @this) => @this.Fusion; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant4?(ResponsesRequestPluginsItems @this) => @this.FileParser; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant4? value) { - Fusion = value; + FileParser = value; } /// /// /// - public static ResponsesRequestPluginsItems FromFusion(global::OpenRouter.ResponsesRequestPluginsItemsVariant4? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromFileParser(global::OpenRouter.ResponsesRequestPluginsItemsVariant4? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -446,20 +483,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant5?(ResponsesRequestPluginsItems @this) => @this.Moderation; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant5?(ResponsesRequestPluginsItems @this) => @this.Fusion; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant5? value) { - Moderation = value; + Fusion = value; } /// /// /// - public static ResponsesRequestPluginsItems FromModeration(global::OpenRouter.ResponsesRequestPluginsItemsVariant5? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromFusion(global::OpenRouter.ResponsesRequestPluginsItemsVariant5? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -469,20 +506,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant6?(ResponsesRequestPluginsItems @this) => @this.ParetoRouter; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant6?(ResponsesRequestPluginsItems @this) => @this.Moderation; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant6? value) { - ParetoRouter = value; + Moderation = value; } /// /// /// - public static ResponsesRequestPluginsItems FromParetoRouter(global::OpenRouter.ResponsesRequestPluginsItemsVariant6? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromModeration(global::OpenRouter.ResponsesRequestPluginsItemsVariant6? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -492,20 +529,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant7?(ResponsesRequestPluginsItems @this) => @this.ResponseHealing; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant7?(ResponsesRequestPluginsItems @this) => @this.ParetoRouter; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant7? value) { - ResponseHealing = value; + ParetoRouter = value; } /// /// /// - public static ResponsesRequestPluginsItems FromResponseHealing(global::OpenRouter.ResponsesRequestPluginsItemsVariant7? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromParetoRouter(global::OpenRouter.ResponsesRequestPluginsItemsVariant7? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -515,20 +552,20 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant8?(ResponsesRequestPluginsItems @this) => @this.Web; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant8?(ResponsesRequestPluginsItems @this) => @this.ResponseHealing; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant8? value) { - Web = value; + ResponseHealing = value; } /// /// /// - public static ResponsesRequestPluginsItems FromWeb(global::OpenRouter.ResponsesRequestPluginsItemsVariant8? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromResponseHealing(global::OpenRouter.ResponsesRequestPluginsItemsVariant8? value) => new ResponsesRequestPluginsItems(value); /// /// @@ -538,12 +575,35 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant9?(ResponsesRequestPluginsItems @this) => @this.WebFetch; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant9?(ResponsesRequestPluginsItems @this) => @this.Web; /// /// /// public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant9? value) + { + Web = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItems FromWeb(global::OpenRouter.ResponsesRequestPluginsItemsVariant9? value) => new ResponsesRequestPluginsItems(value); + + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant10 value) => new ResponsesRequestPluginsItems((global::OpenRouter.ResponsesRequestPluginsItemsVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsVariant10?(ResponsesRequestPluginsItems @this) => @this.WebFetch; + + /// + /// + /// + public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsItemsVariant10? value) { WebFetch = value; } @@ -551,26 +611,28 @@ public ResponsesRequestPluginsItems(global::OpenRouter.ResponsesRequestPluginsIt /// /// /// - public static ResponsesRequestPluginsItems FromWebFetch(global::OpenRouter.ResponsesRequestPluginsItemsVariant9? value) => new ResponsesRequestPluginsItems(value); + public static ResponsesRequestPluginsItems FromWebFetch(global::OpenRouter.ResponsesRequestPluginsItemsVariant10? value) => new ResponsesRequestPluginsItems(value); /// /// /// public ResponsesRequestPluginsItems( global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? id, - global::OpenRouter.ResponsesRequestPluginsItemsVariant1? autoRouter, - global::OpenRouter.ResponsesRequestPluginsItemsVariant2? contextCompression, - global::OpenRouter.ResponsesRequestPluginsItemsVariant3? fileParser, - global::OpenRouter.ResponsesRequestPluginsItemsVariant4? fusion, - global::OpenRouter.ResponsesRequestPluginsItemsVariant5? moderation, - global::OpenRouter.ResponsesRequestPluginsItemsVariant6? paretoRouter, - global::OpenRouter.ResponsesRequestPluginsItemsVariant7? responseHealing, - global::OpenRouter.ResponsesRequestPluginsItemsVariant8? web, - global::OpenRouter.ResponsesRequestPluginsItemsVariant9? webFetch + global::OpenRouter.ResponsesRequestPluginsItemsVariant1? autoBetaRouter, + global::OpenRouter.ResponsesRequestPluginsItemsVariant2? autoRouter, + global::OpenRouter.ResponsesRequestPluginsItemsVariant3? contextCompression, + global::OpenRouter.ResponsesRequestPluginsItemsVariant4? fileParser, + global::OpenRouter.ResponsesRequestPluginsItemsVariant5? fusion, + global::OpenRouter.ResponsesRequestPluginsItemsVariant6? moderation, + global::OpenRouter.ResponsesRequestPluginsItemsVariant7? paretoRouter, + global::OpenRouter.ResponsesRequestPluginsItemsVariant8? responseHealing, + global::OpenRouter.ResponsesRequestPluginsItemsVariant9? web, + global::OpenRouter.ResponsesRequestPluginsItemsVariant10? webFetch ) { Id = id; + AutoBetaRouter = autoBetaRouter; AutoRouter = autoRouter; ContextCompression = contextCompression; FileParser = fileParser; @@ -594,13 +656,15 @@ Moderation as object ?? Fusion as object ?? FileParser as object ?? ContextCompression as object ?? - AutoRouter as object + AutoRouter as object ?? + AutoBetaRouter as object ; /// /// /// public override string? ToString() => + AutoBetaRouter?.ToString() ?? AutoRouter?.ToString() ?? ContextCompression?.ToString() ?? FileParser?.ToString() ?? @@ -617,22 +681,23 @@ AutoRouter as object /// public bool Validate() { - return IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; + return IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && IsParetoRouter && !IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && IsResponseHealing && !IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && IsWeb && !IsWebFetch || !IsAutoBetaRouter && !IsAutoRouter && !IsContextCompression && !IsFileParser && !IsFusion && !IsModeration && !IsParetoRouter && !IsResponseHealing && !IsWeb && IsWebFetch; } /// /// /// public TResult? Match( - global::System.Func? autoRouter = null, - global::System.Func? contextCompression = null, - global::System.Func? fileParser = null, - global::System.Func? fusion = null, - global::System.Func? moderation = null, - global::System.Func? paretoRouter = null, - global::System.Func? responseHealing = null, - global::System.Func? web = null, - global::System.Func? webFetch = null, + global::System.Func? autoBetaRouter = null, + global::System.Func? autoRouter = null, + global::System.Func? contextCompression = null, + global::System.Func? fileParser = null, + global::System.Func? fusion = null, + global::System.Func? moderation = null, + global::System.Func? paretoRouter = null, + global::System.Func? responseHealing = null, + global::System.Func? web = null, + global::System.Func? webFetch = null, bool validate = true) { if (validate) @@ -640,7 +705,11 @@ public bool Validate() Validate(); } - if (IsAutoRouter && autoRouter != null) + if (IsAutoBetaRouter && autoBetaRouter != null) + { + return autoBetaRouter(AutoBetaRouter!); + } + else if (IsAutoRouter && autoRouter != null) { return autoRouter(AutoRouter!); } @@ -684,23 +753,25 @@ public bool Validate() /// /// public void Match( - global::System.Action? autoRouter = null, + global::System.Action? autoBetaRouter = null, - global::System.Action? contextCompression = null, + global::System.Action? autoRouter = null, - global::System.Action? fileParser = null, + global::System.Action? contextCompression = null, - global::System.Action? fusion = null, + global::System.Action? fileParser = null, - global::System.Action? moderation = null, + global::System.Action? fusion = null, - global::System.Action? paretoRouter = null, + global::System.Action? moderation = null, - global::System.Action? responseHealing = null, + global::System.Action? paretoRouter = null, - global::System.Action? web = null, + global::System.Action? responseHealing = null, - global::System.Action? webFetch = null, + global::System.Action? web = null, + + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -708,7 +779,11 @@ public void Match( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -750,15 +825,16 @@ public void Match( /// /// public void Switch( - global::System.Action? autoRouter = null, - global::System.Action? contextCompression = null, - global::System.Action? fileParser = null, - global::System.Action? fusion = null, - global::System.Action? moderation = null, - global::System.Action? paretoRouter = null, - global::System.Action? responseHealing = null, - global::System.Action? web = null, - global::System.Action? webFetch = null, + global::System.Action? autoBetaRouter = null, + global::System.Action? autoRouter = null, + global::System.Action? contextCompression = null, + global::System.Action? fileParser = null, + global::System.Action? fusion = null, + global::System.Action? moderation = null, + global::System.Action? paretoRouter = null, + global::System.Action? responseHealing = null, + global::System.Action? web = null, + global::System.Action? webFetch = null, bool validate = true) { if (validate) @@ -766,7 +842,11 @@ public void Switch( Validate(); } - if (IsAutoRouter) + if (IsAutoBetaRouter) + { + autoBetaRouter?.Invoke(AutoBetaRouter!); + } + else if (IsAutoRouter) { autoRouter?.Invoke(AutoRouter!); } @@ -811,24 +891,26 @@ public override int GetHashCode() { var fields = new object?[] { - AutoRouter, + AutoBetaRouter, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant1), - ContextCompression, + AutoRouter, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant2), - FileParser, + ContextCompression, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant3), - Fusion, + FileParser, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant4), - Moderation, + Fusion, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant5), - ParetoRouter, + Moderation, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant6), - ResponseHealing, + ParetoRouter, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant7), - Web, + ResponseHealing, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant8), - WebFetch, + Web, typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant9), + WebFetch, + typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -845,15 +927,16 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ResponsesRequestPluginsItems other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoBetaRouter, other.AutoBetaRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoRouter, other.AutoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ContextCompression, other.ContextCompression) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileParser, other.FileParser) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Fusion, other.Fusion) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Moderation, other.Moderation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ParetoRouter, other.ParetoRouter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseHealing, other.ResponseHealing) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Web, other.Web) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetch, other.WebFetch) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorId.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorId.g.cs index 57dfb428..c46db597 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorId.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorId.g.cs @@ -8,6 +8,10 @@ namespace OpenRouter /// public enum ResponsesRequestPluginsItemsDiscriminatorId { + /// + /// + /// + AutoBetaRouter, /// /// /// @@ -58,6 +62,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsDiscriminato { return value switch { + ResponsesRequestPluginsItemsDiscriminatorId.AutoBetaRouter => "auto-beta-router", ResponsesRequestPluginsItemsDiscriminatorId.AutoRouter => "auto-router", ResponsesRequestPluginsItemsDiscriminatorId.ContextCompression => "context-compression", ResponsesRequestPluginsItemsDiscriminatorId.FileParser => "file-parser", @@ -77,6 +82,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsDiscriminato { return value switch { + "auto-beta-router" => ResponsesRequestPluginsItemsDiscriminatorId.AutoBetaRouter, "auto-router" => ResponsesRequestPluginsItemsDiscriminatorId.AutoRouter, "context-compression" => ResponsesRequestPluginsItemsDiscriminatorId.ContextCompression, "file-parser" => ResponsesRequestPluginsItemsDiscriminatorId.FileParser, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs index 110a2122..fe177031 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters.g.cs @@ -121,49 +121,49 @@ public bool PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3' but the value was {ToString()}."); /// - /// Any type + /// /// #if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 { get; init; } + public global::System.Collections.Generic.IList>? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 { get; init; } #else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 { get; } + public global::System.Collections.Generic.IList>? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3))] #endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 != null; + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 != null; /// /// /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4( + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out object? value) + out global::System.Collections.Generic.IList>? value) { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4; + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3; } /// /// /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4' but the value was {ToString()}."); + public global::System.Collections.Generic.IList> PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3! + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3' but the value was {ToString()}."); /// /// /// #if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 { get; init; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 { get; init; } #else - public global::System.Collections.Generic.IList? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 { get; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 { get; } #endif /// @@ -181,7 +181,7 @@ public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsIt #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::System.Collections.Generic.IList? value) + out global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? value) { value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; @@ -190,83 +190,9 @@ public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsIt /// /// /// - public global::System.Collections.Generic.IList PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4! : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 { get; init; } -#else - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; - } - - /// - /// - /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 { get; init; } -#else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; - } - - /// - /// - /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7' but the value was {ToString()}."); /// /// /// @@ -339,25 +265,25 @@ public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameter /// /// /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters((global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5?)value); + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters((global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?)value); /// /// /// - public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; + public static implicit operator global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; /// /// /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? value) + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? value) { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = value; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = value; } /// /// /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(value); + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters(value); /// /// @@ -366,29 +292,23 @@ public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameter string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1, double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2, bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4, - global::System.Collections.Generic.IList? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 + global::System.Collections.Generic.IList>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 ) { ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1; ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2; ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3; ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; } /// /// /// public object? Object => - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 as object ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 as object ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 as object ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 as object ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 as object ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 as object @@ -401,10 +321,8 @@ ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVarian ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1?.ToString() ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2?.ToString() ?? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3?.ToString().ToLowerInvariant() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7?.ToString() + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3?.ToString() ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?.ToString() ; /// @@ -412,7 +330,7 @@ ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVarian /// public bool Validate() { - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; } /// @@ -422,10 +340,8 @@ public bool Validate() global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 = null, global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 = null, global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = null, - global::System.Func, TResult>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = null, + global::System.Func>, TResult>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = null, + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, bool validate = true) { if (validate) @@ -445,22 +361,14 @@ public bool Validate() { return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 != null) + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 != null) { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4!); + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3!); } else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 != null) { return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7!); - } return default(TResult); } @@ -475,13 +383,9 @@ public void Match( global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = null, - - global::System.Action>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = null, + global::System.Action>>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, bool validate = true) { if (validate) @@ -501,22 +405,14 @@ public void Match( { responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4) + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3) { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4!); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3!); } else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4) { responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7!); - } } /// @@ -526,10 +422,8 @@ public void Switch( global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1 = null, global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2 = null, global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 = null, - global::System.Action>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 = null, + global::System.Action>>? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 = null, bool validate = true) { if (validate) @@ -549,22 +443,14 @@ public void Switch( { responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4) + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3) { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4!); + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3!); } else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4) { responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4!); } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7!); - } } /// @@ -580,14 +466,10 @@ public override int GetHashCode() typeof(double), ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3, typeof(bool), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4, - typeof(object), + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3, + typeof(global::System.Collections.Generic.IList>), ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4, - typeof(global::System.Collections.Generic.IList), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7, - typeof(object), + typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -607,10 +489,8 @@ public bool Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsIt global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant1) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant2) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7) + global::System.Collections.Generic.EqualityComparer>?>.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4) ; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.Json.g.cs new file mode 100644 index 00000000..9605c061 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.g.cs new file mode 100644 index 00000000..2c255a52 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4 + { + + /// + /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.Json.g.cs deleted file mode 100644 index 8fd8a347..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.g.cs deleted file mode 100644 index 6c78e5f8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.Json.g.cs new file mode 100644 index 00000000..6f1bc255 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs new file mode 100644 index 00000000..251ad56a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 { get; init; } +#else + public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1; + } + + /// + /// + /// + public string PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 { get; init; } +#else + public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2; + } + + /// + /// + /// + public double PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 { get; init; } +#else + public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out bool? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3; + } + + /// + /// + /// + public bool PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(string value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items((string?)value); + + /// + /// + /// + public static implicit operator string?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(string? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1(string? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(value); + + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(double value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items((double?)value); + + /// + /// + /// + public static implicit operator double?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(double? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2(double? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(value); + + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(bool value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items((bool?)value); + + /// + /// + /// + public static implicit operator bool?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(bool? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3(bool? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items(value); + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items( + string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1, + double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2, + bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 + ) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3; + } + + /// + /// + /// + public object? Object => + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 as object ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 as object ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1?.ToString() ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2?.ToString() ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3?.ToString().ToLowerInvariant() + ; + + /// + /// + /// + public bool Validate() + { + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = null, + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = null, + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = null, + + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = null, + + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1, + typeof(string), + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2, + typeof(double), + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3, + typeof(bool), + }; + 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(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3ItemsVariant3) + ; + } + + /// + /// + /// + public static bool operator ==(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.Json.g.cs new file mode 100644 index 00000000..085d0a72 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs new file mode 100644 index 00000000..33bc698f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 { get; init; } +#else + public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1; + } + + /// + /// + /// + public string PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 { get; init; } +#else + public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2; + } + + /// + /// + /// + public double PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 { get; init; } +#else + public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3))] +#endif + public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 != null; + + /// + /// + /// + public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out bool? value) + { + value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3; + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3; + } + + /// + /// + /// + public bool PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 + ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(string value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4((string?)value); + + /// + /// + /// + public static implicit operator string?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(string? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1(string? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(value); + + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(double value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4((double?)value); + + /// + /// + /// + public static implicit operator double?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(double? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2(double? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(value); + + /// + /// + /// + public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(bool value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4((bool?)value); + + /// + /// + /// + public static implicit operator bool?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3; + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(bool? value) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = value; + } + + /// + /// + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3(bool? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4(value); + + /// + /// + /// + public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4( + string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1, + double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2, + bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 + ) + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2; + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3; + } + + /// + /// + /// + public object? Object => + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 as object ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 as object ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1?.ToString() ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2?.ToString() ?? + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3?.ToString().ToLowerInvariant() + ; + + /// + /// + /// + public bool Validate() + { + return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = null, + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = null, + global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 != null) + { + return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = null, + + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = null, + + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2 = null, + global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2!); + } + else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3) + { + responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1, + typeof(string), + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2, + typeof(double), + ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3, + typeof(bool), + }; + 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(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Variant3) + ; + } + + /// + /// + /// + public static bool operator ==(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4 o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.Json.g.cs deleted file mode 100644 index ea0d93e0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs deleted file mode 100644 index 7d998223..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items.g.cs +++ /dev/null @@ -1,498 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 { get; init; } -#else - public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1; - } - - /// - /// - /// - public string PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 { get; init; } -#else - public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out double? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2; - } - - /// - /// - /// - public double PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 { get; init; } -#else - public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out bool? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3; - } - - /// - /// - /// - public bool PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 { get; init; } -#else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4; - } - - /// - /// - /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 { get; init; } -#else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - } - - /// - /// - /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(string value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items((string?)value); - - /// - /// - /// - public static implicit operator string?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(string? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1(string? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(value); - - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(double value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items((double?)value); - - /// - /// - /// - public static implicit operator double?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(double? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2(double? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(value); - - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(bool value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items((bool?)value); - - /// - /// - /// - public static implicit operator bool?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(bool? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3(bool? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items(value); - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items( - string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1, - double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2, - bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 - ) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - } - - /// - /// - /// - public object? Object => - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3?.ToString().ToLowerInvariant() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1, - typeof(string), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2, - typeof(double), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3, - typeof(bool), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4, - typeof(object), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5, - typeof(object), - }; - 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(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5) - ; - } - - /// - /// - /// - public static bool operator ==(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.Json.g.cs deleted file mode 100644 index d908456a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.g.cs deleted file mode 100644 index a96e6e0e..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant4 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.Json.g.cs deleted file mode 100644 index 4134067c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.g.cs deleted file mode 100644 index ef274366..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4ItemsVariant5 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.Json.g.cs deleted file mode 100644 index 9e1cd389..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs deleted file mode 100644 index 0414affe..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5.g.cs +++ /dev/null @@ -1,498 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 { get; init; } -#else - public string? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1; - } - - /// - /// - /// - public string PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 { get; init; } -#else - public double? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out double? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2; - } - - /// - /// - /// - public double PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 { get; init; } -#else - public bool? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out bool? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3; - } - - /// - /// - /// - public bool PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 { get; init; } -#else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4; - } - - /// - /// - /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4' but the value was {ToString()}."); - - /// - /// Any type - /// -#if NET6_0_OR_GREATER - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 { get; init; } -#else - public object? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5))] -#endif - public bool IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 => ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 != null; - - /// - /// - /// - public bool TryPickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out object? value) - { - value = ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - } - - /// - /// - /// - public object PickResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5() => IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 - ? ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5! - : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(string value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5((string?)value); - - /// - /// - /// - public static implicit operator string?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(string? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1(string? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(value); - - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(double value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5((double?)value); - - /// - /// - /// - public static implicit operator double?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(double? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2(double? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(value); - - /// - /// - /// - public static implicit operator ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(bool value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5((bool?)value); - - /// - /// - /// - public static implicit operator bool?(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 @this) => @this.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3; - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(bool? value) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = value; - } - - /// - /// - /// - public static ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 FromResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3(bool? value) => new ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5(value); - - /// - /// - /// - public ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5( - string? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1, - double? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2, - bool? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4, - object? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 - ) - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4; - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - } - - /// - /// - /// - public object? Object => - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 as object ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 as object - ; - - /// - /// - /// - public override string? ToString() => - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3?.ToString().ToLowerInvariant() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4?.ToString() ?? - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 || !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && !IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = null, - global::System.Func? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 && responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 != null) - { - return responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = null, - - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 = null, - global::System.Action? responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4!); - } - else if (IsResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5) - { - responsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5?.Invoke(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1, - typeof(string), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2, - typeof(double), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3, - typeof(bool), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4, - typeof(object), - ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5, - typeof(object), - }; - 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(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5, other.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5) - ; - } - - /// - /// - /// - public static bool operator ==(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 obj1, ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5 o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.Json.g.cs deleted file mode 100644 index d463bf9a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.g.cs deleted file mode 100644 index e7ed04fd..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant4 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.Json.g.cs deleted file mode 100644 index 89db2d54..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.g.cs deleted file mode 100644 index e48d4866..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5Variant5 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.Json.g.cs deleted file mode 100644 index 5127cc79..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.g.cs deleted file mode 100644 index 17d0b51a..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant4 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.Json.g.cs deleted file mode 100644 index 141539ce..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.g.cs deleted file mode 100644 index e5e3b314..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersVariant7 - { - - /// - /// 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.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs new file mode 100644 index 00000000..0ff59e05 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". + /// + public enum ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource + { + /// + /// + /// + Prompt, + /// + /// + /// + WeightedAvg, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource value) + { + return value switch + { + ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.Prompt => "prompt", + ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.WeightedAvg => "weighted_avg", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? ToEnum(string value) + { + return value switch + { + "prompt" => ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.Prompt, + "weighted_avg" => ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource.WeightedAvg, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs index d6cf3b50..90d8f1ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs @@ -4,31 +4,31 @@ namespace OpenRouter { /// - /// auto-router variant + /// auto-beta-router variant /// public sealed partial class ResponsesRequestPluginsItemsVariant1 { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant1IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id Id { get; set; } /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] public int? CostQualityTradeoff { get; set; } /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } @@ -43,16 +43,16 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1 /// Initializes a new instance of the class. /// /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// /// - /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. + /// List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// /// - /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7. /// /// - /// Set to false to disable the auto-router plugin for this request. Defaults to true. + /// Set to false to disable the auto-beta-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.Json.g.cs new file mode 100644 index 00000000..a167ae08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ResponsesRequestPluginsItemsVariant10 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestPluginsItemsVariant10), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPluginsItemsVariant10? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ResponsesRequestPluginsItemsVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ResponsesRequestPluginsItemsVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPluginsItemsVariant10; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.g.cs new file mode 100644 index 00000000..90d5250e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant10.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// web-fetch variant + /// + public sealed partial class ResponsesRequestPluginsItemsVariant10 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] + public global::OpenRouter.WebFetchPluginId Id { get; set; } + + /// + /// Only fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] + public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + + /// + /// Never fetch from these domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] + public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] + public int? MaxContentTokens { get; set; } + + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] + public int? MaxUses { 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. + /// + /// + /// + /// Only fetch from these domains. + /// + /// + /// Never fetch from these domains. + /// + /// + /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// + /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ResponsesRequestPluginsItemsVariant10( + global::OpenRouter.WebFetchPluginId id, + global::System.Collections.Generic.IList? allowedDomains, + global::System.Collections.Generic.IList? blockedDomains, + int? maxContentTokens, + int? maxUses) + { + this.Id = id; + this.AllowedDomains = allowedDomains; + this.BlockedDomains = blockedDomains; + this.MaxContentTokens = maxContentTokens; + this.MaxUses = maxUses; + } + + /// + /// Initializes a new instance of the class. + /// + public ResponsesRequestPluginsItemsVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1Id.g.cs index 18691ac3..a6141241 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: auto-router + /// Discriminator value: auto-beta-router /// public enum ResponsesRequestPluginsItemsVariant1Id { /// - /// auto-router + /// auto-beta-router /// - AutoRouter, + AutoBetaRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant1Id v { return value switch { - ResponsesRequestPluginsItemsVariant1Id.AutoRouter => "auto-router", + ResponsesRequestPluginsItemsVariant1Id.AutoBetaRouter => "auto-beta-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant1Id v { return value switch { - "auto-router" => ResponsesRequestPluginsItemsVariant1Id.AutoRouter, + "auto-beta-router" => ResponsesRequestPluginsItemsVariant1Id.AutoBetaRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2.g.cs index 6081568e..d3427795 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2.g.cs @@ -4,29 +4,34 @@ namespace OpenRouter { /// - /// context-compression variant + /// auto-router variant /// public sealed partial class ResponsesRequestPluginsItemsVariant2 { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant2IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id Id { get; set; } /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } /// - /// The compression engine to use. Defaults to "middle-out". + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] - public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,25 +43,30 @@ public sealed partial class ResponsesRequestPluginsItemsVariant2 /// Initializes a new instance of the class. /// /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// - /// - /// Set to false to disable the context-compression plugin for this request. Defaults to true. + /// + /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// - /// - /// The compression engine to use. Defaults to "middle-out". + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + /// + /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant2( global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id id, - bool? enabled, - global::OpenRouter.ContextCompressionEngine? engine) + global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, + bool? enabled) { this.Id = id; + this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; - this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2Id.g.cs index 8c7f2ea6..c59898c6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant2Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: context-compression + /// Discriminator value: auto-router /// public enum ResponsesRequestPluginsItemsVariant2Id { /// - /// context-compression + /// auto-router /// - ContextCompression, + AutoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant2Id v { return value switch { - ResponsesRequestPluginsItemsVariant2Id.ContextCompression => "context-compression", + ResponsesRequestPluginsItemsVariant2Id.AutoRouter => "auto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant2Id v { return value switch { - "context-compression" => ResponsesRequestPluginsItemsVariant2Id.ContextCompression, + "auto-router" => ResponsesRequestPluginsItemsVariant2Id.AutoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3.g.cs index 7505de04..82bad494 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3.g.cs @@ -4,28 +4,29 @@ namespace OpenRouter { /// - /// file-parser variant + /// context-compression variant /// public sealed partial class ResponsesRequestPluginsItemsVariant3 { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant3IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id Id { get; set; } /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Options for PDF parsing. + /// The compression engine to use. Defaults to "middle-out". /// - [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] - public global::OpenRouter.PDFParserOptions? Pdf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ContextCompressionEngineJsonConverter))] + public global::OpenRouter.ContextCompressionEngine? Engine { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,13 +38,13 @@ public sealed partial class ResponsesRequestPluginsItemsVariant3 /// Initializes a new instance of the class. /// /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// /// - /// Set to false to disable the file-parser plugin for this request. Defaults to true. + /// Set to false to disable the context-compression plugin for this request. Defaults to true. /// - /// - /// Options for PDF parsing. + /// + /// The compression engine to use. Defaults to "middle-out". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +52,11 @@ public sealed partial class ResponsesRequestPluginsItemsVariant3 public ResponsesRequestPluginsItemsVariant3( global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id id, bool? enabled, - global::OpenRouter.PDFParserOptions? pdf) + global::OpenRouter.ContextCompressionEngine? engine) { this.Id = id; this.Enabled = enabled; - this.Pdf = pdf; + this.Engine = engine; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3Id.g.cs index f3f46281..121dd6b7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant3Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: file-parser + /// Discriminator value: context-compression /// public enum ResponsesRequestPluginsItemsVariant3Id { /// - /// file-parser + /// context-compression /// - FileParser, + ContextCompression, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant3Id v { return value switch { - ResponsesRequestPluginsItemsVariant3Id.FileParser => "file-parser", + ResponsesRequestPluginsItemsVariant3Id.ContextCompression => "context-compression", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant3Id v { return value switch { - "file-parser" => ResponsesRequestPluginsItemsVariant3Id.FileParser, + "context-compression" => ResponsesRequestPluginsItemsVariant3Id.ContextCompression, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4.g.cs index b6c31a1e..b77a5178 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4.g.cs @@ -4,53 +4,28 @@ namespace OpenRouter { /// - /// fusion variant + /// file-parser variant /// public sealed partial class ResponsesRequestPluginsItemsVariant4 { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant4IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id Id { get; set; } /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] - public global::System.Collections.Generic.IList? AnalysisModels { get; set; } - - /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] - public int? MaxToolCalls { get; set; } - - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } - - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// Options for PDF parsing. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pdf")] + public global::OpenRouter.PDFParserOptions? Pdf { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,45 +37,25 @@ public sealed partial class ResponsesRequestPluginsItemsVariant4 /// Initializes a new instance of the class. /// /// - /// Discriminator value: fusion - /// - /// - /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// Discriminator value: file-parser /// /// - /// Set to false to disable the fusion plugin for this request. Defaults to true. - /// - /// - /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. - /// - /// - /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. - /// - /// - /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// Set to false to disable the file-parser plugin for this request. Defaults to true. /// - /// - /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + /// Options for PDF parsing. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant4( global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id id, - global::System.Collections.Generic.IList? analysisModels, bool? enabled, - int? maxToolCalls, - string? model, - global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, - global::System.Collections.Generic.IList? tools) + global::OpenRouter.PDFParserOptions? pdf) { this.Id = id; - this.AnalysisModels = analysisModels; this.Enabled = enabled; - this.MaxToolCalls = maxToolCalls; - this.Model = model; - this.Preset = preset; - this.Tools = tools; + this.Pdf = pdf; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4Id.g.cs index daa5fb14..4f9da14e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant4Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: fusion + /// Discriminator value: file-parser /// public enum ResponsesRequestPluginsItemsVariant4Id { /// - /// fusion + /// file-parser /// - Fusion, + FileParser, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant4Id v { return value switch { - ResponsesRequestPluginsItemsVariant4Id.Fusion => "fusion", + ResponsesRequestPluginsItemsVariant4Id.FileParser => "file-parser", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant4Id v { return value switch { - "fusion" => ResponsesRequestPluginsItemsVariant4Id.Fusion, + "file-parser" => ResponsesRequestPluginsItemsVariant4Id.FileParser, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5.g.cs index 66989bfe..35b4629f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5.g.cs @@ -4,17 +4,54 @@ namespace OpenRouter { /// - /// moderation variant + /// fusion variant /// public sealed partial class ResponsesRequestPluginsItemsVariant5 { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant5IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id Id { get; set; } + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] + public global::System.Collections.Generic.IList? AnalysisModels { get; set; } + + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_tool_calls")] + public int? MaxToolCalls { get; set; } + + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preset")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPresetJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Preset { get; set; } + + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -25,15 +62,45 @@ public sealed partial class ResponsesRequestPluginsItemsVariant5 /// Initializes a new instance of the class. /// /// - /// Discriminator value: moderation + /// Discriminator value: fusion + /// + /// + /// Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest). + /// + /// + /// Set to false to disable the fusion plugin for this request. Defaults to true. + /// + /// + /// Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16. + /// + /// + /// Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset. + /// + /// + /// A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence. + /// + /// + /// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant5( - global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id id) + global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id id, + global::System.Collections.Generic.IList? analysisModels, + bool? enabled, + int? maxToolCalls, + string? model, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? preset, + global::System.Collections.Generic.IList? tools) { this.Id = id; + this.AnalysisModels = analysisModels; + this.Enabled = enabled; + this.MaxToolCalls = maxToolCalls; + this.Model = model; + this.Preset = preset; + this.Tools = tools; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5Id.g.cs index 84c2d10b..f6100567 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant5Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: moderation + /// Discriminator value: fusion /// public enum ResponsesRequestPluginsItemsVariant5Id { /// - /// moderation + /// fusion /// - Moderation, + Fusion, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant5Id v { return value switch { - ResponsesRequestPluginsItemsVariant5Id.Moderation => "moderation", + ResponsesRequestPluginsItemsVariant5Id.Fusion => "fusion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant5Id v { return value switch { - "moderation" => ResponsesRequestPluginsItemsVariant5Id.Moderation, + "fusion" => ResponsesRequestPluginsItemsVariant5Id.Fusion, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6.g.cs index 64c53d82..384b89ff 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6.g.cs @@ -4,29 +4,17 @@ namespace OpenRouter { /// - /// pareto-router variant + /// moderation variant /// public sealed partial class ResponsesRequestPluginsItemsVariant6 { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant6IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id Id { get; set; } - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] - public double? MinCodingScore { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,25 +25,15 @@ public sealed partial class ResponsesRequestPluginsItemsVariant6 /// Initializes a new instance of the class. /// /// - /// Discriminator value: pareto-router - /// - /// - /// Set to false to disable the pareto-router plugin for this request. Defaults to true. - /// - /// - /// Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier. + /// Discriminator value: moderation /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant6( - global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id id, - bool? enabled, - double? minCodingScore) + global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id id) { this.Id = id; - this.Enabled = enabled; - this.MinCodingScore = minCodingScore; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6Id.g.cs index 43e563e7..860ecb76 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant6Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: pareto-router + /// Discriminator value: moderation /// public enum ResponsesRequestPluginsItemsVariant6Id { /// - /// pareto-router + /// moderation /// - ParetoRouter, + Moderation, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant6Id v { return value switch { - ResponsesRequestPluginsItemsVariant6Id.ParetoRouter => "pareto-router", + ResponsesRequestPluginsItemsVariant6Id.Moderation => "moderation", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant6Id v { return value switch { - "pareto-router" => ResponsesRequestPluginsItemsVariant6Id.ParetoRouter, + "moderation" => ResponsesRequestPluginsItemsVariant6Id.Moderation, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7.g.cs index 9ceb05ba..60a6034d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7.g.cs @@ -4,23 +4,36 @@ namespace OpenRouter { /// - /// response-healing variant + /// pareto-router variant /// public sealed partial class ResponsesRequestPluginsItemsVariant7 { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant7IdJsonConverter))] public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id Id { get; set; } /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min_coding_score")] + public double? MinCodingScore { get; set; } + + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("price_source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSourceJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? PriceSource { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -31,20 +44,30 @@ public sealed partial class ResponsesRequestPluginsItemsVariant7 /// Initializes a new instance of the class. /// /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// /// - /// Set to false to disable the response-healing plugin for this request. Defaults to true. + /// Set to false to disable the pareto-router plugin for this request. Defaults to true. + /// + /// + /// Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). + /// + /// + /// Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt". /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant7( global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id id, - bool? enabled) + bool? enabled, + double? minCodingScore, + global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource? priceSource) { this.Id = id; this.Enabled = enabled; + this.MinCodingScore = minCodingScore; + this.PriceSource = priceSource; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7Id.g.cs index 84cd2015..cc6f5059 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7Id.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant7Id.g.cs @@ -4,14 +4,14 @@ namespace OpenRouter { /// - /// Discriminator value: response-healing + /// Discriminator value: pareto-router /// public enum ResponsesRequestPluginsItemsVariant7Id { /// - /// response-healing + /// pareto-router /// - ResponseHealing, + ParetoRouter, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant7Id v { return value switch { - ResponsesRequestPluginsItemsVariant7Id.ResponseHealing => "response-healing", + ResponsesRequestPluginsItemsVariant7Id.ParetoRouter => "pareto-router", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this ResponsesRequestPluginsItemsVariant7Id v { return value switch { - "response-healing" => ResponsesRequestPluginsItemsVariant7Id.ResponseHealing, + "pareto-router" => ResponsesRequestPluginsItemsVariant7Id.ParetoRouter, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8.g.cs index d9ae6ecf..bae6cef6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8.g.cs @@ -4,66 +4,23 @@ namespace OpenRouter { /// - /// web variant + /// response-healing variant /// public sealed partial class ResponsesRequestPluginsItemsVariant8 { /// - /// + /// Discriminator value: response-healing /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] - public global::OpenRouter.WebSearchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestPluginsItemsVariant8IdJsonConverter))] + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id Id { get; set; } /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] public bool? Enabled { get; set; } - /// - /// The search engine to use for web search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] - public global::OpenRouter.WebSearchEngine? Engine { get; set; } - - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] - public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } - - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] - public global::System.Collections.Generic.IList? IncludeDomains { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] - public int? MaxResults { get; set; } - - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] - public int? MaxUses { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] - public string? SearchPrompt { get; set; } - - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] - public global::OpenRouter.WebSearchPluginUserLocation? UserLocation { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -73,50 +30,21 @@ public sealed partial class ResponsesRequestPluginsItemsVariant8 /// /// Initializes a new instance of the class. /// - /// - /// - /// Set to false to disable the web-search plugin for this request. Defaults to true. - /// - /// - /// The search engine to use for web search. - /// - /// - /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + /// Discriminator value: response-healing /// - /// - /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). - /// - /// - /// - /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). - /// - /// - /// - /// Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic). + /// + /// Set to false to disable the response-healing plugin for this request. Defaults to true. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant8( - global::OpenRouter.WebSearchPluginId id, - bool? enabled, - global::OpenRouter.WebSearchEngine? engine, - global::System.Collections.Generic.IList? excludeDomains, - global::System.Collections.Generic.IList? includeDomains, - int? maxResults, - int? maxUses, - string? searchPrompt, - global::OpenRouter.WebSearchPluginUserLocation? userLocation) + global::OpenRouter.ResponsesRequestPluginsItemsVariant8Id id, + bool? enabled) { this.Id = id; this.Enabled = enabled; - this.Engine = engine; - this.ExcludeDomains = excludeDomains; - this.IncludeDomains = includeDomains; - this.MaxResults = maxResults; - this.MaxUses = maxUses; - this.SearchPrompt = searchPrompt; - this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8Id.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8Id.g.cs new file mode 100644 index 00000000..696947c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant8Id.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: response-healing + /// + public enum ResponsesRequestPluginsItemsVariant8Id + { + /// + /// response-healing + /// + ResponseHealing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ResponsesRequestPluginsItemsVariant8IdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ResponsesRequestPluginsItemsVariant8Id value) + { + return value switch + { + ResponsesRequestPluginsItemsVariant8Id.ResponseHealing => "response-healing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ResponsesRequestPluginsItemsVariant8Id? ToEnum(string value) + { + return value switch + { + "response-healing" => ResponsesRequestPluginsItemsVariant8Id.ResponseHealing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant9.g.cs index 57c66900..2c86f240 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant9.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// web-fetch variant + /// web variant /// public sealed partial class ResponsesRequestPluginsItemsVariant9 { @@ -12,33 +12,59 @@ public sealed partial class ResponsesRequestPluginsItemsVariant9 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchPluginIdJsonConverter))] - public global::OpenRouter.WebFetchPluginId Id { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchPluginIdJsonConverter))] + public global::OpenRouter.WebSearchPluginId Id { get; set; } /// - /// Only fetch from these domains. + /// Set to false to disable the web-search plugin for this request. Defaults to true. /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowed_domains")] - public global::System.Collections.Generic.IList? AllowedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } /// - /// Never fetch from these domains. + /// The search engine to use for web search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked_domains")] - public global::System.Collections.Generic.IList? BlockedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("engine")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebSearchEngineJsonConverter))] + public global::OpenRouter.WebSearchEngine? Engine { get; set; } /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_content_tokens")] - public int? MaxContentTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("exclude_domains")] + public global::System.Collections.Generic.IList? ExcludeDomains { get; set; } /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_domains")] + public global::System.Collections.Generic.IList? IncludeDomains { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_results")] + public int? MaxResults { get; set; } + + /// + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// [global::System.Text.Json.Serialization.JsonPropertyName("max_uses")] public int? MaxUses { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("search_prompt")] + public string? SearchPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_location")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? UserLocation { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,33 +75,47 @@ public sealed partial class ResponsesRequestPluginsItemsVariant9 /// Initializes a new instance of the class. /// /// - /// - /// Only fetch from these domains. + /// + /// Set to false to disable the web-search plugin for this request. Defaults to true. + /// + /// + /// The search engine to use for web search. /// - /// - /// Never fetch from these domains. + /// + /// A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// - /// - /// Maximum content length in approximate tokens. Content exceeding this limit is truncated. + /// + /// A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog"). /// + /// /// - /// Maximum number of web fetches per request. Once exceeded, the tool returns an error. + /// Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic). /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequestPluginsItemsVariant9( - global::OpenRouter.WebFetchPluginId id, - global::System.Collections.Generic.IList? allowedDomains, - global::System.Collections.Generic.IList? blockedDomains, - int? maxContentTokens, - int? maxUses) + global::OpenRouter.WebSearchPluginId id, + bool? enabled, + global::OpenRouter.WebSearchEngine? engine, + global::System.Collections.Generic.IList? excludeDomains, + global::System.Collections.Generic.IList? includeDomains, + int? maxResults, + int? maxUses, + string? searchPrompt, + global::OpenRouter.OneOf? userLocation) { this.Id = id; - this.AllowedDomains = allowedDomains; - this.BlockedDomains = blockedDomains; - this.MaxContentTokens = maxContentTokens; + this.Enabled = enabled; + this.Engine = engine; + this.ExcludeDomains = excludeDomains; + this.IncludeDomains = includeDomains; + this.MaxResults = maxResults; this.MaxUses = maxUses; + this.SearchPrompt = searchPrompt; + this.UserLocation = userLocation; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.Json.g.cs new file mode 100644 index 00000000..f09fa2fc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ResponsesRequestPreviousResponseId + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPreviousResponseId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestPreviousResponseId), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestPreviousResponseId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestPreviousResponseId? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ResponsesRequestPreviousResponseId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ResponsesRequestPreviousResponseId), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestPreviousResponseId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.g.cs new file mode 100644 index 00000000..e2b9ae8b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPreviousResponseId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// + public sealed partial class ResponsesRequestPreviousResponseId + { + + /// + /// 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.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs index baa696dc..ad9ba07c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs @@ -527,6 +527,43 @@ public bool TryPickCustomTool( ? CustomTool! : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); + /// + /// Groups function/custom tools under a shared namespace + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.NamespaceTool? NamespaceTool { get; init; } +#else + public global::OpenRouter.NamespaceTool? NamespaceTool { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NamespaceTool))] +#endif + public bool IsNamespaceTool => NamespaceTool != null; + + /// + /// + /// + public bool TryPickNamespaceTool( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.NamespaceTool? value) + { + value = NamespaceTool; + return IsNamespaceTool; + } + + /// + /// + /// + public global::OpenRouter.NamespaceTool PickNamespaceTool() => IsNamespaceTool + ? NamespaceTool! + : throw new global::System.InvalidOperationException($"Expected union variant 'NamespaceTool' but the value was {ToString()}."); + /// /// OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor. /// @@ -753,38 +790,38 @@ public bool TryPickImageGenerationServerToolOpenRouter( /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter /// #if NET6_0_OR_GREATER - public global::OpenRouter.ChatSearchModelsServerTool? ChatSearchModelsServerTool { get; init; } + public global::OpenRouter.SearchModelsServerToolOpenRouter? SearchModelsServerToolOpenRouter { get; init; } #else - public global::OpenRouter.ChatSearchModelsServerTool? ChatSearchModelsServerTool { get; } + public global::OpenRouter.SearchModelsServerToolOpenRouter? SearchModelsServerToolOpenRouter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatSearchModelsServerTool))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SearchModelsServerToolOpenRouter))] #endif - public bool IsChatSearchModelsServerTool => ChatSearchModelsServerTool != null; + public bool IsSearchModelsServerToolOpenRouter => SearchModelsServerToolOpenRouter != null; /// /// /// - public bool TryPickChatSearchModelsServerTool( + public bool TryPickSearchModelsServerToolOpenRouter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::OpenRouter.ChatSearchModelsServerTool? value) + out global::OpenRouter.SearchModelsServerToolOpenRouter? value) { - value = ChatSearchModelsServerTool; - return IsChatSearchModelsServerTool; + value = SearchModelsServerToolOpenRouter; + return IsSearchModelsServerToolOpenRouter; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerTool PickChatSearchModelsServerTool() => IsChatSearchModelsServerTool - ? ChatSearchModelsServerTool! - : throw new global::System.InvalidOperationException($"Expected union variant 'ChatSearchModelsServerTool' but the value was {ToString()}."); + public global::OpenRouter.SearchModelsServerToolOpenRouter PickSearchModelsServerToolOpenRouter() => IsSearchModelsServerToolOpenRouter + ? SearchModelsServerToolOpenRouter! + : throw new global::System.InvalidOperationException($"Expected union variant 'SearchModelsServerToolOpenRouter' but the value was {ToString()}."); /// /// OpenRouter built-in server tool: fetches full content from a URL (web page or PDF) @@ -1292,6 +1329,29 @@ public ResponsesRequestToolsItems(global::OpenRouter.CustomTool? value) /// public static ResponsesRequestToolsItems FromCustomTool(global::OpenRouter.CustomTool? value) => new ResponsesRequestToolsItems(value); + /// + /// + /// + public static implicit operator ResponsesRequestToolsItems(global::OpenRouter.NamespaceTool value) => new ResponsesRequestToolsItems((global::OpenRouter.NamespaceTool?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.NamespaceTool?(ResponsesRequestToolsItems @this) => @this.NamespaceTool; + + /// + /// + /// + public ResponsesRequestToolsItems(global::OpenRouter.NamespaceTool? value) + { + NamespaceTool = value; + } + + /// + /// + /// + public static ResponsesRequestToolsItems FromNamespaceTool(global::OpenRouter.NamespaceTool? value) => new ResponsesRequestToolsItems(value); + /// /// /// @@ -1433,25 +1493,25 @@ public ResponsesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOp /// /// /// - public static implicit operator ResponsesRequestToolsItems(global::OpenRouter.ChatSearchModelsServerTool value) => new ResponsesRequestToolsItems((global::OpenRouter.ChatSearchModelsServerTool?)value); + public static implicit operator ResponsesRequestToolsItems(global::OpenRouter.SearchModelsServerToolOpenRouter value) => new ResponsesRequestToolsItems((global::OpenRouter.SearchModelsServerToolOpenRouter?)value); /// /// /// - public static implicit operator global::OpenRouter.ChatSearchModelsServerTool?(ResponsesRequestToolsItems @this) => @this.ChatSearchModelsServerTool; + public static implicit operator global::OpenRouter.SearchModelsServerToolOpenRouter?(ResponsesRequestToolsItems @this) => @this.SearchModelsServerToolOpenRouter; /// /// /// - public ResponsesRequestToolsItems(global::OpenRouter.ChatSearchModelsServerTool? value) + public ResponsesRequestToolsItems(global::OpenRouter.SearchModelsServerToolOpenRouter? value) { - ChatSearchModelsServerTool = value; + SearchModelsServerToolOpenRouter = value; } /// /// /// - public static ResponsesRequestToolsItems FromChatSearchModelsServerTool(global::OpenRouter.ChatSearchModelsServerTool? value) => new ResponsesRequestToolsItems(value); + public static ResponsesRequestToolsItems FromSearchModelsServerToolOpenRouter(global::OpenRouter.SearchModelsServerToolOpenRouter? value) => new ResponsesRequestToolsItems(value); /// /// @@ -1586,13 +1646,14 @@ public ResponsesRequestToolsItems( global::OpenRouter.ShellServerTool? shellServerTool, global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool, global::OpenRouter.CustomTool? customTool, + global::OpenRouter.NamespaceTool? namespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter? advisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter? subagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool? datetimeServerTool, global::OpenRouter.FilesServerTool? filesServerTool, global::OpenRouter.FusionServerToolOpenRouter? fusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, - global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, + global::OpenRouter.SearchModelsServerToolOpenRouter? searchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool? webFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter? applyPatchServerToolOpenRouter, @@ -1614,13 +1675,14 @@ public ResponsesRequestToolsItems( ShellServerTool = shellServerTool; ApplyPatchServerTool = applyPatchServerTool; CustomTool = customTool; + NamespaceTool = namespaceTool; AdvisorServerToolOpenRouter = advisorServerToolOpenRouter; SubagentServerToolOpenRouter = subagentServerToolOpenRouter; DatetimeServerTool = datetimeServerTool; FilesServerTool = filesServerTool; FusionServerToolOpenRouter = fusionServerToolOpenRouter; ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; - ChatSearchModelsServerTool = chatSearchModelsServerTool; + SearchModelsServerToolOpenRouter = searchModelsServerToolOpenRouter; WebFetchServerTool = webFetchServerTool; WebSearchServerToolOpenRouter = webSearchServerToolOpenRouter; ApplyPatchServerToolOpenRouter = applyPatchServerToolOpenRouter; @@ -1637,13 +1699,14 @@ BashServerTool as object ?? ApplyPatchServerToolOpenRouter as object ?? WebSearchServerToolOpenRouter as object ?? WebFetchServerTool as object ?? - ChatSearchModelsServerTool as object ?? + SearchModelsServerToolOpenRouter as object ?? ImageGenerationServerToolOpenRouter as object ?? FusionServerToolOpenRouter as object ?? FilesServerTool as object ?? DatetimeServerTool as object ?? SubagentServerToolOpenRouter as object ?? AdvisorServerToolOpenRouter as object ?? + NamespaceTool as object ?? CustomTool as object ?? ApplyPatchServerTool as object ?? ShellServerTool as object ?? @@ -1678,13 +1741,14 @@ ResponsesRequestToolsItems0 as object ShellServerTool?.ToString() ?? ApplyPatchServerTool?.ToString() ?? CustomTool?.ToString() ?? + NamespaceTool?.ToString() ?? AdvisorServerToolOpenRouter?.ToString() ?? SubagentServerToolOpenRouter?.ToString() ?? DatetimeServerTool?.ToString() ?? FilesServerTool?.ToString() ?? FusionServerToolOpenRouter?.ToString() ?? ImageGenerationServerToolOpenRouter?.ToString() ?? - ChatSearchModelsServerTool?.ToString() ?? + SearchModelsServerToolOpenRouter?.ToString() ?? WebFetchServerTool?.ToString() ?? WebSearchServerToolOpenRouter?.ToString() ?? ApplyPatchServerToolOpenRouter?.ToString() ?? @@ -1697,7 +1761,7 @@ ResponsesRequestToolsItems0 as object /// public bool Validate() { - return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && IsShellServerToolOpenRouter; + return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && IsApplyPatchServerToolOpenRouter && !IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && IsBashServerTool && !IsShellServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsNamespaceTool && !IsAdvisorServerToolOpenRouter && !IsSubagentServerToolOpenRouter && !IsDatetimeServerTool && !IsFilesServerTool && !IsFusionServerToolOpenRouter && !IsImageGenerationServerToolOpenRouter && !IsSearchModelsServerToolOpenRouter && !IsWebFetchServerTool && !IsWebSearchServerToolOpenRouter && !IsApplyPatchServerToolOpenRouter && !IsBashServerTool && IsShellServerToolOpenRouter; } /// @@ -1718,13 +1782,14 @@ public bool Validate() global::System.Func? shellServerTool = null, global::System.Func? applyPatchServerTool = null, global::System.Func? customTool = null, + global::System.Func? namespaceTool = null, global::System.Func? advisorServerToolOpenRouter = null, global::System.Func? subagentServerToolOpenRouter = null, global::System.Func? datetimeServerTool = null, global::System.Func? filesServerTool = null, global::System.Func? fusionServerToolOpenRouter = null, global::System.Func? imageGenerationServerToolOpenRouter = null, - global::System.Func? chatSearchModelsServerTool = null, + global::System.Func? searchModelsServerToolOpenRouter = null, global::System.Func? webFetchServerTool = null, global::System.Func? webSearchServerToolOpenRouter = null, global::System.Func? applyPatchServerToolOpenRouter = null, @@ -1793,6 +1858,10 @@ public bool Validate() { return customTool(CustomTool!); } + else if (IsNamespaceTool && namespaceTool != null) + { + return namespaceTool(NamespaceTool!); + } else if (IsAdvisorServerToolOpenRouter && advisorServerToolOpenRouter != null) { return advisorServerToolOpenRouter(AdvisorServerToolOpenRouter!); @@ -1817,9 +1886,9 @@ public bool Validate() { return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool && chatSearchModelsServerTool != null) + else if (IsSearchModelsServerToolOpenRouter && searchModelsServerToolOpenRouter != null) { - return chatSearchModelsServerTool(ChatSearchModelsServerTool!); + return searchModelsServerToolOpenRouter(SearchModelsServerToolOpenRouter!); } else if (IsWebFetchServerTool && webFetchServerTool != null) { @@ -1877,6 +1946,8 @@ public void Match( global::System.Action? customTool = null, + global::System.Action? namespaceTool = null, + global::System.Action? advisorServerToolOpenRouter = null, global::System.Action? subagentServerToolOpenRouter = null, @@ -1889,7 +1960,7 @@ public void Match( global::System.Action? imageGenerationServerToolOpenRouter = null, - global::System.Action? chatSearchModelsServerTool = null, + global::System.Action? searchModelsServerToolOpenRouter = null, global::System.Action? webFetchServerTool = null, @@ -1963,6 +2034,10 @@ public void Match( { customTool?.Invoke(CustomTool!); } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } else if (IsAdvisorServerToolOpenRouter) { advisorServerToolOpenRouter?.Invoke(AdvisorServerToolOpenRouter!); @@ -1987,9 +2062,9 @@ public void Match( { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool) + else if (IsSearchModelsServerToolOpenRouter) { - chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); + searchModelsServerToolOpenRouter?.Invoke(SearchModelsServerToolOpenRouter!); } else if (IsWebFetchServerTool) { @@ -2031,13 +2106,14 @@ public void Switch( global::System.Action? shellServerTool = null, global::System.Action? applyPatchServerTool = null, global::System.Action? customTool = null, + global::System.Action? namespaceTool = null, global::System.Action? advisorServerToolOpenRouter = null, global::System.Action? subagentServerToolOpenRouter = null, global::System.Action? datetimeServerTool = null, global::System.Action? filesServerTool = null, global::System.Action? fusionServerToolOpenRouter = null, global::System.Action? imageGenerationServerToolOpenRouter = null, - global::System.Action? chatSearchModelsServerTool = null, + global::System.Action? searchModelsServerToolOpenRouter = null, global::System.Action? webFetchServerTool = null, global::System.Action? webSearchServerToolOpenRouter = null, global::System.Action? applyPatchServerToolOpenRouter = null, @@ -2106,6 +2182,10 @@ public void Switch( { customTool?.Invoke(CustomTool!); } + else if (IsNamespaceTool) + { + namespaceTool?.Invoke(NamespaceTool!); + } else if (IsAdvisorServerToolOpenRouter) { advisorServerToolOpenRouter?.Invoke(AdvisorServerToolOpenRouter!); @@ -2130,9 +2210,9 @@ public void Switch( { imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); } - else if (IsChatSearchModelsServerTool) + else if (IsSearchModelsServerToolOpenRouter) { - chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); + searchModelsServerToolOpenRouter?.Invoke(SearchModelsServerToolOpenRouter!); } else if (IsWebFetchServerTool) { @@ -2191,6 +2271,8 @@ public override int GetHashCode() typeof(global::OpenRouter.ApplyPatchServerTool), CustomTool, typeof(global::OpenRouter.CustomTool), + NamespaceTool, + typeof(global::OpenRouter.NamespaceTool), AdvisorServerToolOpenRouter, typeof(global::OpenRouter.AdvisorServerToolOpenRouter), SubagentServerToolOpenRouter, @@ -2203,8 +2285,8 @@ public override int GetHashCode() typeof(global::OpenRouter.FusionServerToolOpenRouter), ImageGenerationServerToolOpenRouter, typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), - ChatSearchModelsServerTool, - typeof(global::OpenRouter.ChatSearchModelsServerTool), + SearchModelsServerToolOpenRouter, + typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), WebFetchServerTool, typeof(global::OpenRouter.WebFetchServerTool), WebSearchServerToolOpenRouter, @@ -2245,13 +2327,14 @@ public bool Equals(ResponsesRequestToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ShellServerTool, other.ShellServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerTool, other.ApplyPatchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NamespaceTool, other.NamespaceTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(AdvisorServerToolOpenRouter, other.AdvisorServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(SubagentServerToolOpenRouter, other.SubagentServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(FilesServerTool, other.FilesServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(FusionServerToolOpenRouter, other.FusionServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SearchModelsServerToolOpenRouter, other.SearchModelsServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebFetchServerTool, other.WebFetchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerToolOpenRouter, other.WebSearchServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerToolOpenRouter, other.ApplyPatchServerToolOpenRouter) && diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequest.g.cs index 495a9f87..d69b5f75 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequest.g.cs @@ -34,12 +34,25 @@ public sealed partial class STTRequest [global::System.Text.Json.Serialization.JsonPropertyName("provider")] public global::OpenRouter.SttRequestProvider? Provider { get; set; } + /// + /// Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.SttRequestResponseFormatJsonConverter))] + public global::OpenRouter.SttRequestResponseFormat? ResponseFormat { get; set; } + /// /// Sampling temperature for transcription /// [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] public double? Temperature { get; set; } + /// + /// Timestamp detail levels to include when response_format is "verbose_json". "segment" returns segment-level timestamps; "word" additionally returns word-level timestamps in the words array. Ignored unless response_format is "verbose_json". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp_granularities")] + public global::System.Collections.Generic.IList? TimestampGranularities { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,9 +74,15 @@ public sealed partial class STTRequest /// /// Provider-specific passthrough configuration /// + /// + /// Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers. + /// /// /// Sampling temperature for transcription /// + /// + /// Timestamp detail levels to include when response_format is "verbose_json". "segment" returns segment-level timestamps; "word" additionally returns word-level timestamps in the words array. Ignored unless response_format is "verbose_json". + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -72,13 +91,17 @@ public STTRequest( string model, string? language, global::OpenRouter.SttRequestProvider? provider, - double? temperature) + global::OpenRouter.SttRequestResponseFormat? responseFormat, + double? temperature, + global::System.Collections.Generic.IList? timestampGranularities) { this.InputAudio = inputAudio ?? throw new global::System.ArgumentNullException(nameof(inputAudio)); this.Language = language; this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Provider = provider; + this.ResponseFormat = responseFormat; this.Temperature = temperature; + this.TimestampGranularities = timestampGranularities; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTResponse.g.cs index 3814711b..409d12f8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTResponse.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTResponse.g.cs @@ -8,6 +8,30 @@ namespace OpenRouter /// public sealed partial class STTResponse { + /// + /// Duration of the input audio in seconds, present when response_format is verbose_json + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public double? Duration { get; set; } + + /// + /// Detected or forced language, present when response_format is verbose_json + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { get; set; } + + /// + /// Timestamped transcript segments, present when response_format is verbose_json + /// + [global::System.Text.Json.Serialization.JsonPropertyName("segments")] + public global::System.Collections.Generic.IList? Segments { get; set; } + + /// + /// The task performed, present when response_format is verbose_json + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task")] + public string? Task { get; set; } + /// /// The transcribed text /// @@ -21,6 +45,12 @@ public sealed partial class STTResponse [global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::OpenRouter.STTUsage? Usage { get; set; } + /// + /// Timestamped words, present when the provider returns word-level timestamps + /// + [global::System.Text.Json.Serialization.JsonPropertyName("words")] + public global::System.Collections.Generic.IList? Words { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -33,18 +63,43 @@ public sealed partial class STTResponse /// /// The transcribed text /// + /// + /// Duration of the input audio in seconds, present when response_format is verbose_json + /// + /// + /// Detected or forced language, present when response_format is verbose_json + /// + /// + /// Timestamped transcript segments, present when response_format is verbose_json + /// + /// + /// The task performed, present when response_format is verbose_json + /// /// /// Aggregated usage statistics for the request /// + /// + /// Timestamped words, present when the provider returns word-level timestamps + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public STTResponse( string text, - global::OpenRouter.STTUsage? usage) + double? duration, + string? language, + global::System.Collections.Generic.IList? segments, + string? task, + global::OpenRouter.STTUsage? usage, + global::System.Collections.Generic.IList? words) { + this.Duration = duration; + this.Language = language; + this.Segments = segments; + this.Task = task; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Usage = usage; + this.Words = words; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.Json.g.cs new file mode 100644 index 00000000..0e43db4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class STTSegment + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.STTSegment? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.STTSegment), + jsonSerializerContext) as global::OpenRouter.STTSegment; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.STTSegment? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.STTSegment? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.STTSegment), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.STTSegment; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.g.cs new file mode 100644 index 00000000..1b399cea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTSegment.g.cs @@ -0,0 +1,149 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A timestamped transcript segment, returned when response_format is verbose_json + /// + public sealed partial class STTSegment + { + /// + /// Average log probability of the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avg_logprob")] + public double? AvgLogprob { get; set; } + + /// + /// Compression ratio of the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("compression_ratio")] + public double? CompressionRatio { get; set; } + + /// + /// Segment end time in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double End { get; set; } + + /// + /// Segment index within the transcript + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Id { get; set; } + + /// + /// Probability the segment contains no speech + /// + [global::System.Text.Json.Serialization.JsonPropertyName("no_speech_prob")] + public double? NoSpeechProb { get; set; } + + /// + /// Seek offset of the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seek")] + public int? Seek { get; set; } + + /// + /// Segment start time in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Start { get; set; } + + /// + /// Temperature used for the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// Transcribed text of the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// Token IDs of the segment + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tokens")] + public global::System.Collections.Generic.IList? Tokens { 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. + /// + /// + /// Segment end time in seconds + /// + /// + /// Segment index within the transcript + /// + /// + /// Segment start time in seconds + /// + /// + /// Transcribed text of the segment + /// + /// + /// Average log probability of the segment + /// + /// + /// Compression ratio of the segment + /// + /// + /// Probability the segment contains no speech + /// + /// + /// Seek offset of the segment + /// + /// + /// Temperature used for the segment + /// + /// + /// Token IDs of the segment + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public STTSegment( + double end, + int id, + double start, + string text, + double? avgLogprob, + double? compressionRatio, + double? noSpeechProb, + int? seek, + double? temperature, + global::System.Collections.Generic.IList? tokens) + { + this.AvgLogprob = avgLogprob; + this.CompressionRatio = compressionRatio; + this.End = end; + this.Id = id; + this.NoSpeechProb = noSpeechProb; + this.Seek = seek; + this.Start = start; + this.Temperature = temperature; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Tokens = tokens; + } + + /// + /// Initializes a new instance of the class. + /// + public STTSegment() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTTimestampGranularity.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTTimestampGranularity.g.cs new file mode 100644 index 00000000..319f914b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTTimestampGranularity.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A timestamp detail level for verbose_json transcription responses. + /// + public enum STTTimestampGranularity + { + /// + /// + /// + Segment, + /// + /// + /// + Word, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class STTTimestampGranularityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this STTTimestampGranularity value) + { + return value switch + { + STTTimestampGranularity.Segment => "segment", + STTTimestampGranularity.Word => "word", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static STTTimestampGranularity? ToEnum(string value) + { + return value switch + { + "segment" => STTTimestampGranularity.Segment, + "word" => STTTimestampGranularity.Word, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.Json.g.cs new file mode 100644 index 00000000..f1089ba6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class STTWord + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.STTWord? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.STTWord), + jsonSerializerContext) as global::OpenRouter.STTWord; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.STTWord? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.STTWord? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.STTWord), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.STTWord; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.g.cs new file mode 100644 index 00000000..a59ea43c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTWord.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A timestamped word, returned when the provider includes word-level timestamps + /// + public sealed partial class STTWord + { + /// + /// Word end time in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double End { get; set; } + + /// + /// Word start time in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Start { get; set; } + + /// + /// The transcribed word + /// + [global::System.Text.Json.Serialization.JsonPropertyName("word")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Word { 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. + /// + /// + /// Word end time in seconds + /// + /// + /// Word start time in seconds + /// + /// + /// The transcribed word + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public STTWord( + double end, + double start, + string word) + { + this.End = end; + this.Start = start; + this.Word = word ?? throw new global::System.ArgumentNullException(nameof(word)); + } + + /// + /// Initializes a new instance of the class. + /// + public STTWord() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.Json.g.cs new file mode 100644 index 00000000..3da37960 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SearchModelsServerToolOpenRouter + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SearchModelsServerToolOpenRouter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SearchModelsServerToolOpenRouter), + jsonSerializerContext) as global::OpenRouter.SearchModelsServerToolOpenRouter; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SearchModelsServerToolOpenRouter? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.SearchModelsServerToolOpenRouter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.SearchModelsServerToolOpenRouter), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SearchModelsServerToolOpenRouter; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.g.cs new file mode 100644 index 00000000..ce8922bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouter.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter + /// + public sealed partial class SearchModelsServerToolOpenRouter + { + /// + /// Configuration for the openrouter:experimental__search_models server tool + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::OpenRouter.SearchModelsServerToolConfig? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.SearchModelsServerToolOpenRouterTypeJsonConverter))] + public global::OpenRouter.SearchModelsServerToolOpenRouterType 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. + /// + /// + /// Configuration for the openrouter:experimental__search_models server tool + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SearchModelsServerToolOpenRouter( + global::OpenRouter.SearchModelsServerToolConfig? parameters, + global::OpenRouter.SearchModelsServerToolOpenRouterType type) + { + this.Parameters = parameters; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public SearchModelsServerToolOpenRouter() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..67a8d931 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SearchModelsServerToolOpenRouterType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum SearchModelsServerToolOpenRouterType + { + /// + /// + /// + Openrouter_experimentalSearchModels, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SearchModelsServerToolOpenRouterTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SearchModelsServerToolOpenRouterType value) + { + return value switch + { + SearchModelsServerToolOpenRouterType.Openrouter_experimentalSearchModels => "openrouter:experimental__search_models", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SearchModelsServerToolOpenRouterType? ToEnum(string value) + { + return value switch + { + "openrouter:experimental__search_models" => SearchModelsServerToolOpenRouterType.Openrouter_experimentalSearchModels, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.Json.g.cs new file mode 100644 index 00000000..a1f0b6cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ServerToolUseDetails + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ServerToolUseDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ServerToolUseDetails), + jsonSerializerContext) as global::OpenRouter.ServerToolUseDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ServerToolUseDetails? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.ServerToolUseDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.ServerToolUseDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ServerToolUseDetails; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.g.cs new file mode 100644 index 00000000..06cafaf7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServerToolUseDetails.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Usage for server-side tool execution (e.g., web search) + /// + public sealed partial class ServerToolUseDetails + { + /// + /// Number of OpenRouter server tool calls that executed and produced a result. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_executed")] + public int? ToolCallsExecuted { get; set; } + + /// + /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_requested")] + public int? ToolCallsRequested { get; set; } + + /// + /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("web_search_requests")] + public int? WebSearchRequests { 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. + /// + /// + /// Number of OpenRouter server tool calls that executed and produced a result. + /// + /// + /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. + /// + /// + /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ServerToolUseDetails( + int? toolCallsExecuted, + int? toolCallsRequested, + int? webSearchRequests) + { + this.ToolCallsExecuted = toolCallsExecuted; + this.ToolCallsRequested = toolCallsRequested; + this.WebSearchRequests = webSearchRequests; + } + + /// + /// Initializes a new instance of the class. + /// + public ServerToolUseDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier.g.cs new file mode 100644 index 00000000..c8a92b44 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ServiceTier + { + /// + /// + /// + Auto, + /// + /// + /// + Default, + /// + /// + /// + Flex, + /// + /// + /// + Priority, + /// + /// + /// + Scale, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ServiceTierExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ServiceTier value) + { + return value switch + { + ServiceTier.Auto => "auto", + ServiceTier.Default => "default", + ServiceTier.Flex => "flex", + ServiceTier.Priority => "priority", + ServiceTier.Scale => "scale", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ServiceTier? ToEnum(string value) + { + return value switch + { + "auto" => ServiceTier.Auto, + "default" => ServiceTier.Default, + "flex" => ServiceTier.Flex, + "priority" => ServiceTier.Priority, + "scale" => ServiceTier.Scale, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier2.g.cs deleted file mode 100644 index da64d0e3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ServiceTier2.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum ServiceTier2 - { - /// - /// - /// - Auto, - /// - /// - /// - Default, - /// - /// - /// - Flex, - /// - /// - /// - Priority, - /// - /// - /// - Scale, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ServiceTier2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ServiceTier2 value) - { - return value switch - { - ServiceTier2.Auto => "auto", - ServiceTier2.Default => "default", - ServiceTier2.Flex => "flex", - ServiceTier2.Priority => "priority", - ServiceTier2.Scale => "scale", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ServiceTier2? ToEnum(string value) - { - return value switch - { - "auto" => ServiceTier2.Auto, - "default" => ServiceTier2.Default, - "flex" => ServiceTier2.Flex, - "priority" => ServiceTier2.Priority, - "scale" => ServiceTier2.Scale, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallItem.g.cs index a59b3340..d7a8a1a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallItem.g.cs @@ -23,7 +23,7 @@ public sealed partial class ShellCallItem public required string CallId { get; set; } /// - /// + /// Any type /// [global::System.Text.Json.Serialization.JsonPropertyName("environment")] public object? Environment { get; set; } @@ -38,8 +38,8 @@ public sealed partial class ShellCallItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - public global::OpenRouter.ToolCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Status { get; set; } /// /// @@ -59,7 +59,9 @@ public sealed partial class ShellCallItem /// /// /// - /// + /// + /// Any type + /// /// /// /// @@ -71,7 +73,7 @@ public ShellCallItem( string callId, object? environment, string? id, - global::OpenRouter.ToolCallStatus? status, + global::OpenRouter.OneOf? status, global::OpenRouter.ShellCallItemType type) { this.Action = action ?? throw new global::System.ArgumentNullException(nameof(action)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallOutputItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallOutputItem.g.cs index 4cb388e5..bdaf771f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallOutputItem.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ShellCallOutputItem.g.cs @@ -38,8 +38,8 @@ public sealed partial class ShellCallOutputItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ToolCallStatusJsonConverter))] - public global::OpenRouter.ToolCallStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? Status { get; set; } /// /// @@ -71,7 +71,7 @@ public ShellCallOutputItem( global::System.Collections.Generic.IList output, string? id, int? maxOutputLength, - global::OpenRouter.ToolCallStatus? status, + global::OpenRouter.OneOf? status, global::OpenRouter.ShellCallOutputItemType type) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SttRequestResponseFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttRequestResponseFormat.g.cs new file mode 100644 index 00000000..3aac5350 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttRequestResponseFormat.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers. + /// + public enum SttRequestResponseFormat + { + /// + /// + /// + Json, + /// + /// + /// + VerboseJson, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SttRequestResponseFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SttRequestResponseFormat value) + { + return value switch + { + SttRequestResponseFormat.Json => "json", + SttRequestResponseFormat.VerboseJson => "verbose_json", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SttRequestResponseFormat? ToEnum(string value) + { + return value switch + { + "json" => SttRequestResponseFormat.Json, + "verbose_json" => SttRequestResponseFormat.VerboseJson, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.Json.g.cs new file mode 100644 index 00000000..c8e5dc30 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SubmitGenerationFeedbackRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SubmitGenerationFeedbackRequest), + jsonSerializerContext) as global::OpenRouter.SubmitGenerationFeedbackRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.SubmitGenerationFeedbackRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.SubmitGenerationFeedbackRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SubmitGenerationFeedbackRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.g.cs new file mode 100644 index 00000000..ad121bd0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequest.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Structured feedback about a specific generation + /// + public sealed partial class SubmitGenerationFeedbackRequest + { + /// + /// The category of feedback being reported + /// + [global::System.Text.Json.Serialization.JsonPropertyName("category")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.SubmitGenerationFeedbackRequestCategoryJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.SubmitGenerationFeedbackRequestCategory Category { get; set; } + + /// + /// An optional free-text comment describing the feedback + /// + [global::System.Text.Json.Serialization.JsonPropertyName("comment")] + public string? Comment { get; set; } + + /// + /// The generation to submit feedback on + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string GenerationId { 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 category of feedback being reported + /// + /// + /// The generation to submit feedback on + /// + /// + /// An optional free-text comment describing the feedback + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SubmitGenerationFeedbackRequest( + global::OpenRouter.SubmitGenerationFeedbackRequestCategory category, + string generationId, + string? comment) + { + this.Category = category; + this.Comment = comment; + this.GenerationId = generationId ?? throw new global::System.ArgumentNullException(nameof(generationId)); + } + + /// + /// Initializes a new instance of the class. + /// + public SubmitGenerationFeedbackRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequestCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequestCategory.g.cs new file mode 100644 index 00000000..d1e1ead7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackRequestCategory.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The category of feedback being reported + /// + public enum SubmitGenerationFeedbackRequestCategory + { + /// + /// + /// + ApiError, + /// + /// + /// + Billing, + /// + /// + /// + Formatting, + /// + /// + /// + Incoherence, + /// + /// + /// + IncorrectResponse, + /// + /// + /// + Latency, + /// + /// + /// + Other, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SubmitGenerationFeedbackRequestCategoryExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SubmitGenerationFeedbackRequestCategory value) + { + return value switch + { + SubmitGenerationFeedbackRequestCategory.ApiError => "api_error", + SubmitGenerationFeedbackRequestCategory.Billing => "billing", + SubmitGenerationFeedbackRequestCategory.Formatting => "formatting", + SubmitGenerationFeedbackRequestCategory.Incoherence => "incoherence", + SubmitGenerationFeedbackRequestCategory.IncorrectResponse => "incorrect_response", + SubmitGenerationFeedbackRequestCategory.Latency => "latency", + SubmitGenerationFeedbackRequestCategory.Other => "other", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SubmitGenerationFeedbackRequestCategory? ToEnum(string value) + { + return value switch + { + "api_error" => SubmitGenerationFeedbackRequestCategory.ApiError, + "billing" => SubmitGenerationFeedbackRequestCategory.Billing, + "formatting" => SubmitGenerationFeedbackRequestCategory.Formatting, + "incoherence" => SubmitGenerationFeedbackRequestCategory.Incoherence, + "incorrect_response" => SubmitGenerationFeedbackRequestCategory.IncorrectResponse, + "latency" => SubmitGenerationFeedbackRequestCategory.Latency, + "other" => SubmitGenerationFeedbackRequestCategory.Other, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.Json.g.cs new file mode 100644 index 00000000..660a9230 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SubmitGenerationFeedbackResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SubmitGenerationFeedbackResponse), + jsonSerializerContext) as global::OpenRouter.SubmitGenerationFeedbackResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackResponse? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.SubmitGenerationFeedbackResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.SubmitGenerationFeedbackResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SubmitGenerationFeedbackResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.g.cs new file mode 100644 index 00000000..2e0c514f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Confirmation that the feedback was recorded + /// + public sealed partial class SubmitGenerationFeedbackResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.SubmitGenerationFeedbackResponseData 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SubmitGenerationFeedbackResponse( + global::OpenRouter.SubmitGenerationFeedbackResponseData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public SubmitGenerationFeedbackResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.Json.g.cs new file mode 100644 index 00000000..e9b0dcc7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SubmitGenerationFeedbackResponseData + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SubmitGenerationFeedbackResponseData), + jsonSerializerContext) as global::OpenRouter.SubmitGenerationFeedbackResponseData; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SubmitGenerationFeedbackResponseData? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.SubmitGenerationFeedbackResponseData? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.SubmitGenerationFeedbackResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SubmitGenerationFeedbackResponseData; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.g.cs new file mode 100644 index 00000000..1f34a4e1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SubmitGenerationFeedbackResponseData.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class SubmitGenerationFeedbackResponseData + { + /// + /// Whether the feedback was recorded + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { 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. + /// + /// + /// Whether the feedback was recorded + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SubmitGenerationFeedbackResponseData( + bool success) + { + this.Success = success; + } + + /// + /// Initializes a new instance of the class. + /// + public SubmitGenerationFeedbackResponseData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextExtendedConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextExtendedConfig.g.cs index b9be1c8b..9150cc0f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextExtendedConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextExtendedConfig.g.cs @@ -19,8 +19,8 @@ public sealed partial class TextExtendedConfig /// /// [global::System.Text.Json.Serialization.JsonPropertyName("verbosity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? Verbosity { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.TextExtendedConfigVerbosityJsonConverter))] + public global::OpenRouter.TextExtendedConfigVerbosity? Verbosity { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -40,7 +40,7 @@ public sealed partial class TextExtendedConfig #endif public TextExtendedConfig( global::OpenRouter.Formats? format, - global::OpenRouter.OneOf? verbosity) + global::OpenRouter.TextExtendedConfigVerbosity? verbosity) { this.Format = format; this.Verbosity = verbosity; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UnifiedBenchmarksMeta.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnifiedBenchmarksMeta.g.cs index 30e7d957..ee1f4da7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UnifiedBenchmarksMeta.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnifiedBenchmarksMeta.g.cs @@ -32,9 +32,9 @@ public sealed partial class UnifiedBenchmarksMeta /// The source filter applied, or null when all sources are returned. /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksMetaSourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf Source { get; set; } + public required global::OpenRouter.UnifiedBenchmarksMetaSource Source { get; set; } /// /// URL of the upstream data source, or null when results span multiple sources. @@ -91,7 +91,7 @@ public sealed partial class UnifiedBenchmarksMeta public UnifiedBenchmarksMeta( string asOf, int modelCount, - global::OpenRouter.OneOf source, + global::OpenRouter.UnifiedBenchmarksMetaSource source, string? citation, string? sourceUrl, string? taskType, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailRequest.g.cs index 71aaba13..3e9f1910 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailRequest.g.cs @@ -21,7 +21,7 @@ public sealed partial class UpdateGuardrailRequest public global::System.Collections.Generic.IList? AllowedProviders { get; set; } /// - /// Builtin content filters to apply. Set to null to remove. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Set to null to remove. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_filter_builtins")] public global::System.Collections.Generic.IList? ContentFilterBuiltins { get; set; } @@ -39,7 +39,7 @@ public sealed partial class UpdateGuardrailRequest public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -63,11 +63,17 @@ public sealed partial class UpdateGuardrailRequest public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) /// @@ -115,7 +121,7 @@ public sealed partial class UpdateGuardrailRequest /// New list of allowed provider IDs /// /// - /// Builtin content filters to apply. Set to null to remove. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. + /// Builtin content filters to apply. Set to null to remove. Every builtin slug supports "block", "redact", and the detect-only "flag" action. /// /// /// Custom regex content filters to apply. Set to null to remove. @@ -124,7 +130,7 @@ public sealed partial class UpdateGuardrailRequest /// New description for the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -136,7 +142,10 @@ public sealed partial class UpdateGuardrailRequest /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model identifiers to exclude from routing (slug or canonical_slug accepted) @@ -167,6 +176,7 @@ public UpdateGuardrailRequest( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -183,6 +193,7 @@ public UpdateGuardrailRequest( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; this.LimitUsd = limitUsd; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailResponseData.g.cs index 7fb8c33d..98eea05e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailResponseData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateGuardrailResponseData.g.cs @@ -46,7 +46,7 @@ public sealed partial class UpdateGuardrailResponseData public string? Description { get; set; } /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr")] public bool? EnforceZdr { get; set; } @@ -70,11 +70,17 @@ public sealed partial class UpdateGuardrailResponseData public bool? EnforceZdrOpenai { get; set; } /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. /// [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_other")] public bool? EnforceZdrOther { get; set; } + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enforce_zdr_xai")] + public bool? EnforceZdrXai { get; set; } + /// /// Unique identifier for the guardrail /// @@ -164,7 +170,7 @@ public sealed partial class UpdateGuardrailResponseData /// Description of the guardrail /// /// - /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. + /// Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. /// /// /// Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. @@ -176,7 +182,10 @@ public sealed partial class UpdateGuardrailResponseData /// Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. /// /// - /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. + /// Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided. + /// + /// + /// Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided. /// /// /// Array of model canonical_slugs to exclude from routing @@ -211,6 +220,7 @@ public UpdateGuardrailResponseData( bool? enforceZdrGoogle, bool? enforceZdrOpenai, bool? enforceZdrOther, + bool? enforceZdrXai, global::System.Collections.Generic.IList? ignoredModels, global::System.Collections.Generic.IList? ignoredProviders, double? limitUsd, @@ -228,6 +238,7 @@ public UpdateGuardrailResponseData( this.EnforceZdrGoogle = enforceZdrGoogle; this.EnforceZdrOpenai = enforceZdrOpenai; this.EnforceZdrOther = enforceZdrOther; + this.EnforceZdrXai = enforceZdrXai; this.Id = id; this.IgnoredModels = ignoredModels; this.IgnoredProviders = ignoredProviders; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs index 10570ceb..0ca5125f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs @@ -30,8 +30,8 @@ public sealed partial class UpdateKeysRequest /// New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. /// [global::System.Text.Json.Serialization.JsonPropertyName("limit_reset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] - public global::OpenRouter.OneOf? LimitReset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetJsonConverter))] + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? LimitReset { get; set; } /// /// New name for the API key @@ -70,7 +70,7 @@ public UpdateKeysRequest( bool? disabled, bool? includeByokInLimit, double? limit, - global::OpenRouter.OneOf? limitReset, + global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? limitReset, string? name) { this.Disabled = disabled; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs index 10bd57bf..e1748fd1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs @@ -19,7 +19,7 @@ public sealed partial class UpdateObservabilityDestinationRequestFilterRules /// [global::System.Text.Json.Serialization.JsonPropertyName("groups")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Groups { get; set; } + public required global::System.Collections.Generic.IList Groups { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,7 +38,7 @@ public sealed partial class UpdateObservabilityDestinationRequestFilterRules [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UpdateObservabilityDestinationRequestFilterRules( - global::System.Collections.Generic.IList groups, + global::System.Collections.Generic.IList groups, bool? enabled) { this.Enabled = enabled; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs deleted file mode 100644 index 666715a9..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItems - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems), - jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs deleted file mode 100644 index aa8f49c3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItems - { - /// - /// Default Value: and - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logic")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter))] - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Logic { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rules")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Rules { 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. - /// - /// - /// - /// Default Value: and - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateObservabilityDestinationRequestFilterRulesGroupsItems( - global::System.Collections.Generic.IList rules, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? logic) - { - this.Logic = logic; - this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateObservabilityDestinationRequestFilterRulesGroupsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs deleted file mode 100644 index f8fc291d..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Default Value: and - /// - public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic - { - /// - /// - /// - And, - /// - /// - /// - Or, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic value) - { - return value switch - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.And => "and", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.Or => "or", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? ToEnum(string value) - { - return value switch - { - "and" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.And, - "or" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.Or, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs deleted file mode 100644 index 53ba6fcf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems), - jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs deleted file mode 100644 index a6cad2c8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("field")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField Field { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operator")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator Operator { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter))] - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Value { 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 UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems( - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField field, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator @operator, - global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? value) - { - this.Field = field; - this.Operator = @operator; - this.Value = value; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs deleted file mode 100644 index 79fd37d4..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs +++ /dev/null @@ -1,111 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField - { - /// - /// - /// - ApiKeyName, - /// - /// - /// - CompletionTokens, - /// - /// - /// - FinishReason, - /// - /// - /// - Input, - /// - /// - /// - Model, - /// - /// - /// - Output, - /// - /// - /// - PromptTokens, - /// - /// - /// - Provider, - /// - /// - /// - SessionId, - /// - /// - /// - TotalCost, - /// - /// - /// - TotalTokens, - /// - /// - /// - UserId, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField value) - { - return value switch - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.ApiKeyName => "api_key_name", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.CompletionTokens => "completion_tokens", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.FinishReason => "finish_reason", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Input => "input", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Model => "model", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Output => "output", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.PromptTokens => "prompt_tokens", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Provider => "provider", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.SessionId => "session_id", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalCost => "total_cost", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalTokens => "total_tokens", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.UserId => "user_id", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? ToEnum(string value) - { - return value switch - { - "api_key_name" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.ApiKeyName, - "completion_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.CompletionTokens, - "finish_reason" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.FinishReason, - "input" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Input, - "model" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Model, - "output" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Output, - "prompt_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.PromptTokens, - "provider" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Provider, - "session_id" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.SessionId, - "total_cost" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalCost, - "total_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalTokens, - "user_id" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.UserId, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs deleted file mode 100644 index 55e38ddc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs +++ /dev/null @@ -1,117 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator - { - /// - /// - /// - Contains, - /// - /// - /// - EndsWith, - /// - /// - /// - Equals, - /// - /// - /// - Exists, - /// - /// - /// - Gt, - /// - /// - /// - Gte, - /// - /// - /// - Lt, - /// - /// - /// - Lte, - /// - /// - /// - NotContains, - /// - /// - /// - NotEquals, - /// - /// - /// - NotExists, - /// - /// - /// - Regex, - /// - /// - /// - StartsWith, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator value) - { - return value switch - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Contains => "contains", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.EndsWith => "ends_with", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Equals => "equals", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Exists => "exists", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gt => "gt", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gte => "gte", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lt => "lt", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lte => "lte", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotContains => "not_contains", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotEquals => "not_equals", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotExists => "not_exists", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Regex => "regex", - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.StartsWith => "starts_with", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? ToEnum(string value) - { - return value switch - { - "contains" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Contains, - "ends_with" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.EndsWith, - "equals" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Equals, - "exists" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Exists, - "gt" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gt, - "gte" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gte, - "lt" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lt, - "lte" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lte, - "not_contains" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotContains, - "not_equals" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotEquals, - "not_exists" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotExists, - "regex" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Regex, - "starts_with" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.StartsWith, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs deleted file mode 100644 index d18c4dbf..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), - jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs deleted file mode 100644 index e6ff8b79..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 { get; init; } -#else - public string? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1))] -#endif - public bool IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 != null; - - /// - /// - /// - public bool TryPickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; - return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; - } - - /// - /// - /// - public string PickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1() => IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 - ? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 { get; init; } -#else - public double? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2))] -#endif - public bool IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 != null; - - /// - /// - /// - public bool TryPickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out double? value) - { - value = UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; - return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public double PickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2() => IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 - ? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(string value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue((string?)value); - - /// - /// - /// - public static implicit operator string?(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue @this) => @this.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; - - /// - /// - /// - public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(string? value) - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = value; - } - - /// - /// - /// - public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue FromUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1(string? value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(value); - - /// - /// - /// - public static implicit operator UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(double value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue((double?)value); - - /// - /// - /// - public static implicit operator double?(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue @this) => @this.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; - - /// - /// - /// - public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(double? value) - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = value; - } - - /// - /// - /// - public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue FromUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2(double? value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(value); - - /// - /// - /// - public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue( - string? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, - double? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 - ) - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public object? Object => - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 as object ?? - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.ToString() ?? - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && !IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 || !IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, - global::System.Func? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 != null) - { - return updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); - } - else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 != null) - { - return updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, - - global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) - { - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); - } - else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) - { - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, - global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) - { - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); - } - else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) - { - updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, - typeof(string), - UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2, - typeof(double), - }; - 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(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, other.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2, other.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj1, UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj1, UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpsertWorkspaceBudgetResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpsertWorkspaceBudgetResponseData.g.cs index 40ff7c0a..879a751c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpsertWorkspaceBudgetResponseData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpsertWorkspaceBudgetResponseData.g.cs @@ -33,9 +33,9 @@ public sealed partial class UpsertWorkspaceBudgetResponseData /// Interval at which spend resets. Null means a lifetime (one-time) budget. /// [global::System.Text.Json.Serialization.JsonPropertyName("reset_interval")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpsertWorkspaceBudgetResponseDataResetIntervalJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf ResetInterval { get; set; } + public required global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval ResetInterval { get; set; } /// /// ISO 8601 timestamp of when the budget was last updated @@ -85,7 +85,7 @@ public UpsertWorkspaceBudgetResponseData( string createdAt, global::System.Guid id, double limitUsd, - global::OpenRouter.OneOf resetInterval, + global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval resetInterval, string updatedAt, global::System.Guid workspaceId) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Usage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Usage.g.cs index 51cbdfd9..d5f3020c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.Usage.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Usage.g.cs @@ -20,7 +20,7 @@ public sealed partial class Usage /// [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens_details")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.UsageInputTokensDetails InputTokensDetails { get; set; } + public required global::OpenRouter.OpenAiResponsesUsageInputTokensDetails InputTokensDetails { get; set; } /// /// @@ -34,7 +34,7 @@ public sealed partial class Usage /// [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens_details")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.UsageOutputTokensDetails OutputTokensDetails { get; set; } + public required global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails OutputTokensDetails { get; set; } /// /// @@ -61,6 +61,12 @@ public sealed partial class Usage [global::System.Text.Json.Serialization.JsonPropertyName("is_byok")] public bool? IsByok { get; set; } + /// + /// Usage for server-side tool execution (e.g., web search) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_tool_use_details")] + public global::OpenRouter.ServerToolUseDetails? ServerToolUseDetails { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -82,18 +88,22 @@ public sealed partial class Usage /// /// Whether a request was made using a Bring Your Own Key configuration /// + /// + /// Usage for server-side tool execution (e.g., web search) + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Usage( int inputTokens, - global::OpenRouter.UsageInputTokensDetails inputTokensDetails, + global::OpenRouter.OpenAiResponsesUsageInputTokensDetails inputTokensDetails, int outputTokens, - global::OpenRouter.UsageOutputTokensDetails outputTokensDetails, + global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails outputTokensDetails, int totalTokens, double? cost, global::OpenRouter.UsageCostDetails? costDetails, - bool? isByok) + bool? isByok, + global::OpenRouter.ServerToolUseDetails? serverToolUseDetails) { this.InputTokens = inputTokens; this.InputTokensDetails = inputTokensDetails ?? throw new global::System.ArgumentNullException(nameof(inputTokensDetails)); @@ -103,6 +113,7 @@ public Usage( this.Cost = cost; this.CostDetails = costDetails; this.IsByok = isByok; + this.ServerToolUseDetails = serverToolUseDetails; } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.Json.g.cs deleted file mode 100644 index 24e0beb3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class UsageInputTokensDetails - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.UsageInputTokensDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.UsageInputTokensDetails), - jsonSerializerContext) as global::OpenRouter.UsageInputTokensDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.UsageInputTokensDetails? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.UsageInputTokensDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.UsageInputTokensDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UsageInputTokensDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.g.cs deleted file mode 100644 index bafac4f5..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageInputTokensDetails.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class UsageInputTokensDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int CachedTokens { 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 UsageInputTokensDetails( - int cachedTokens) - { - this.CachedTokens = cachedTokens; - } - - /// - /// Initializes a new instance of the class. - /// - public UsageInputTokensDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.Json.g.cs deleted file mode 100644 index d6faa891..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class UsageOutputTokensDetails - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.UsageOutputTokensDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.UsageOutputTokensDetails), - jsonSerializerContext) as global::OpenRouter.UsageOutputTokensDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.UsageOutputTokensDetails? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.UsageOutputTokensDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.UsageOutputTokensDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UsageOutputTokensDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.g.cs deleted file mode 100644 index 62653751..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UsageOutputTokensDetails.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class UsageOutputTokensDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_tokens")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int ReasoningTokens { 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 UsageOutputTokensDetails( - int reasoningTokens) - { - this.ReasoningTokens = reasoningTokens; - } - - /// - /// Initializes a new instance of the class. - /// - public UsageOutputTokensDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs index 2dc0a220..be11488b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs @@ -194,6 +194,12 @@ public sealed partial class VideoGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("decart")] public object? Decart { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepgram")] + public object? Deepgram { get; set; } + /// /// /// @@ -242,6 +248,12 @@ public sealed partial class VideoGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("fireworks")] public object? Fireworks { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fish-audio")] + public object? FishAudio { get; set; } + /// /// /// @@ -362,6 +374,12 @@ public sealed partial class VideoGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("klusterai")] public object? Klusterai { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("krea")] + public object? Krea { get; set; } + /// /// /// @@ -593,8 +611,14 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("sakana-ai")] - public object? SakanaAi { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sail-research")] + public object? SailResearch { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sakana")] + public object? Sakana { get; set; } /// /// @@ -662,6 +686,12 @@ public sealed partial class VideoGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("targon")] public object? Targon { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tencent")] + public object? Tencent { get; set; } + /// /// /// @@ -768,6 +798,7 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -776,6 +807,7 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -796,6 +828,7 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -834,7 +867,8 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// - /// + /// + /// /// /// /// @@ -846,6 +880,7 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -892,6 +927,7 @@ public VideoGenerationRequestProviderOptions( object? crusoe, object? darkbloom, object? decart, + object? deepgram, object? deepinfra, object? deepseek, object? dekallm, @@ -900,6 +936,7 @@ public VideoGenerationRequestProviderOptions( object? fakeProvider, object? featherless, object? fireworks, + object? fishAudio, object? friendli, object? gmicloud, object? googleAiStudio, @@ -920,6 +957,7 @@ public VideoGenerationRequestProviderOptions( object? ioNet, object? ionstream, object? klusterai, + object? krea, object? lambda, object? lepton, object? liquid, @@ -958,7 +996,8 @@ public VideoGenerationRequestProviderOptions( object? reka, object? relace, object? replicate, - object? sakanaAi, + object? sailResearch, + object? sakana, object? sambanova, object? sambanovaCloaked, object? seed, @@ -970,6 +1009,7 @@ public VideoGenerationRequestProviderOptions( object? streamlake, object? switchpoint, object? targon, + object? tencent, object? tenstorrent, object? together, object? togetherLite, @@ -1013,6 +1053,7 @@ public VideoGenerationRequestProviderOptions( this.Crusoe = crusoe; this.Darkbloom = darkbloom; this.Decart = decart; + this.Deepgram = deepgram; this.Deepinfra = deepinfra; this.Deepseek = deepseek; this.Dekallm = dekallm; @@ -1021,6 +1062,7 @@ public VideoGenerationRequestProviderOptions( this.FakeProvider = fakeProvider; this.Featherless = featherless; this.Fireworks = fireworks; + this.FishAudio = fishAudio; this.Friendli = friendli; this.Gmicloud = gmicloud; this.GoogleAiStudio = googleAiStudio; @@ -1041,6 +1083,7 @@ public VideoGenerationRequestProviderOptions( this.IoNet = ioNet; this.Ionstream = ionstream; this.Klusterai = klusterai; + this.Krea = krea; this.Lambda = lambda; this.Lepton = lepton; this.Liquid = liquid; @@ -1079,7 +1122,8 @@ public VideoGenerationRequestProviderOptions( this.Reka = reka; this.Relace = relace; this.Replicate = replicate; - this.SakanaAi = sakanaAi; + this.SailResearch = sailResearch; + this.Sakana = sakana; this.Sambanova = sambanova; this.SambanovaCloaked = sambanovaCloaked; this.Seed = seed; @@ -1091,6 +1135,7 @@ public VideoGenerationRequestProviderOptions( this.Streamlake = streamlake; this.Switchpoint = switchpoint; this.Targon = targon; + this.Tencent = tencent; this.Tenstorrent = tenstorrent; this.Together = together; this.TogetherLite = togetherLite; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.Json.g.cs new file mode 100644 index 00000000..5a98b413 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsDeepgram + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsDeepgram? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsDeepgram), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.g.cs new file mode 100644 index 00000000..e03a9eea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsDeepgram + { + + /// + /// 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.VideoGenerationRequestProviderOptionsDeepgram2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram2.Json.g.cs new file mode 100644 index 00000000..0b8b1c9f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsDeepgram2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsDeepgram2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsDeepgram2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsDeepgram2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram2.g.cs new file mode 100644 index 00000000..a615f0b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsDeepgram2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsDeepgram2 + { + + /// + /// 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.VideoGenerationRequestProviderOptionsFishAudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio.Json.g.cs new file mode 100644 index 00000000..bfe6144e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsFishAudio + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsFishAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsFishAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio.g.cs new file mode 100644 index 00000000..1bba7cf0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsFishAudio + { + + /// + /// 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.VideoGenerationRequestProviderOptionsFishAudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio2.Json.g.cs new file mode 100644 index 00000000..f5713ad5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsFishAudio2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsFishAudio2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsFishAudio2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsFishAudio2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio2.g.cs new file mode 100644 index 00000000..bb8fa430 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsFishAudio2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsFishAudio2 + { + + /// + /// 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.VideoGenerationRequestProviderOptionsKrea.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea.Json.g.cs new file mode 100644 index 00000000..ffa496da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsKrea + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsKrea? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsKrea), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsKrea; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsKrea? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsKrea? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsKrea), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsKrea; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea.g.cs new file mode 100644 index 00000000..0905ea1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsKrea + { + + /// + /// 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.VideoGenerationRequestProviderOptionsKrea2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea2.Json.g.cs new file mode 100644 index 00000000..db8ff758 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsKrea2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsKrea2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsKrea2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsKrea2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsKrea2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsKrea2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsKrea2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsKrea2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea2.g.cs new file mode 100644 index 00000000..4feb104b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsKrea2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsKrea2 + { + + /// + /// 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.VideoGenerationRequestProviderOptionsSailResearch.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch.Json.g.cs new file mode 100644 index 00000000..4d7ccbbe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsSailResearch + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsSailResearch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsSailResearch), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch.g.cs new file mode 100644 index 00000000..6afb3754 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsSailResearch + { + + /// + /// 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.VideoGenerationRequestProviderOptionsSailResearch2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch2.Json.g.cs new file mode 100644 index 00000000..9429311a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsSailResearch2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsSailResearch2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsSailResearch2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSailResearch2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch2.g.cs new file mode 100644 index 00000000..5cc5bfd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSailResearch2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsSailResearch2 + { + + /// + /// 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.VideoGenerationRequestProviderOptionsSakana.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana.Json.g.cs new file mode 100644 index 00000000..0fb272e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsSakana + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakana? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSakana), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakana; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakana? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsSakana? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsSakana), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakana; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana.g.cs new file mode 100644 index 00000000..018baa5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsSakana + { + + /// + /// 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.VideoGenerationRequestProviderOptionsSakana2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana2.Json.g.cs new file mode 100644 index 00000000..3ca14a43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsSakana2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakana2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSakana2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakana2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakana2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsSakana2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsSakana2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakana2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana2.g.cs new file mode 100644 index 00000000..0029f07a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakana2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsSakana2 + { + + /// + /// 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.VideoGenerationRequestProviderOptionsSakanaAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi.Json.g.cs deleted file mode 100644 index 49480172..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class VideoGenerationRequestProviderOptionsSakanaAi - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi), - jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.VideoGenerationRequestProviderOptionsSakanaAi? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.VideoGenerationRequestProviderOptionsSakanaAi), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi.g.cs deleted file mode 100644 index 02fbcf2c..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class VideoGenerationRequestProviderOptionsSakanaAi - { - - /// - /// 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.VideoGenerationRequestProviderOptionsSakanaAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi2.Json.g.cs deleted file mode 100644 index 0e9c0fc0..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class VideoGenerationRequestProviderOptionsSakanaAi2 - { - /// - /// 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 generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi2), - jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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.VideoGenerationRequestProviderOptionsSakanaAi2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - 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.VideoGenerationRequestProviderOptionsSakanaAi2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsSakanaAi2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// 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) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi2.g.cs deleted file mode 100644 index 2d85a078..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsSakanaAi2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Any type - /// - public sealed partial class VideoGenerationRequestProviderOptionsSakanaAi2 - { - - /// - /// 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.VideoGenerationRequestProviderOptionsTencent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent.Json.g.cs new file mode 100644 index 00000000..ac03d9b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsTencent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTencent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTencent), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsTencent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTencent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsTencent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsTencent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsTencent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent.g.cs new file mode 100644 index 00000000..c16c0d6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsTencent + { + + /// + /// 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.VideoGenerationRequestProviderOptionsTencent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent2.Json.g.cs new file mode 100644 index 00000000..f054894f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsTencent2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTencent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTencent2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsTencent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTencent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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.VideoGenerationRequestProviderOptionsTencent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + 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.VideoGenerationRequestProviderOptionsTencent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsTencent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent2.g.cs new file mode 100644 index 00000000..8e94e9d7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTencent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsTencent2 + { + + /// + /// 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.WorkspaceBudget.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.WorkspaceBudget.g.cs index 2e0d09c8..2e93237d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.WorkspaceBudget.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.WorkspaceBudget.g.cs @@ -33,9 +33,9 @@ public sealed partial class WorkspaceBudget /// Interval at which spend resets. Null means a lifetime (one-time) budget. /// [global::System.Text.Json.Serialization.JsonPropertyName("reset_interval")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WorkspaceBudgetResetIntervalJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.OneOf ResetInterval { get; set; } + public required global::OpenRouter.WorkspaceBudgetResetInterval ResetInterval { get; set; } /// /// ISO 8601 timestamp of when the budget was last updated @@ -85,7 +85,7 @@ public WorkspaceBudget( string createdAt, global::System.Guid id, double limitUsd, - global::OpenRouter.OneOf resetInterval, + global::OpenRouter.WorkspaceBudgetResetInterval resetInterval, string updatedAt, global::System.Guid workspaceId) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.GetModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.GetModels.g.cs index 938a8f26..508260b1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.GetModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.GetModels.g.cs @@ -27,6 +27,8 @@ public partial class ModelsClient }; partial void PrepareGetModelsArguments( global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit, ref global::OpenRouter.ModelsGetParametersCategory? category, ref string? supportedParameters, ref string? outputModalities, @@ -43,10 +45,24 @@ partial void PrepareGetModelsArguments( ref string? providers, ref global::OpenRouter.ModelsGetParametersDistillable? distillable, ref global::OpenRouter.ModelsGetParametersZdr? zdr, - ref global::OpenRouter.ModelsGetParametersRegion? region); + ref global::OpenRouter.ModelsGetParametersRegion? region, + ref double? minOutputPrice, + ref double? maxOutputPrice, + ref int? minAgeDays, + ref int? maxAgeDays, + ref double? minIntelligenceIndex, + ref double? maxIntelligenceIndex, + ref double? minCodingIndex, + ref double? maxCodingIndex, + ref double? minAgenticIndex, + ref double? maxAgenticIndex, + ref double? minToolSuccessRate, + ref double? maxToolSuccessRate); partial void PrepareGetModelsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit, global::OpenRouter.ModelsGetParametersCategory? category, string? supportedParameters, string? outputModalities, @@ -63,7 +79,19 @@ partial void PrepareGetModelsRequest( string? providers, global::OpenRouter.ModelsGetParametersDistillable? distillable, global::OpenRouter.ModelsGetParametersZdr? zdr, - global::OpenRouter.ModelsGetParametersRegion? region); + global::OpenRouter.ModelsGetParametersRegion? region, + double? minOutputPrice, + double? maxOutputPrice, + int? minAgeDays, + int? maxAgeDays, + double? minIntelligenceIndex, + double? maxIntelligenceIndex, + double? minCodingIndex, + double? maxCodingIndex, + double? minAgenticIndex, + double? maxAgenticIndex, + double? minToolSuccessRate, + double? maxToolSuccessRate); partial void ProcessGetModelsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -76,13 +104,19 @@ partial void ProcessGetModelsResponseContent( /// /// List all models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// /// Filter models by use case category /// /// /// /// - /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// /// /// @@ -103,10 +137,24 @@ partial void ProcessGetModelsResponseContent( /// /// Filter to models with endpoints in the given data region. Currently only "eu" is supported. /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// /// 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 GetModelsAsync( + int? offset = default, + int? limit = default, global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, @@ -124,10 +172,24 @@ partial void ProcessGetModelsResponseContent( global::OpenRouter.ModelsGetParametersDistillable? distillable = default, global::OpenRouter.ModelsGetParametersZdr? zdr = default, global::OpenRouter.ModelsGetParametersRegion? region = default, + double? minOutputPrice = default, + double? maxOutputPrice = default, + int? minAgeDays = default, + int? maxAgeDays = default, + double? minIntelligenceIndex = default, + double? maxIntelligenceIndex = default, + double? minCodingIndex = default, + double? maxCodingIndex = default, + double? minAgenticIndex = default, + double? maxAgenticIndex = default, + double? minToolSuccessRate = default, + double? maxToolSuccessRate = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await GetModelsAsResponseAsync( + offset: offset, + limit: limit, category: category, supportedParameters: supportedParameters, outputModalities: outputModalities, @@ -145,6 +207,18 @@ partial void ProcessGetModelsResponseContent( distillable: distillable, zdr: zdr, region: region, + minOutputPrice: minOutputPrice, + maxOutputPrice: maxOutputPrice, + minAgeDays: minAgeDays, + maxAgeDays: maxAgeDays, + minIntelligenceIndex: minIntelligenceIndex, + maxIntelligenceIndex: maxIntelligenceIndex, + minCodingIndex: minCodingIndex, + maxCodingIndex: maxCodingIndex, + minAgenticIndex: minAgenticIndex, + maxAgenticIndex: maxAgenticIndex, + minToolSuccessRate: minToolSuccessRate, + maxToolSuccessRate: maxToolSuccessRate, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -154,13 +228,19 @@ partial void ProcessGetModelsResponseContent( /// /// List all models and their properties /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// /// Filter models by use case category /// /// /// /// - /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved. /// /// /// @@ -181,10 +261,24 @@ partial void ProcessGetModelsResponseContent( /// /// Filter to models with endpoints in the given data region. Currently only "eu" is supported. /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// /// 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> GetModelsAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, @@ -202,6 +296,18 @@ partial void ProcessGetModelsResponseContent( global::OpenRouter.ModelsGetParametersDistillable? distillable = default, global::OpenRouter.ModelsGetParametersZdr? zdr = default, global::OpenRouter.ModelsGetParametersRegion? region = default, + double? minOutputPrice = default, + double? maxOutputPrice = default, + int? minAgeDays = default, + int? maxAgeDays = default, + double? minIntelligenceIndex = default, + double? maxIntelligenceIndex = default, + double? minCodingIndex = default, + double? maxCodingIndex = default, + double? minAgenticIndex = default, + double? maxAgenticIndex = default, + double? minToolSuccessRate = default, + double? maxToolSuccessRate = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -209,6 +315,8 @@ partial void ProcessGetModelsResponseContent( client: HttpClient); PrepareGetModelsArguments( httpClient: HttpClient, + offset: ref offset, + limit: ref limit, category: ref category, supportedParameters: ref supportedParameters, outputModalities: ref outputModalities, @@ -225,7 +333,19 @@ partial void ProcessGetModelsResponseContent( providers: ref providers, distillable: ref distillable, zdr: ref zdr, - region: ref region); + region: ref region, + minOutputPrice: ref minOutputPrice, + maxOutputPrice: ref maxOutputPrice, + minAgeDays: ref minAgeDays, + maxAgeDays: ref maxAgeDays, + minIntelligenceIndex: ref minIntelligenceIndex, + maxIntelligenceIndex: ref maxIntelligenceIndex, + minCodingIndex: ref minCodingIndex, + maxCodingIndex: ref maxCodingIndex, + minAgenticIndex: ref minAgenticIndex, + maxAgenticIndex: ref maxAgenticIndex, + minToolSuccessRate: ref minToolSuccessRate, + maxToolSuccessRate: ref maxToolSuccessRate); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( @@ -254,6 +374,8 @@ partial void ProcessGetModelsResponseContent( path: "/models", baseUri: HttpClient.BaseAddress); __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("category", category?.ToValueString()) .AddOptionalParameter("supported_parameters", supportedParameters) .AddOptionalParameter("output_modalities", outputModalities) @@ -271,6 +393,18 @@ partial void ProcessGetModelsResponseContent( .AddOptionalParameter("distillable", distillable?.ToValueString()) .AddOptionalParameter("zdr", zdr?.ToValueString()) .AddOptionalParameter("region", region?.ToValueString()) + .AddOptionalParameter("min_output_price", minOutputPrice?.ToString()) + .AddOptionalParameter("max_output_price", maxOutputPrice?.ToString()) + .AddOptionalParameter("min_age_days", minAgeDays?.ToString()) + .AddOptionalParameter("max_age_days", maxAgeDays?.ToString()) + .AddOptionalParameter("min_intelligence_index", minIntelligenceIndex?.ToString()) + .AddOptionalParameter("max_intelligence_index", maxIntelligenceIndex?.ToString()) + .AddOptionalParameter("min_coding_index", minCodingIndex?.ToString()) + .AddOptionalParameter("max_coding_index", maxCodingIndex?.ToString()) + .AddOptionalParameter("min_agentic_index", minAgenticIndex?.ToString()) + .AddOptionalParameter("max_agentic_index", maxAgenticIndex?.ToString()) + .AddOptionalParameter("min_tool_success_rate", minToolSuccessRate?.ToString()) + .AddOptionalParameter("max_tool_success_rate", maxToolSuccessRate?.ToString()) ; var __path = __pathBuilder.ToString(); __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -312,6 +446,8 @@ partial void ProcessGetModelsResponseContent( PrepareGetModelsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + offset: offset, + limit: limit, category: category, supportedParameters: supportedParameters, outputModalities: outputModalities, @@ -328,7 +464,19 @@ partial void ProcessGetModelsResponseContent( providers: providers, distillable: distillable, zdr: zdr, - region: region); + region: region, + minOutputPrice: minOutputPrice, + maxOutputPrice: maxOutputPrice, + minAgeDays: minAgeDays, + maxAgeDays: maxAgeDays, + minIntelligenceIndex: minIntelligenceIndex, + maxIntelligenceIndex: maxIntelligenceIndex, + minCodingIndex: minCodingIndex, + maxCodingIndex: maxCodingIndex, + minAgenticIndex: minAgenticIndex, + maxAgenticIndex: maxAgenticIndex, + minToolSuccessRate: minToolSuccessRate, + maxToolSuccessRate: maxToolSuccessRate); return __httpRequest; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListModelsUser.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListModelsUser.g.cs index d04bba47..d6b90279 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListModelsUser.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListModelsUser.g.cs @@ -26,10 +26,14 @@ public partial class ModelsClient { s_ListModelsUserSecurityRequirement0, }; partial void PrepareListModelsUserArguments( - global::System.Net.Http.HttpClient httpClient); + global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit); partial void PrepareListModelsUserRequest( global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit); partial void ProcessListModelsUserResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -43,14 +47,24 @@ partial void ProcessListModelsUserResponseContent( /// List models filtered by user provider preferences, privacy settings, and guardrails
/// List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through `eu.openrouter.ai/api/v1/...` the results will be filtered to models that satisfy [EU in-region routing](https://openrouter.ai/docs/guides/privacy/provider-logging#enterprise-eu-in-region-routing). ///
+ /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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 ListModelsUserAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ListModelsUserAsResponseAsync( + offset: offset, + limit: limit, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -61,17 +75,27 @@ partial void ProcessListModelsUserResponseContent( /// List models filtered by user provider preferences, privacy settings, and guardrails
/// List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through `eu.openrouter.ai/api/v1/...` the results will be filtered to models that satisfy [EU in-region routing](https://openrouter.ai/docs/guides/privacy/provider-logging#enterprise-eu-in-region-routing). ///
+ /// + /// Default Value: 0 + /// + /// + /// Default Value: 500 + /// /// 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> ListModelsUserAsResponseAsync( + int? offset = default, + int? limit = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareListModelsUserArguments( - httpClient: HttpClient); + httpClient: HttpClient, + offset: ref offset, + limit: ref limit); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( @@ -99,6 +123,10 @@ partial void ProcessListModelsUserResponseContent( var __pathBuilder = new global::OpenRouter.PathBuilder( path: "/models/user", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; var __path = __pathBuilder.ToString(); __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -138,7 +166,9 @@ partial void ProcessListModelsUserResponseContent( request: __httpRequest); PrepareListModelsUserRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest); + httpRequestMessage: __httpRequest, + offset: offset, + limit: limit); return __httpRequest; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs index 4c887a1c..1908b8d0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs @@ -562,7 +562,7 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( /// public async global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( string code, - global::OpenRouter.OneOf? codeChallengeMethod = default, + global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod = default, string? codeVerifier = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.CreateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.CreateObservabilityDestination.g.cs index ebe135e6..11c39b55 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.CreateObservabilityDestination.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.CreateObservabilityDestination.g.cs @@ -660,7 +660,7 @@ partial void ProcessCreateObservabilityDestinationResponseContent( global::OpenRouter.CreateObservabilityDestinationRequestType type, global::System.Collections.Generic.IList? apiKeyHashes = default, bool? enabled = default, - global::OpenRouter.ObservabilityFilterRulesConfig? filterRules = default, + global::OpenRouter.ObservabilityFilterRulesConfigNullable? filterRules = default, bool? privacyMode = default, double? samplingRate = default, global::System.Guid? workspaceId = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.ListObservabilityDestinations.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.ListObservabilityDestinations.g.cs index 5adec5dd..9cbfd7bd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.ListObservabilityDestinations.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ObservabilityClient.ListObservabilityDestinations.g.cs @@ -49,8 +49,12 @@ partial void ProcessListObservabilityDestinationsResponseContent( /// List observability destinations
/// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -76,8 +80,12 @@ partial void ProcessListObservabilityDestinationsResponseContent( /// List observability destinations
/// List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OrganizationClient.ListOrganizationMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OrganizationClient.ListOrganizationMembers.g.cs index cf7171ac..cbbe66e2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OrganizationClient.ListOrganizationMembers.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OrganizationClient.ListOrganizationMembers.g.cs @@ -47,8 +47,12 @@ partial void ProcessListOrganizationMembersResponseContent( /// List organization members
/// List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -71,8 +75,12 @@ partial void ProcessListOrganizationMembersResponseContent( /// List organization members
/// List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsChatCompletions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsChatCompletions.g.cs index 52780e69..8b13979e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsChatCompletions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsChatCompletions.g.cs @@ -670,7 +670,7 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( ///
/// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -715,9 +715,16 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( /// /// Plugins you want to enable for this request, including their settings. /// + /// + /// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance. + /// /// /// Presence penalty (-2.0 to 2.0) /// + /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -806,17 +813,20 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( global::System.Collections.Generic.IList? models = default, bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, + global::OpenRouter.Prediction? prediction = default, double? presencePenalty = default, + string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, - global::OpenRouter.OneOf? reasoningEffort = default, + global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort = default, double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ChatRequestServiceTier? serviceTier = default, string? sessionId = default, - global::OpenRouter.ChatRequestStop? stop = default, + global::OpenRouter.OneOf? stop = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? stream = default, global::OpenRouter.ChatStreamOptions? streamOptions = default, @@ -850,7 +860,10 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( Models = models, ParallelToolCalls = parallelToolCalls, Plugins = plugins, + Prediction = prediction, PresencePenalty = presencePenalty, + PromptCacheKey = promptCacheKey, + PromptCacheOptions = promptCacheOptions, Provider = provider, Reasoning = reasoning, ReasoningEffort = reasoningEffort, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsMessages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsMessages.g.cs index 9a99dc40..774be6e7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsMessages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsMessages.g.cs @@ -670,7 +670,7 @@ partial void ProcessCreatePresetsMessagesResponseContent( ///
/// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs index 24407345..717e4aef 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs @@ -671,7 +671,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// /// /// - /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. /// /// /// Debug options for inspecting request transformations (streaming only) @@ -698,9 +698,14 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// Plugins you want to enable for this request, including their settings. /// /// - /// + /// + /// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. + /// /// /// + /// + /// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + /// /// /// When multiple model providers are available, optionally indicate your routing preference. /// @@ -711,7 +716,9 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// Any type /// /// - /// + /// + /// Default Value: auto + /// /// /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. /// @@ -760,14 +767,15 @@ partial void ProcessCreatePresetsResponsesResponseContent( bool? parallelToolCalls = default, global::System.Collections.Generic.IList? plugins = default, double? presencePenalty = default, - string? previousResponseId = default, + object? previousResponseId = default, global::OpenRouter.StoredPromptTemplate? prompt = default, string? promptCacheKey = default, + global::OpenRouter.PromptCacheOptions? promptCacheOptions = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ReasoningConfig? reasoning = default, object? route = default, string? safetyIdentifier = default, - global::OpenRouter.OneOf? serviceTier = default, + global::OpenRouter.ResponsesRequestServiceTier? serviceTier = default, string? sessionId = default, global::System.Collections.Generic.IList? stopServerToolsWhen = default, bool? store = default, @@ -807,6 +815,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( PreviousResponseId = previousResponseId, Prompt = prompt, PromptCacheKey = promptCacheKey, + PromptCacheOptions = promptCacheOptions, Provider = provider, Reasoning = reasoning, Route = route, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresetVersions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresetVersions.g.cs index aa8b61c0..3cca491b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresetVersions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresetVersions.g.cs @@ -50,8 +50,12 @@ partial void ProcessListPresetVersionsResponseContent( /// Lists all versions of a preset, ordered by version number ascending (oldest first). ///
/// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -77,8 +81,12 @@ partial void ProcessListPresetVersionsResponseContent( /// Lists all versions of a preset, ordered by version number ascending (oldest first). ///
/// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresets.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresets.g.cs index ddde0cb1..d1e36cbc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresets.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.ListPresets.g.cs @@ -47,8 +47,12 @@ partial void ProcessListPresetsResponseContent( /// List presets
/// Lists all presets for the authenticated user, ordered by most recently updated first. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -71,8 +75,12 @@ partial void ProcessListPresetsResponseContent( /// List presets
/// Lists all presets for the authenticated user, ordered by most recently updated first. ///
- /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SttClient.CreateAudioTranscriptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SttClient.CreateAudioTranscriptions.g.cs index ab94bc9d..c8509ce8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SttClient.CreateAudioTranscriptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SttClient.CreateAudioTranscriptions.g.cs @@ -43,7 +43,7 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( } /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -731,7 +731,7 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( } /// /// Create transcription
- /// Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text. + /// Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text. ///
/// /// Base64-encoded audio to transcribe @@ -745,9 +745,15 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( /// /// Provider-specific passthrough configuration /// + /// + /// Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers. + /// /// /// Sampling temperature for transcription /// + /// + /// Timestamp detail levels to include when response_format is "verbose_json". "segment" returns segment-level timestamps; "word" additionally returns word-level timestamps in the words array. Ignored unless response_format is "verbose_json". + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -756,7 +762,9 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( string model, string? language = default, global::OpenRouter.SttRequestProvider? provider = default, + global::OpenRouter.SttRequestResponseFormat? responseFormat = default, double? temperature = default, + global::System.Collections.Generic.IList? timestampGranularities = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -766,7 +774,9 @@ partial void ProcessCreateAudioTranscriptionsResponseContent( Language = language, Model = model, Provider = provider, + ResponseFormat = responseFormat, Temperature = temperature, + TimestampGranularities = timestampGranularities, }; return await CreateAudioTranscriptionsAsync( diff --git a/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.BulkRemoveWorkspaceMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.BulkRemoveWorkspaceMembers.g.cs index 21d9e482..d84aaad0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.BulkRemoveWorkspaceMembers.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.BulkRemoveWorkspaceMembers.g.cs @@ -45,7 +45,7 @@ partial void ProcessBulkRemoveWorkspaceMembersResponseContent( /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// @@ -71,7 +71,7 @@ partial void ProcessBulkRemoveWorkspaceMembersResponseContent( } /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// @@ -629,7 +629,7 @@ partial void ProcessBulkRemoveWorkspaceMembersResponseContent( } /// /// Bulk remove members from a workspace
- /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required. + /// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required. ///
/// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaceMembers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaceMembers.g.cs new file mode 100644 index 00000000..6cb36558 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaceMembers.g.cs @@ -0,0 +1,604 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class WorkspacesClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListWorkspaceMembersSecurityRequirement0 = + 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_ListWorkspaceMembersSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListWorkspaceMembersSecurityRequirement0, + }; + partial void PrepareListWorkspaceMembersArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + ref int? offset, + ref int? limit); + partial void PrepareListWorkspaceMembersRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + int? offset, + int? limit); + partial void ProcessListWorkspaceMembersResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListWorkspaceMembersResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List workspace members
+ /// List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// + /// 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 ListWorkspaceMembersAsync( + string id, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListWorkspaceMembersAsResponseAsync( + id: id, + offset: offset, + limit: limit, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List workspace members
+ /// List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// + /// 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> ListWorkspaceMembersAsResponseAsync( + string id, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListWorkspaceMembersArguments( + httpClient: HttpClient, + id: ref id, + offset: ref offset, + limit: ref limit); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListWorkspaceMembersSecurityRequirements, + operationName: "ListWorkspaceMembersAsync"); + + 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: $"/workspaces/{id}/members", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; + 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); + PrepareListWorkspaceMembersRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + offset: offset, + limit: limit); + + 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: "ListWorkspaceMembers", + methodName: "ListWorkspaceMembersAsync", + pathTemplate: "$\"/workspaces/{id}/members\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListWorkspaceMembers", + methodName: "ListWorkspaceMembersAsync", + pathTemplate: "$\"/workspaces/{id}/members\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListWorkspaceMembers", + methodName: "ListWorkspaceMembersAsync", + pathTemplate: "$\"/workspaces/{id}/members\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListWorkspaceMembersResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListWorkspaceMembers", + methodName: "ListWorkspaceMembersAsync", + pathTemplate: "$\"/workspaces/{id}/members\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListWorkspaceMembers", + methodName: "ListWorkspaceMembersAsync", + pathTemplate: "$\"/workspaces/{id}/members\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + 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); + ProcessListWorkspaceMembersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ListWorkspaceMembersResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::OpenRouter.ListWorkspaceMembersResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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/Generated/OpenRouter.WorkspacesClient.ListWorkspaces.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaces.g.cs index 21c32350..d2836263 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaces.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.WorkspacesClient.ListWorkspaces.g.cs @@ -47,8 +47,12 @@ partial void ProcessListWorkspacesResponseContent( /// List workspaces
/// List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -71,8 +75,12 @@ partial void ProcessListWorkspacesResponseContent( /// List workspaces
/// List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: 50 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index f071d4ed..ef43c2af 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -229,14 +229,7 @@ "description": "The authorization code received from the OAuth redirect" }, "code_challenge_method": { - "oneOf": [ - { - "$ref": "#/components/schemas/AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod", "description": "The method used to generate the code challenge" }, "code_verifier": { @@ -449,6 +442,16 @@ } } }, + "413": { + "description": "Payload Too Large - Request payload exceeds size limits", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PayloadTooLargeResponse" + } + } + } + }, "429": { "description": "Too Many Requests - Rate limit exceeded", "content": { @@ -703,7 +706,7 @@ "post": { "operationId": "create-audio-transcriptions", "summary": "Create transcription", - "description": "Transcribes audio into text. Accepts base64-encoded audio input and returns the transcribed text.", + "description": "Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text.", "tags": [ "stt" ], @@ -1042,6 +1045,14 @@ "schema": { "type": "object", "properties": { + "classifier_dimensions": { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions", + "description": "Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace." + }, + "classifier_filters": { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters", + "description": "Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions." + }, "dimensions": { "type": "array", "items": { @@ -1212,7 +1223,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -1221,7 +1236,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } }, { @@ -1913,7 +1929,10 @@ "description": "Number of ranked apps to skip before the first returned row (0-100). Defaults to 0. `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.", "required": false, "schema": { - "type": "integer", + "type": [ + "integer", + "null" + ], "default": 0 } } @@ -1976,7 +1995,7 @@ "get": { "operationId": "get-rankings-daily", "summary": "Daily token totals for top 50 models", - "description": "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated `other` row per day that sums every model outside that top 50.\nToken totals are `prompt_tokens + completion_tokens`, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct `(date, model_permaslug)` pair. The `other` row uses the\nreserved permaslug `other` and is always returned last within its date, so callers\ncan compute `top-50 traffic / total daily traffic` without a second request.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider.", + "description": "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated `other` row per day that sums every model outside that top 50.\nToken totals are `prompt_tokens + completion_tokens`, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct `(date, model_permaslug)` pair. The `other` row uses the\nreserved permaslug `other` and is always returned last within its date, so callers\ncan compute `top-50 traffic / total daily traffic` without a second request.\n\nOptional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time\ngrain. `modality` and `context_bucket` narrow the exact dataset by output/input\nmodality (or tool-calling activity) and request context length. `category` and\n`language_type` instead read a sampled, upsampled dataset whose `total_tokens` are\nweekly-grain estimates — they cannot be combined with each other or with the exact\nfilters, and reject `period=day` with a 400.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider.", "tags": [ "datasets" ], @@ -1998,6 +2017,51 @@ "schema": { "type": "string" } + }, + { + "name": "period", + "in": "query", + "description": "Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsRankingsDailyGetParametersPeriod" + } + }, + { + "name": "modality", + "in": "query", + "description": "Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsRankingsDailyGetParametersModality" + } + }, + { + "name": "context_bucket", + "in": "query", + "description": "Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsRankingsDailyGetParametersContextBucket" + } + }, + { + "name": "category", + "in": "query", + "description": "Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsRankingsDailyGetParametersCategory" + } + }, + { + "name": "language_type", + "in": "query", + "description": "Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsRankingsDailyGetParametersLanguageType" + } } ], "responses": { @@ -2208,7 +2272,31 @@ "tags": [ "embeddings" ], - "parameters": [], + "parameters": [ + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ], + "default": 0 + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": "integer", + "default": 500 + } + } + ], "responses": { "200": { "description": "Returns a list of embeddings models", @@ -2977,6 +3065,88 @@ } } }, + "/generation/feedback": { + "post": { + "operationId": "submit-generation-feedback", + "summary": "Submit feedback for a generation", + "description": "Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "generations" + ], + "parameters": [], + "responses": { + "200": { + "description": "Feedback recorded successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubmitGenerationFeedbackResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "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" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubmitGenerationFeedbackRequest" + } + } + } + } + } + }, "/guardrails": { "get": { "operationId": "list-guardrails", @@ -2992,7 +3162,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -3001,7 +3175,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } }, { @@ -3351,7 +3526,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -3360,7 +3539,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -3597,7 +3777,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -3606,7 +3790,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -3833,7 +4018,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -3842,7 +4031,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -3895,7 +4085,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -3904,7 +4098,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -4009,7 +4204,10 @@ "description": "Number of API keys to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ] } }, { @@ -4170,14 +4368,7 @@ "description": "Optional spending limit for the API key in USD" }, "limit_reset": { - "oneOf": [ - { - "$ref": "#/components/schemas/KeysPostRequestBodyContentApplicationJsonSchemaLimitReset" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/KeysPostRequestBodyContentApplicationJsonSchemaLimitReset", "description": "Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday." }, "name": { @@ -4445,14 +4636,7 @@ "description": "New spending limit for the API key in USD" }, "limit_reset": { - "oneOf": [ - { - "$ref": "#/components/schemas/KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset", "description": "New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday." }, "name": { @@ -4648,6 +4832,29 @@ "models" ], "parameters": [ + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ], + "default": 0 + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": "integer", + "default": 500 + } + }, { "name": "category", "in": "query", @@ -4678,7 +4885,7 @@ { "name": "sort", "in": "query", - "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.", + "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.", "required": false, "schema": { "$ref": "#/components/schemas/ModelsGetParametersSort" @@ -4735,7 +4942,10 @@ "description": "Minimum prompt price in $/M tokens.", "required": false, "schema": { - "type": "number", + "type": [ + "number", + "null" + ], "format": "double" } }, @@ -4745,7 +4955,10 @@ "description": "Maximum prompt price in $/M tokens.", "required": false, "schema": { - "type": "number", + "type": [ + "number", + "null" + ], "format": "double" } }, @@ -4802,6 +5015,160 @@ "schema": { "$ref": "#/components/schemas/ModelsGetParametersRegion" } + }, + { + "name": "min_output_price", + "in": "query", + "description": "Minimum completion (output) price in $/M tokens.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "max_output_price", + "in": "query", + "description": "Maximum completion (output) price in $/M tokens.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "min_age_days", + "in": "query", + "description": "Minimum model age in days since its creation date.", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ] + } + }, + { + "name": "max_age_days", + "in": "query", + "description": "Maximum model age in days since its creation date.", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ] + } + }, + { + "name": "min_intelligence_index", + "in": "query", + "description": "Minimum Artificial Analysis intelligence index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "max_intelligence_index", + "in": "query", + "description": "Maximum Artificial Analysis intelligence index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "min_coding_index", + "in": "query", + "description": "Minimum Artificial Analysis coding index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "max_coding_index", + "in": "query", + "description": "Maximum Artificial Analysis coding index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "min_agentic_index", + "in": "query", + "description": "Minimum Artificial Analysis agentic index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "max_agentic_index", + "in": "query", + "description": "Maximum Artificial Analysis agentic index.", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "min_tool_success_rate", + "in": "query", + "description": "Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason).", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } + }, + { + "name": "max_tool_success_rate", + "in": "query", + "description": "Maximum tool-calling success rate, as a fraction in [0, 1].", + "required": false, + "schema": { + "type": [ + "number", + "null" + ], + "format": "double" + } } ], "responses": { @@ -4898,7 +5265,31 @@ "tags": [ "models" ], - "parameters": [], + "parameters": [ + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ], + "default": 0 + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned", + "required": false, + "schema": { + "type": "integer", + "default": 500 + } + } + ], "responses": { "200": { "description": "Returns a list of models filtered by user provider preferences", @@ -4958,7 +5349,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -4967,7 +5362,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } }, { @@ -5327,7 +5723,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -5336,7 +5736,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -5399,7 +5800,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -5408,7 +5813,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -5859,7 +6265,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -5868,7 +6278,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -6358,7 +6769,10 @@ "in": "query", "required": false, "schema": { - "type": "integer", + "type": [ + "integer", + "null" + ], "default": 0 } } @@ -6486,7 +6900,11 @@ "description": "Number of records to skip for pagination", "required": false, "schema": { - "type": "integer" + "type": [ + "integer", + "null" + ], + "default": 0 } }, { @@ -6495,7 +6913,8 @@ "description": "Maximum number of records to return (max 100)", "required": false, "schema": { - "type": "integer" + "type": "integer", + "default": 50 } } ], @@ -7061,6 +7480,102 @@ } } }, + "/workspaces/{id}/members": { + "get": { + "operationId": "list-workspace-members", + "summary": "List workspace members", + "description": "List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "workspaces" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The workspace ID (UUID) or slug", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination", + "required": false, + "schema": { + "type": [ + "integer", + "null" + ], + "default": 0 + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 100)", + "required": false, + "schema": { + "type": "integer", + "default": 50 + } + } + ], + "responses": { + "200": { + "description": "List of workspace members", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListWorkspaceMembersResponse" + } + } + } + }, + "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" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, "/workspaces/{id}/members/add": { "post": { "operationId": "bulk-add-workspace-members", @@ -7157,7 +7672,7 @@ "post": { "operationId": "bulk-remove-workspace-members", "summary": "Bulk remove members from a workspace", - "description": "Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "description": "Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ "workspaces" ], @@ -7291,7 +7806,7 @@ "required": [ "type" ], - "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.", + "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.", "title": "AnthropicCacheControlDirective" }, "ChatDebugOptions": { @@ -7429,6 +7944,7 @@ "openai-responses-v1", "azure-openai-responses-v1", "xai-responses-v1", + "meta-responses-v1", "anthropic-claude-v1", "google-gemini-v1" ], @@ -7485,9 +8001,32 @@ "description": "Reasoning output item with signature and format extensions", "title": "ReasoningItem" }, + "PromptCacheBreakpointMode": { + "type": "string", + "enum": [ + "explicit" + ], + "title": "PromptCacheBreakpointMode" + }, + "PromptCacheBreakpoint": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/components/schemas/PromptCacheBreakpointMode" + } + }, + "required": [ + "mode" + ], + "description": "Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically.", + "title": "PromptCacheBreakpoint" + }, "InputText": { "type": "object", "properties": { + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -7656,9 +8195,6 @@ }, { "type": "string" - }, - { - "description": "Any type" } ], "title": "EasyInputMessageContent" @@ -7684,9 +8220,6 @@ }, { "$ref": "#/components/schemas/EasyInputMessagePhase1" - }, - { - "description": "Any type" } ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.", @@ -7748,10 +8281,24 @@ "type": "object", "properties": { "content": { - "$ref": "#/components/schemas/EasyInputMessageContent" + "oneOf": [ + { + "$ref": "#/components/schemas/EasyInputMessageContent" + }, + { + "type": "null" + } + ] }, "phase": { - "$ref": "#/components/schemas/EasyInputMessagePhase", + "oneOf": [ + { + "$ref": "#/components/schemas/EasyInputMessagePhase" + }, + { + "type": "null" + } + ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages." }, "role": { @@ -8026,6 +8573,9 @@ ], "description": "Discriminator value: input_text" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -8083,7 +8633,14 @@ "$ref": "#/components/schemas/FunctionCallOutputItemOutput" }, "status": { - "$ref": "#/components/schemas/ToolCallStatus" + "oneOf": [ + { + "$ref": "#/components/schemas/ToolCallStatus" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/FunctionCallOutputItemType" @@ -8517,9 +9074,6 @@ }, { "type": "string" - }, - { - "description": "Any type" } ], "title": "InputsOneOf1ItemsOneOf7Content" @@ -8528,7 +9082,14 @@ "type": "object", "properties": { "content": { - "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf7Content" + "oneOf": [ + { + "$ref": "#/components/schemas/InputsOneOf1ItemsOneOf7Content" + }, + { + "type": "null" + } + ] } }, "description": "An output message item", @@ -9053,14 +9614,7 @@ "type": "object", "properties": { "action": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "call_id": { "type": "string" @@ -9504,14 +10058,7 @@ "$ref": "#/components/schemas/OutputMemoryServerToolItemType" }, "value": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" } }, "required": [ @@ -9889,6 +10436,42 @@ "description": "An openrouter:subagent server tool output item", "title": "OutputSubagentServerToolItem" }, + "OutputFilesServerToolItem": { + "type": "object", + "properties": { + "error": { + "type": "string", + "description": "Error message when the file operation failed." + }, + "file_id": { + "type": "string", + "description": "The target file id supplied in the tool-call arguments." + }, + "filename": { + "type": "string", + "description": "The target filename supplied in the tool-call arguments." + }, + "id": { + "type": "string" + }, + "operation": { + "type": "string", + "description": "The file operation performed (list, read, write, or edit)." + }, + "result": { + "type": "string", + "description": "JSON-serialized result of the file operation." + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "status" + ], + "description": "An openrouter:files server tool output item", + "title": "OutputFilesServerToolItem" + }, "LocalShellCallItemActionType": { "type": "string", "enum": [ @@ -9993,7 +10576,14 @@ "type": "string" }, "status": { - "$ref": "#/components/schemas/ToolCallStatus" + "oneOf": [ + { + "$ref": "#/components/schemas/ToolCallStatus" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/LocalShellCallOutputItemType" @@ -10051,14 +10641,7 @@ "type": "string" }, "environment": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "id": { "type": [ @@ -10067,7 +10650,14 @@ ] }, "status": { - "$ref": "#/components/schemas/ToolCallStatus" + "oneOf": [ + { + "$ref": "#/components/schemas/ToolCallStatus" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/ShellCallItemType" @@ -10137,7 +10727,14 @@ } }, "status": { - "$ref": "#/components/schemas/ToolCallStatus" + "oneOf": [ + { + "$ref": "#/components/schemas/ToolCallStatus" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/ShellCallOutputItemType" @@ -10155,14 +10752,7 @@ "type": "object", "properties": { "annotations": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "description": { "type": [ @@ -10459,6 +11049,9 @@ ], "description": "Discriminator value: input_text" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -10554,6 +11147,38 @@ "description": "A context compaction marker with encrypted summary", "title": "CompactionItem" }, + "ContextCompactionItemType": { + "type": "string", + "enum": [ + "context_compaction" + ], + "title": "ContextCompactionItemType" + }, + "ContextCompactionItem": { + "type": "object", + "properties": { + "encrypted_content": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/ContextCompactionItemType" + } + }, + "required": [ + "type" + ], + "description": "A context compaction marker with an optional encrypted summary", + "title": "ContextCompactionItem" + }, "ItemReferenceItemType": { "type": "string", "enum": [ @@ -10578,367 +11203,254 @@ "description": "A reference to a previous response item by ID", "title": "ItemReferenceItem" }, - "InputsOneOf1Items": { - "oneOf": [ - { - "$ref": "#/components/schemas/ReasoningItem" - }, - { - "$ref": "#/components/schemas/EasyInputMessage" - }, - { - "$ref": "#/components/schemas/InputMessageItem" - }, - { - "$ref": "#/components/schemas/FunctionCallItem" - }, - { - "$ref": "#/components/schemas/FunctionCallOutputItem" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallItem" - }, - { - "$ref": "#/components/schemas/ApplyPatchCallOutputItem" - }, - { - "$ref": "#/components/schemas/InputsOneOf1Items7" - }, - { - "$ref": "#/components/schemas/InputsOneOf1Items8" - }, - { - "$ref": "#/components/schemas/OutputFunctionCallItem" - }, - { - "$ref": "#/components/schemas/OutputCustomToolCallItem" - }, - { - "$ref": "#/components/schemas/OutputWebSearchCallItem" - }, - { - "$ref": "#/components/schemas/OutputFileSearchCallItem" - }, - { - "$ref": "#/components/schemas/OutputImageGenerationCallItem" - }, - { - "$ref": "#/components/schemas/OutputCodeInterpreterCallItem" - }, - { - "$ref": "#/components/schemas/OutputComputerCallItem" - }, - { - "$ref": "#/components/schemas/OutputDatetimeItem" - }, - { - "$ref": "#/components/schemas/OutputWebSearchServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputCodeInterpreterServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputFileSearchServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputImageGenerationServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputBrowserUseServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputBashServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputTextEditorServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputApplyPatchServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputWebFetchServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputToolSearchServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputMemoryServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputMcpServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputSearchModelsServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputFusionServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputAdvisorServerToolItem" - }, - { - "$ref": "#/components/schemas/OutputSubagentServerToolItem" - }, - { - "$ref": "#/components/schemas/LocalShellCallItem" - }, - { - "$ref": "#/components/schemas/LocalShellCallOutputItem" - }, - { - "$ref": "#/components/schemas/ShellCallItem" - }, - { - "$ref": "#/components/schemas/ShellCallOutputItem" - }, - { - "$ref": "#/components/schemas/McpListToolsItem" - }, - { - "$ref": "#/components/schemas/McpApprovalRequestItem" - }, - { - "$ref": "#/components/schemas/McpApprovalResponseItem" - }, - { - "$ref": "#/components/schemas/McpCallItem" - }, - { - "$ref": "#/components/schemas/CustomToolCallItem" - }, - { - "$ref": "#/components/schemas/CustomToolCallOutputItem" - }, - { - "$ref": "#/components/schemas/CompactionItem" - }, - { - "$ref": "#/components/schemas/ItemReferenceItem" - } + "AdditionalToolsItemRole": { + "type": "string", + "enum": [ + "unknown", + "user", + "assistant", + "system", + "critic", + "discriminator", + "developer", + "tool" ], - "title": "InputsOneOf1Items" + "title": "AdditionalToolsItemRole" }, - "Inputs1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InputsOneOf1Items" - }, - "title": "Inputs1" + "AdditionalToolsItemToolsItemsOneOf0Type": { + "type": "string", + "enum": [ + "function" + ], + "title": "AdditionalToolsItemToolsItemsOneOf0Type" }, - "Inputs": { - "oneOf": [ - { + "AdditionalToolsItemToolsItems0": { + "type": "object", + "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "name": { "type": "string" }, - { - "$ref": "#/components/schemas/Inputs1" + "parameters": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + } + }, + "strict": { + "type": [ + "boolean", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/AdditionalToolsItemToolsItemsOneOf0Type" } - ], - "description": "Input for a response request - can be a string or array of items", - "title": "Inputs" - }, - "RequestMetadata": { - "type": "object", - "additionalProperties": { - "type": "string" }, - "description": "Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed.", - "title": "RequestMetadata" + "required": [ + "name", + "parameters", + "type" + ], + "description": "Function tool definition", + "title": "AdditionalToolsItemToolsItems0" }, - "OutputModalityEnum": { + "WebSearchEngineEnum": { "type": "string", "enum": [ - "text", - "image" + "native", + "exa", + "parallel", + "firecrawl", + "perplexity", + "auto" ], - "title": "OutputModalityEnum" + "description": "Which search engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in search. \"exa\" forces the Exa search API. \"firecrawl\" uses Firecrawl (requires BYOK). \"parallel\" uses the Parallel search API. \"perplexity\" uses the Perplexity Search API (raw ranked results).", + "title": "WebSearchEngineEnum" }, - "ContextCompressionEngine": { + "WebSearchDomainFilter": { + "type": "object", + "properties": { + "allowed_domains": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "excluded_domains": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + }, + "title": "WebSearchDomainFilter" + }, + "SearchContextSizeEnum": { "type": "string", "enum": [ - "middle-out" + "low", + "medium", + "high" ], - "description": "The compression engine to use. Defaults to \"middle-out\".", - "title": "ContextCompressionEngine" + "description": "Size of the search context for web search tools", + "title": "SearchContextSizeEnum" }, - "PdfParserEngine0": { + "PreviewWebSearchServerToolType": { "type": "string", "enum": [ - "mistral-ocr", - "native", - "cloudflare-ai" + "web_search_preview" ], - "title": "PdfParserEngine0" + "title": "PreviewWebSearchServerToolType" }, - "PdfParserEngine1": { + "PreviewWebSearchUserLocationType": { "type": "string", "enum": [ - "pdf-text" - ], - "title": "PdfParserEngine1" - }, - "PDFParserEngine": { - "oneOf": [ - { - "$ref": "#/components/schemas/PdfParserEngine0" - }, - { - "$ref": "#/components/schemas/PdfParserEngine1" - } + "approximate" ], - "description": "The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".", - "title": "PDFParserEngine" + "title": "PreviewWebSearchUserLocationType" }, - "PDFParserOptions": { + "PreviewWebSearchUserLocation": { "type": "object", "properties": { - "engine": { - "$ref": "#/components/schemas/PDFParserEngine" - } - }, - "description": "Options for PDF parsing.", - "title": "PDFParserOptions" - }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset": { - "type": "string", - "enum": [ - "general-high", - "general-budget", - "general-fast" - ], - "description": "A curated OpenRouter fusion preset (slugs follow `-`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.", - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset" - }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items": { - "oneOf": [ - { - "type": "string" + "city": { + "type": [ + "string", + "null" + ] }, - { - "type": "number", - "format": "double" + "country": { + "type": [ + "string", + "null" + ] }, - { - "type": "boolean" + "region": { + "type": [ + "string", + "null" + ] }, - { - "description": "Any type" + "timezone": { + "type": [ + "string", + "null" + ] }, - { - "description": "Any type" + "type": { + "$ref": "#/components/schemas/PreviewWebSearchUserLocationType" } - ], - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items" - }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items" }, - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4" + "required": [ + "type" + ], + "title": "PreviewWebSearchUserLocation" }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5": { + "Preview_WebSearchUserLocation": { "oneOf": [ { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - }, - { - "description": "Any type" + "$ref": "#/components/schemas/PreviewWebSearchUserLocation" }, { - "description": "Any type" + "type": "null" } ], - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5" + "title": "Preview_WebSearchUserLocation" }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5": { + "Preview_WebSearchServerTool": { "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5" - }, - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5" - }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" + "properties": { + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" }, - { - "type": "boolean" + "filters": { + "$ref": "#/components/schemas/WebSearchDomainFilter" }, - { - "description": "Any type" + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." }, - { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4" + "search_context_size": { + "$ref": "#/components/schemas/SearchContextSizeEnum" }, - { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5" + "type": { + "$ref": "#/components/schemas/PreviewWebSearchServerToolType" }, - { - "description": "Any type" + "user_location": { + "$ref": "#/components/schemas/Preview_WebSearchUserLocation" } + }, + "required": [ + "type" ], - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters" + "description": "Web search preview tool configuration", + "title": "Preview_WebSearchServerTool" }, - "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems": { + "Preview20250311WebSearchServerToolType": { + "type": "string", + "enum": [ + "web_search_preview_2025_03_11" + ], + "title": "Preview20250311WebSearchServerToolType" + }, + "Preview_20250311_WebSearchServerTool": { "type": "object", "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters" - }, - "description": "Optional configuration forwarded as the tool's `parameters` object." + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" + }, + "filters": { + "$ref": "#/components/schemas/WebSearchDomainFilter" + }, + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." + }, + "search_context_size": { + "$ref": "#/components/schemas/SearchContextSizeEnum" }, "type": { - "type": "string", - "description": "Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\")." + "$ref": "#/components/schemas/Preview20250311WebSearchServerToolType" + }, + "user_location": { + "$ref": "#/components/schemas/Preview_WebSearchUserLocation" } }, "required": [ "type" ], - "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems" - }, - "WebSearchEngine": { - "type": "string", - "enum": [ - "native", - "exa", - "firecrawl", - "parallel", - "perplexity" - ], - "description": "The search engine to use for web search.", - "title": "WebSearchEngine" + "description": "Web search preview tool configuration (2025-03-11 version)", + "title": "Preview_20250311_WebSearchServerTool" }, - "WebSearchPluginId": { + "LegacyWebSearchServerToolType": { "type": "string", "enum": [ - "web" + "web_search" ], - "title": "WebSearchPluginId" + "title": "LegacyWebSearchServerToolType" }, - "WebSearchPluginUserLocationType": { + "WebSearchUserLocationType": { "type": "string", "enum": [ "approximate" ], - "title": "WebSearchPluginUserLocationType" + "title": "WebSearchUserLocationType" }, - "WebSearchPluginUserLocation": { + "WebSearchUserLocation": { "type": "object", "properties": { "city": { @@ -10966,1676 +11478,2345 @@ ] }, "type": { - "$ref": "#/components/schemas/WebSearchPluginUserLocationType" + "$ref": "#/components/schemas/WebSearchUserLocationType" } }, - "required": [ - "type" - ], - "description": "Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).", - "title": "WebSearchPluginUserLocation" - }, - "WebFetchPluginId": { - "type": "string", - "enum": [ - "web-fetch" - ], - "title": "WebFetchPluginId" + "description": "User location information for web search", + "title": "WebSearchUserLocation" }, - "ResponsesRequestPluginsItems": { - "oneOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "auto-router" - ], - "description": "Discriminator value: auto-router" - }, - "allowed_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." - }, - "cost_quality_tradeoff": { - "type": "integer", - "description": "Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7." - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." - } - }, - "required": [ - "id" - ], - "description": "auto-router variant" + "Legacy_WebSearchServerTool": { + "type": "object", + "properties": { + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" + }, + "filters": { + "$ref": "#/components/schemas/WebSearchDomainFilter" + }, + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." + }, + "search_context_size": { + "$ref": "#/components/schemas/SearchContextSizeEnum" + }, + "type": { + "$ref": "#/components/schemas/LegacyWebSearchServerToolType" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchUserLocation" + } + }, + "required": [ + "type" + ], + "description": "Web search tool configuration", + "title": "Legacy_WebSearchServerTool" + }, + "WebSearchServerToolType": { + "type": "string", + "enum": [ + "web_search_2025_08_26" + ], + "title": "WebSearchServerToolType" + }, + "WebSearchServerTool": { + "type": "object", + "properties": { + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" + }, + "filters": { + "$ref": "#/components/schemas/WebSearchDomainFilter" + }, + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." + }, + "search_context_size": { + "$ref": "#/components/schemas/SearchContextSizeEnum" }, + "type": { + "$ref": "#/components/schemas/WebSearchServerToolType" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchUserLocation" + } + }, + "required": [ + "type" + ], + "description": "Web search tool configuration (2025-08-26 version)", + "title": "WebSearchServerTool" + }, + "FileSearchServerToolFiltersOneOf0Type": { + "type": "string", + "enum": [ + "eq", + "ne", + "gt", + "gte", + "lt", + "lte" + ], + "title": "FileSearchServerToolFiltersOneOf0Type" + }, + "FileSearchServerToolFiltersOneOf0ValueOneOf3Items": { + "oneOf": [ { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "context-compression" - ], - "description": "Discriminator value: context-compression" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." - }, - "engine": { - "$ref": "#/components/schemas/ContextCompressionEngine" - } - }, - "required": [ - "id" - ], - "description": "context-compression variant" + "type": "string" }, { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "file-parser" - ], - "description": "Discriminator value: file-parser" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." - }, - "pdf": { - "$ref": "#/components/schemas/PDFParserOptions" - } - }, - "required": [ - "id" - ], - "description": "file-parser variant" + "type": "number", + "format": "double" + } + ], + "title": "FileSearchServerToolFiltersOneOf0ValueOneOf3Items" + }, + "FileSearchServerToolFiltersOneOf0Value3": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0ValueOneOf3Items" + }, + "title": "FileSearchServerToolFiltersOneOf0Value3" + }, + "FileSearchServerToolFiltersOneOf0Value": { + "oneOf": [ + { + "type": "string" }, { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "fusion" - ], - "description": "Discriminator value: fusion" - }, - "analysis_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the fusion plugin for this request. Defaults to true." - }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." - }, - "model": { - "type": "string", - "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." - }, - "preset": { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset", - "description": "A curated OpenRouter fusion preset (slugs follow `-`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence." - }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems" - }, - "description": "Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only)." - } - }, - "required": [ - "id" - ], - "description": "fusion variant" + "type": "number", + "format": "double" }, { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "moderation" - ], - "description": "Discriminator value: moderation" - } - }, - "required": [ - "id" - ], - "description": "moderation variant" + "type": "boolean" }, { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "pareto-router" - ], - "description": "Discriminator value: pareto-router" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." - }, - "min_coding_score": { - "type": "number", - "format": "double", - "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." + "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Value3" + } + ], + "title": "FileSearchServerToolFiltersOneOf0Value" + }, + "FileSearchServerToolFilters0": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Type" + }, + "value": { + "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Value" + } + }, + "required": [ + "key", + "type", + "value" + ], + "title": "FileSearchServerToolFilters0" + }, + "CompoundFilterType": { + "type": "string", + "enum": [ + "and", + "or" + ], + "title": "CompoundFilterType" + }, + "CompoundFilter": { + "type": "object", + "properties": { + "filters": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Any type" } - }, - "required": [ - "id" - ], - "description": "pareto-router variant" + } + }, + "type": { + "$ref": "#/components/schemas/CompoundFilterType" + } + }, + "required": [ + "filters", + "type" + ], + "description": "A compound filter that combines multiple comparison or compound filters", + "title": "CompoundFilter" + }, + "FileSearchServerToolFilters": { + "oneOf": [ + { + "$ref": "#/components/schemas/FileSearchServerToolFilters0" }, { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "response-healing" - ], - "description": "Discriminator value: response-healing" + "$ref": "#/components/schemas/CompoundFilter" + } + ], + "title": "FileSearchServerToolFilters" + }, + "FileSearchServerToolRankingOptionsRanker": { + "type": "string", + "enum": [ + "auto", + "default-2024-11-15" + ], + "title": "FileSearchServerToolRankingOptionsRanker" + }, + "FileSearchServerToolRankingOptions": { + "type": "object", + "properties": { + "ranker": { + "$ref": "#/components/schemas/FileSearchServerToolRankingOptionsRanker" + }, + "score_threshold": { + "type": "number", + "format": "double" + } + }, + "title": "FileSearchServerToolRankingOptions" + }, + "FileSearchServerToolType": { + "type": "string", + "enum": [ + "file_search" + ], + "title": "FileSearchServerToolType" + }, + "FileSearchServerTool": { + "type": "object", + "properties": { + "filters": { + "oneOf": [ + { + "$ref": "#/components/schemas/FileSearchServerToolFilters" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." + { + "type": "null" } - }, - "required": [ - "id" - ], - "description": "response-healing variant" + ] + }, + "max_num_results": { + "type": "integer" + }, + "ranking_options": { + "$ref": "#/components/schemas/FileSearchServerToolRankingOptions" + }, + "type": { + "$ref": "#/components/schemas/FileSearchServerToolType" + }, + "vector_store_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "type", + "vector_store_ids" + ], + "description": "File search tool configuration", + "title": "FileSearchServerTool" + }, + "ComputerUseServerToolEnvironment": { + "type": "string", + "enum": [ + "windows", + "mac", + "linux", + "ubuntu", + "browser" + ], + "title": "ComputerUseServerToolEnvironment" + }, + "ComputerUseServerToolType": { + "type": "string", + "enum": [ + "computer_use_preview" + ], + "title": "ComputerUseServerToolType" + }, + "ComputerUseServerTool": { + "type": "object", + "properties": { + "display_height": { + "type": "integer" }, + "display_width": { + "type": "integer" + }, + "environment": { + "$ref": "#/components/schemas/ComputerUseServerToolEnvironment" + }, + "type": { + "$ref": "#/components/schemas/ComputerUseServerToolType" + } + }, + "required": [ + "display_height", + "display_width", + "environment", + "type" + ], + "description": "Computer use preview tool configuration", + "title": "ComputerUseServerTool" + }, + "CodeInterpreterServerToolContainerOneOf1MemoryLimit": { + "type": "string", + "enum": [ + "1g", + "4g", + "16g", + "64g" + ], + "title": "CodeInterpreterServerToolContainerOneOf1MemoryLimit" + }, + "CodeInterpreterServerToolContainerOneOf1Type": { + "type": "string", + "enum": [ + "auto" + ], + "title": "CodeInterpreterServerToolContainerOneOf1Type" + }, + "CodeInterpreterServerToolContainer1": { + "type": "object", + "properties": { + "file_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "memory_limit": { + "$ref": "#/components/schemas/CodeInterpreterServerToolContainerOneOf1MemoryLimit" + }, + "type": { + "$ref": "#/components/schemas/CodeInterpreterServerToolContainerOneOf1Type" + } + }, + "required": [ + "type" + ], + "title": "CodeInterpreterServerToolContainer1" + }, + "CodeInterpreterServerToolContainer": { + "oneOf": [ { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/WebSearchPluginId" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the web-search plugin for this request. Defaults to true." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngine" - }, - "exclude_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "include_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "max_results": { - "type": "integer" - }, - "max_uses": { - "type": "integer", - "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." - }, - "search_prompt": { - "type": "string" + "type": "string" + }, + { + "$ref": "#/components/schemas/CodeInterpreterServerToolContainer1" + } + ], + "title": "CodeInterpreterServerToolContainer" + }, + "CodeInterpreterServerToolType": { + "type": "string", + "enum": [ + "code_interpreter" + ], + "title": "CodeInterpreterServerToolType" + }, + "CodeInterpreterServerTool": { + "type": "object", + "properties": { + "container": { + "$ref": "#/components/schemas/CodeInterpreterServerToolContainer" + }, + "type": { + "$ref": "#/components/schemas/CodeInterpreterServerToolType" + } + }, + "required": [ + "container", + "type" + ], + "description": "Code interpreter tool configuration", + "title": "CodeInterpreterServerTool" + }, + "McpServerToolAllowedTools1": { + "type": "object", + "properties": { + "read_only": { + "type": "boolean" + }, + "tool_names": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "McpServerToolAllowedTools1" + }, + "McpServerToolAllowedTools": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "#/components/schemas/McpServerToolAllowedTools1" + } + ], + "title": "McpServerToolAllowedTools" + }, + "McpServerToolConnectorId": { + "type": "string", + "enum": [ + "connector_dropbox", + "connector_gmail", + "connector_googlecalendar", + "connector_googledrive", + "connector_microsoftteams", + "connector_outlookcalendar", + "connector_outlookemail", + "connector_sharepoint" + ], + "title": "McpServerToolConnectorId" + }, + "McpServerToolRequireApprovalOneOf0Always": { + "type": "object", + "properties": { + "tool_names": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "McpServerToolRequireApprovalOneOf0Always" + }, + "McpServerToolRequireApprovalOneOf0Never": { + "type": "object", + "properties": { + "tool_names": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "McpServerToolRequireApprovalOneOf0Never" + }, + "McpServerToolRequireApproval0": { + "type": "object", + "properties": { + "always": { + "$ref": "#/components/schemas/McpServerToolRequireApprovalOneOf0Always" + }, + "never": { + "$ref": "#/components/schemas/McpServerToolRequireApprovalOneOf0Never" + } + }, + "title": "McpServerToolRequireApproval0" + }, + "McpServerToolRequireApproval1": { + "type": "string", + "enum": [ + "always" + ], + "title": "McpServerToolRequireApproval1" + }, + "McpServerToolRequireApproval2": { + "type": "string", + "enum": [ + "never" + ], + "title": "McpServerToolRequireApproval2" + }, + "McpServerToolRequireApproval": { + "oneOf": [ + { + "$ref": "#/components/schemas/McpServerToolRequireApproval0" + }, + { + "$ref": "#/components/schemas/McpServerToolRequireApproval1" + }, + { + "$ref": "#/components/schemas/McpServerToolRequireApproval2" + } + ], + "title": "McpServerToolRequireApproval" + }, + "McpServerToolType": { + "type": "string", + "enum": [ + "mcp" + ], + "title": "McpServerToolType" + }, + "McpServerTool": { + "type": "object", + "properties": { + "allowed_tools": { + "oneOf": [ + { + "$ref": "#/components/schemas/McpServerToolAllowedTools" }, - "user_location": { - "$ref": "#/components/schemas/WebSearchPluginUserLocation" + { + "type": "null" } - }, - "required": [ - "id" + ] + }, + "authorization": { + "type": "string" + }, + "connector_id": { + "$ref": "#/components/schemas/McpServerToolConnectorId" + }, + "headers": { + "type": [ + "object", + "null" ], - "description": "web variant" + "additionalProperties": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/WebFetchPluginId" - }, - "allowed_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Only fetch from these domains." - }, - "blocked_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Never fetch from these domains." - }, - "max_content_tokens": { - "type": "integer", - "description": "Maximum content length in approximate tokens. Content exceeding this limit is truncated." + "require_approval": { + "oneOf": [ + { + "$ref": "#/components/schemas/McpServerToolRequireApproval" }, - "max_uses": { - "type": "integer", - "description": "Maximum number of web fetches per request. Once exceeded, the tool returns an error." + { + "type": "null" } - }, - "required": [ - "id" - ], - "description": "web-fetch variant" + ] + }, + "server_description": { + "type": "string" + }, + "server_label": { + "type": "string" + }, + "server_url": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/McpServerToolType" + } + }, + "required": [ + "server_label", + "type" + ], + "description": "MCP (Model Context Protocol) tool configuration", + "title": "McpServerTool" + }, + "ImageGenerationServerToolBackground": { + "type": "string", + "enum": [ + "transparent", + "opaque", + "auto" + ], + "title": "ImageGenerationServerToolBackground" + }, + "ImageGenerationServerToolInputFidelity": { + "type": "string", + "enum": [ + "high", + "low" + ], + "title": "ImageGenerationServerToolInputFidelity" + }, + "ImageGenerationServerToolInputImageMask": { + "type": "object", + "properties": { + "file_id": { + "type": "string" + }, + "image_url": { + "type": "string" + } + }, + "title": "ImageGenerationServerToolInputImageMask" + }, + "ImageGenerationServerToolModeration": { + "type": "string", + "enum": [ + "auto", + "low" + ], + "title": "ImageGenerationServerToolModeration" + }, + "ImageGenerationServerToolOutputFormat": { + "type": "string", + "enum": [ + "png", + "webp", + "jpeg" + ], + "title": "ImageGenerationServerToolOutputFormat" + }, + "ImageGenerationServerToolQuality": { + "type": "string", + "enum": [ + "low", + "medium", + "high", + "auto" + ], + "title": "ImageGenerationServerToolQuality" + }, + "ImageGenerationServerToolType": { + "type": "string", + "enum": [ + "image_generation" + ], + "title": "ImageGenerationServerToolType" + }, + "ImageGenerationServerTool": { + "type": "object", + "properties": { + "background": { + "$ref": "#/components/schemas/ImageGenerationServerToolBackground" + }, + "input_fidelity": { + "$ref": "#/components/schemas/ImageGenerationServerToolInputFidelity" + }, + "input_image_mask": { + "$ref": "#/components/schemas/ImageGenerationServerToolInputImageMask" + }, + "model": { + "type": "string" + }, + "moderation": { + "$ref": "#/components/schemas/ImageGenerationServerToolModeration" + }, + "output_compression": { + "type": "integer" + }, + "output_format": { + "$ref": "#/components/schemas/ImageGenerationServerToolOutputFormat" + }, + "partial_images": { + "type": "integer" + }, + "quality": { + "$ref": "#/components/schemas/ImageGenerationServerToolQuality" + }, + "size": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ImageGenerationServerToolType" + } + }, + "required": [ + "type" + ], + "description": "Image generation tool configuration", + "title": "ImageGenerationServerTool" + }, + "CodexLocalShellToolType": { + "type": "string", + "enum": [ + "local_shell" + ], + "title": "CodexLocalShellToolType" + }, + "CodexLocalShellTool": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/CodexLocalShellToolType" + } + }, + "required": [ + "type" + ], + "description": "Local shell tool configuration", + "title": "CodexLocalShellTool" + }, + "ShellServerToolType": { + "type": "string", + "enum": [ + "shell" + ], + "title": "ShellServerToolType" + }, + "ShellServerTool": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ShellServerToolType" + } + }, + "required": [ + "type" + ], + "description": "Shell tool configuration", + "title": "ShellServerTool" + }, + "ApplyPatchServerToolType": { + "type": "string", + "enum": [ + "apply_patch" + ], + "title": "ApplyPatchServerToolType" + }, + "ApplyPatchServerTool": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ApplyPatchServerToolType" + } + }, + "required": [ + "type" + ], + "description": "Apply patch tool configuration", + "title": "ApplyPatchServerTool" + }, + "CustomToolFormatOneOf0Type": { + "type": "string", + "enum": [ + "text" + ], + "title": "CustomToolFormatOneOf0Type" + }, + "CustomToolFormat0": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/CustomToolFormatOneOf0Type" + } + }, + "required": [ + "type" + ], + "title": "CustomToolFormat0" + }, + "CustomToolFormatOneOf1Syntax": { + "type": "string", + "enum": [ + "lark", + "regex" + ], + "title": "CustomToolFormatOneOf1Syntax" + }, + "CustomToolFormatOneOf1Type": { + "type": "string", + "enum": [ + "grammar" + ], + "title": "CustomToolFormatOneOf1Type" + }, + "CustomToolFormat1": { + "type": "object", + "properties": { + "definition": { + "type": "string" + }, + "syntax": { + "$ref": "#/components/schemas/CustomToolFormatOneOf1Syntax" + }, + "type": { + "$ref": "#/components/schemas/CustomToolFormatOneOf1Type" + } + }, + "required": [ + "definition", + "syntax", + "type" + ], + "title": "CustomToolFormat1" + }, + "CustomToolFormat": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomToolFormat0" + }, + { + "$ref": "#/components/schemas/CustomToolFormat1" } ], - "discriminator": { - "propertyName": "id" + "title": "CustomToolFormat" + }, + "CustomToolType": { + "type": "string", + "enum": [ + "custom" + ], + "title": "CustomToolType" + }, + "CustomTool": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "format": { + "$ref": "#/components/schemas/CustomToolFormat" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/CustomToolType" + } }, - "title": "ResponsesRequestPluginsItems" + "required": [ + "name", + "type" + ], + "description": "Custom tool configuration", + "title": "CustomTool" }, - "InputImage": { + "NamespaceFunctionToolAllowedCallersItems": { + "type": "string", + "enum": [ + "direct", + "programmatic" + ], + "title": "NamespaceFunctionToolAllowedCallersItems" + }, + "NamespaceFunctionToolType": { + "type": "string", + "enum": [ + "function" + ], + "title": "NamespaceFunctionToolType" + }, + "NamespaceFunctionTool": { "type": "object", "properties": { - "detail": { - "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail" + "allowed_callers": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/NamespaceFunctionToolAllowedCallersItems" + } }, - "image_url": { + "defer_loading": { + "type": "boolean" + }, + "description": { "type": [ "string", "null" ] + }, + "name": { + "type": "string" + }, + "output_schema": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + } + }, + "parameters": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + } + }, + "strict": { + "type": [ + "boolean", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/NamespaceFunctionToolType" } }, "required": [ - "detail" + "name", + "type" ], - "description": "Image input content item", - "title": "InputImage" + "description": "A function tool grouped inside a namespace tool", + "title": "NamespaceFunctionTool" }, - "StoredPromptTemplateVariables": { + "NamespaceToolToolsItems": { "oneOf": [ { - "type": "string" - }, - { - "$ref": "#/components/schemas/InputText" - }, - { - "$ref": "#/components/schemas/InputImage" + "$ref": "#/components/schemas/NamespaceFunctionTool" }, { - "$ref": "#/components/schemas/InputFile" + "$ref": "#/components/schemas/CustomTool" } ], - "title": "StoredPromptTemplateVariables" + "title": "NamespaceToolToolsItems" }, - "StoredPromptTemplate": { + "NamespaceToolType": { + "type": "string", + "enum": [ + "namespace" + ], + "title": "NamespaceToolType" + }, + "NamespaceTool": { "type": "object", "properties": { - "id": { + "description": { "type": "string" }, - "variables": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "$ref": "#/components/schemas/StoredPromptTemplateVariables" + "name": { + "type": "string" + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NamespaceToolToolsItems" } + }, + "type": { + "$ref": "#/components/schemas/NamespaceToolType" } }, "required": [ - "id" + "description", + "name", + "tools", + "type" ], - "title": "StoredPromptTemplate" + "description": "Groups function/custom tools under a shared namespace", + "title": "NamespaceTool" }, - "ProviderPreferencesDataCollection": { + "AdvisorReasoningEffort": { "type": "string", "enum": [ - "deny", - "allow" + "max", + "xhigh", + "high", + "medium", + "low", + "minimal", + "none" ], - "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.", - "title": "ProviderPreferencesDataCollection" + "description": "Reasoning effort level for the advisor call.", + "title": "AdvisorReasoningEffort" }, - "ProviderName": { - "type": "string", - "enum": [ - "AkashML", - "AI21", - "AionLabs", - "Alibaba", - "Ambient", - "Baidu", - "Amazon Bedrock", - "Amazon Nova", - "Anthropic", - "Arcee AI", - "AtlasCloud", - "Avian", - "Azure", - "BaseTen", - "BytePlus", - "Black Forest Labs", - "Cerebras", - "Chutes", - "Cirrascale", - "Clarifai", - "Cloudflare", - "Cohere", - "Crucible", - "Crusoe", - "Darkbloom", - "Decart", - "DeepInfra", - "DeepSeek", - "DekaLLM", - "DigitalOcean", - "Featherless", - "Fireworks", - "Friendli", - "GMICloud", - "Google", - "Google AI Studio", - "Groq", - "HeyGen", - "Inception", - "Inceptron", - "InferenceNet", - "Ionstream", - "Infermatic", - "Io Net", - "Inferact vLLM", - "Inflection", - "Liquid", - "Mara", - "Mancer 2", - "Minimax", - "ModelRun", - "Mistral", - "Modular", - "Moonshot AI", - "Morph", - "NCompass", - "Nebius", - "Nex AGI", - "NextBit", - "Novita", - "Nvidia", - "OpenAI", - "OpenInference", - "Parasail", - "Poolside", - "Perceptron", - "Perplexity", - "Phala", - "Recraft", - "Reka", - "Relace", - "Sakana AI", - "SambaNova", - "Seed", - "SiliconFlow", - "Sourceful", - "StepFun", - "Stealth", - "StreamLake", - "Switchpoint", - "Tenstorrent", - "Together", - "Upstage", - "Venice", - "Wafer", - "WandB", - "Quiver", - "Xiaomi", - "xAI", - "Z.AI", - "FakeProvider" - ], - "title": "ProviderName" + "AdvisorReasoning": { + "type": "object", + "properties": { + "effort": { + "$ref": "#/components/schemas/AdvisorReasoningEffort", + "description": "Reasoning effort level for the advisor call." + }, + "max_tokens": { + "type": "integer", + "description": "Maximum number of reasoning tokens the advisor may use." + } + }, + "description": "Reasoning configuration forwarded to the advisor call. Use this to control reasoning effort and token budget for models that support extended thinking.", + "title": "AdvisorReasoning" }, - "ProviderPreferencesIgnoreItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" + "AdvisorNestedTool": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } }, - { + "type": { "type": "string" } + }, + "required": [ + "type" ], - "title": "ProviderPreferencesIgnoreItems" + "description": "A tool made available to the advisor sub-agent. Only OpenRouter server tools (e.g. openrouter:web_search) are supported; function tools are rejected because the advisor has no way to execute them. The advisor tool may not list itself.", + "title": "AdvisorNestedTool" }, - "ProviderPreferencesMaxPrice": { + "AdvisorServerToolConfig": { "type": "object", "properties": { - "audio": { - "type": "string", - "description": "Maximum price in USD per audio unit" + "forward_transcript": { + "type": "boolean", + "description": "When true, the full parent conversation is forwarded to the advisor so it sees the same context the executor does (and the tool-call `prompt`, if given, is appended as a final user turn). When false or omitted, the advisor receives only the `prompt` the executor passes in the tool call." }, - "completion": { + "instructions": { "type": "string", - "description": "Maximum price in USD per million completion tokens" + "description": "System instructions for the advisor sub-agent. When omitted, the advisor responds with no system prompt of its own." }, - "image": { - "type": "string", - "description": "Maximum price in USD per image" + "max_completion_tokens": { + "type": "integer", + "description": "Maximum number of output tokens (including reasoning) the advisor may produce. When omitted, the provider's default applies." }, - "prompt": { + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps the advisor sub-agent may take during its agentic loop. Capped at 25. Only relevant when the advisor is given tools." + }, + "model": { "type": "string", - "description": "Maximum price in USD per million prompt tokens" + "description": "Slug of the advisor model to consult (any OpenRouter model). When omitted, the executor can choose it via the tool call's `model` argument; if neither is set, the model from the outer API request is used. The advisor tool itself cannot be the advisor model." }, - "request": { + "name": { "type": "string", - "description": "Maximum price in USD per request" + "description": "Optional name for this advisor. The model sees one tool per named advisor (and one default for an unnamed entry). Names must be unique across advisor entries. Letters, digits, spaces, underscores, and dashes; trimmed; 1–64 chars." + }, + "reasoning": { + "$ref": "#/components/schemas/AdvisorReasoning" + }, + "stream": { + "type": "boolean", + "description": "When true, the advisor's advice streams incrementally as it is produced. In the Responses API this emits `response.output_text.delta` events targeting the advisor output item; the final `advice` field is still set on the completed item. Has no effect on the Chat Completions API (where the advice arrives only as the final tool result). When false or omitted, the advice arrives only as the final result." + }, + "temperature": { + "type": "number", + "format": "double", + "description": "Sampling temperature forwarded to the advisor call. When omitted, the provider's default applies." + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AdvisorNestedTool" + }, + "description": "Tools the advisor sub-agent may use while forming its advice. The advisor runs as an agentic sub-agent over these tools, then returns its text. Only OpenRouter server tools are supported — function tools are rejected — and the list must not include the advisor tool itself." } }, - "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.", - "title": "ProviderPreferencesMaxPrice" + "description": "Configuration for one openrouter:advisor server tool entry.", + "title": "AdvisorServerToolConfig" }, - "ProviderPreferencesOnlyItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" - }, - { - "type": "string" - } + "AdvisorServerToolOpenRouterType": { + "type": "string", + "enum": [ + "openrouter:advisor" ], - "title": "ProviderPreferencesOnlyItems" + "title": "AdvisorServerToolOpenRouterType" }, - "ProviderPreferencesOrderItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" + "AdvisorServerTool_OpenRouter": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/AdvisorServerToolConfig" }, - { - "type": "string" + "type": { + "$ref": "#/components/schemas/AdvisorServerToolOpenRouterType" } + }, + "required": [ + "type" ], - "title": "ProviderPreferencesOrderItems" + "description": "OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor.", + "title": "AdvisorServerTool_OpenRouter" }, - "PercentileLatencyCutoffs": { + "SubagentReasoningEffort": { + "type": "string", + "enum": [ + "max", + "xhigh", + "high", + "medium", + "low", + "minimal", + "none" + ], + "description": "Reasoning effort level for the subagent call.", + "title": "SubagentReasoningEffort" + }, + "SubagentReasoning": { "type": "object", "properties": { - "p50": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Maximum p50 latency (seconds)" - }, - "p75": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Maximum p75 latency (seconds)" - }, - "p90": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Maximum p90 latency (seconds)" + "effort": { + "$ref": "#/components/schemas/SubagentReasoningEffort", + "description": "Reasoning effort level for the subagent call." }, - "p99": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Maximum p99 latency (seconds)" + "max_tokens": { + "type": "integer", + "description": "Maximum number of reasoning tokens the subagent may use. Accepted and validated but not yet forwarded to the subagent call." } }, - "description": "Percentile-based latency cutoffs. All specified cutoffs must be met for an endpoint to be preferred.", - "title": "PercentileLatencyCutoffs" + "description": "Reasoning configuration forwarded to the subagent call. Use this to control reasoning effort and token budget for models that support extended thinking.", + "title": "SubagentReasoning" }, - "PreferredMaxLatency": { - "oneOf": [ - { - "type": "number", - "format": "double" - }, - { - "$ref": "#/components/schemas/PercentileLatencyCutoffs" + "SubagentNestedTool": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } }, - { - "description": "Any type" + "type": { + "type": "string" } + }, + "required": [ + "type" ], - "description": "Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.", - "title": "PreferredMaxLatency" + "description": "A tool made available to the subagent. Only OpenRouter server tools (e.g. openrouter:web_search) are supported; function tools are rejected because the worker has no way to execute them. The subagent tool may not list itself.", + "title": "SubagentNestedTool" }, - "PercentileThroughputCutoffs": { + "SubagentServerToolConfig": { "type": "object", "properties": { - "p50": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Minimum p50 throughput (tokens/sec)" + "instructions": { + "type": "string", + "description": "System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own." }, - "p75": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Minimum p75 throughput (tokens/sec)" + "max_completion_tokens": { + "type": "integer", + "description": "Maximum number of output tokens (including reasoning) the subagent may produce. When omitted, the provider's default applies." }, - "p90": { - "type": [ - "number", - "null" - ], + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps the subagent may take during its agentic loop. Capped at 25. Only relevant when the subagent is given tools. Accepted and validated but not yet enforced on the subagent call." + }, + "model": { + "type": "string", + "description": "Slug of the model that executes delegated tasks (any OpenRouter model). Typically a smaller, cheaper, faster model than the one delegating. When omitted, the model from the outer API request is used. The subagent tool itself cannot be the subagent model." + }, + "reasoning": { + "$ref": "#/components/schemas/SubagentReasoning" + }, + "temperature": { + "type": "number", "format": "double", - "description": "Minimum p90 throughput (tokens/sec)" + "description": "Sampling temperature forwarded to the subagent call. When omitted, the provider's default applies." + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubagentNestedTool" + }, + "description": "Tools the subagent may use while executing a delegated task. The subagent runs as an agentic sub-agent over these tools, then returns its outcome. Only OpenRouter server tools are supported — function tools are rejected — and the list must not include the subagent tool itself." + } + }, + "description": "Configuration for the openrouter:subagent server tool.", + "title": "SubagentServerToolConfig" + }, + "SubagentServerToolOpenRouterType": { + "type": "string", + "enum": [ + "openrouter:subagent" + ], + "title": "SubagentServerToolOpenRouterType" + }, + "SubagentServerTool_OpenRouter": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/SubagentServerToolConfig" }, - "p99": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Minimum p99 throughput (tokens/sec)" + "type": { + "$ref": "#/components/schemas/SubagentServerToolOpenRouterType" } }, - "description": "Percentile-based throughput cutoffs. All specified cutoffs must be met for an endpoint to be preferred.", - "title": "PercentileThroughputCutoffs" + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: delegates self-contained tasks to a smaller, cheaper, faster worker model (any OpenRouter model) mid-generation and returns its outcome. The worker may run as a sub-agent with its own tools.", + "title": "SubagentServerTool_OpenRouter" }, - "PreferredMinThroughput": { - "oneOf": [ - { - "type": "number", - "format": "double" - }, - { - "$ref": "#/components/schemas/PercentileThroughputCutoffs" - }, - { - "description": "Any type" + "DatetimeServerToolConfig": { + "type": "object", + "properties": { + "timezone": { + "type": "string", + "description": "IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC." } - ], - "description": "Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.", - "title": "PreferredMinThroughput" + }, + "description": "Configuration for the openrouter:datetime server tool", + "title": "DatetimeServerToolConfig" }, - "Quantization": { + "DatetimeServerToolType": { "type": "string", "enum": [ - "int4", - "int8", - "fp4", - "fp6", - "fp8", - "fp16", - "bf16", - "fp32", - "unknown" + "openrouter:datetime" ], - "title": "Quantization" + "title": "DatetimeServerToolType" }, - "ProviderSort": { - "type": "string", - "enum": [ - "price", - "throughput", - "latency", - "exacto" + "DatetimeServerTool": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/DatetimeServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/DatetimeServerToolType" + } + }, + "required": [ + "type" ], - "description": "The provider sorting strategy (price, throughput, latency)", - "title": "ProviderSort" + "description": "OpenRouter built-in server tool: returns the current date and time", + "title": "DatetimeServerTool" }, - "ProviderSortConfigBy": { + "FilesServerToolConfig": { + "type": "object", + "properties": {}, + "description": "Configuration for the openrouter:files server tool", + "title": "FilesServerToolConfig" + }, + "FilesServerToolType": { "type": "string", "enum": [ - "price", - "throughput", - "latency", - "exacto" + "openrouter:files" ], - "description": "The provider sorting strategy (price, throughput, latency)", - "title": "ProviderSortConfigBy" + "title": "FilesServerToolType" }, - "ProviderSortConfigPartition": { + "FilesServerTool": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/FilesServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/FilesServerToolType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: read, write, edit, and list workspace files via the Files API. Requires the `x-openrouter-file-ids: openrouter` request header.", + "title": "FilesServerTool" + }, + "FusionServerToolConfigReasoningEffort": { "type": "string", "enum": [ - "model", + "max", + "xhigh", + "high", + "medium", + "low", + "minimal", "none" ], - "description": "Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.", - "title": "ProviderSortConfigPartition" + "description": "Reasoning effort level for panelist and judge inner calls.", + "title": "FusionServerToolConfigReasoningEffort" }, - "ProviderSortConfig": { + "FusionServerToolConfigReasoning": { "type": "object", "properties": { - "by": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderSortConfigBy" - }, - { - "type": "null" - } - ], - "description": "The provider sorting strategy (price, throughput, latency)" + "effort": { + "$ref": "#/components/schemas/FusionServerToolConfigReasoningEffort", + "description": "Reasoning effort level for panelist and judge inner calls." }, - "partition": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderSortConfigPartition" - }, - { - "type": "null" - } - ], - "description": "Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model." + "max_tokens": { + "type": "integer", + "description": "Maximum number of reasoning tokens each panelist and judge model may use. Helps bound cost when models allocate too much budget to chain-of-thought." } }, - "description": "The provider sorting strategy (price, throughput, latency)", - "title": "ProviderSortConfig" + "description": "Reasoning configuration forwarded to panelist and judge inner calls. Use this to control reasoning effort and token budget for models that support extended thinking.", + "title": "FusionServerToolConfigReasoning" }, - "ProviderPreferencesSort": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderSort" - }, - { - "$ref": "#/components/schemas/ProviderSortConfig" + "FusionServerToolConfigToolsItems": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Optional configuration forwarded as the tool's `parameters` object." }, - { - "description": "Any type" + "type": { + "type": "string", + "description": "Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\")." } + }, + "required": [ + "type" ], - "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", - "title": "ProviderPreferencesSort" + "title": "FusionServerToolConfigToolsItems" }, - "ProviderPreferences": { + "FusionServerToolConfig": { "type": "object", "properties": { - "allow_fallbacks": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" - }, - "data_collection": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderPreferencesDataCollection" - }, - { - "type": "null" - } - ], - "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." - }, - "enforce_distillable_text": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used." - }, - "ignore": { - "type": [ - "array", - "null" - ], + "analysis_models": { + "type": "array", "items": { - "$ref": "#/components/schemas/ProviderPreferencesIgnoreItems" + "type": "string" }, - "description": "List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request." + "description": "Slugs of models to run in parallel as the analysis panel. Each model receives the user prompt with openrouter:web_search and openrouter:web_fetch enabled, then a judge model summarizes the collective output into structured analysis JSON. Capped at 8 models to bound cost amplification. Defaults to the Quality preset from /labs/fusion." }, - "max_price": { - "$ref": "#/components/schemas/ProviderPreferencesMaxPrice", - "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion." + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "only": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ProviderPreferencesOnlyItems" - }, - "description": "List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request." + "max_completion_tokens": { + "type": "integer", + "description": "Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, panelists default to 32000 and the judge to 50000." }, - "order": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ProviderPreferencesOrderItems" - }, - "description": "An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message." + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." }, - "preferred_max_latency": { - "$ref": "#/components/schemas/PreferredMaxLatency" + "model": { + "type": "string", + "description": "Slug of the judge model that produces the structured analysis JSON. Defaults to the model used in the outer API request." }, - "preferred_min_throughput": { - "$ref": "#/components/schemas/PreferredMinThroughput" + "reasoning": { + "$ref": "#/components/schemas/FusionServerToolConfigReasoning", + "description": "Reasoning configuration forwarded to panelist and judge inner calls. Use this to control reasoning effort and token budget for models that support extended thinking." }, - "quantizations": { - "type": [ - "array", - "null" - ], + "temperature": { + "type": "number", + "format": "double", + "description": "Temperature forwarded to panelist inner calls. The judge always runs at temperature 0 regardless of this value. When omitted, the provider's default applies." + }, + "tools": { + "type": "array", "items": { - "$ref": "#/components/schemas/Quantization" + "$ref": "#/components/schemas/FusionServerToolConfigToolsItems" }, - "description": "A list of quantization levels to filter the provider by." - }, - "require_parameters": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." - }, - "sort": { - "$ref": "#/components/schemas/ProviderPreferencesSort", - "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." - }, - "zdr": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used." + "description": "Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only)." } }, - "description": "When multiple model providers are available, optionally indicate your routing preference.", - "title": "ProviderPreferences" - }, - "ReasoningEffort": { - "type": "string", - "enum": [ - "max", - "xhigh", - "high", - "medium", - "low", - "minimal", - "none" - ], - "title": "ReasoningEffort" + "description": "Configuration for the openrouter:fusion server tool.", + "title": "FusionServerToolConfig" }, - "ReasoningSummaryVerbosity": { + "FusionServerToolOpenRouterType": { "type": "string", "enum": [ - "auto", - "concise", - "detailed" + "openrouter:fusion" ], - "title": "ReasoningSummaryVerbosity" + "title": "FusionServerToolOpenRouterType" }, - "ReasoningConfig": { + "FusionServerTool_OpenRouter": { "type": "object", "properties": { - "effort": { - "$ref": "#/components/schemas/ReasoningEffort" - }, - "summary": { - "$ref": "#/components/schemas/ReasoningSummaryVerbosity" - }, - "enabled": { - "type": [ - "boolean", - "null" - ] + "parameters": { + "$ref": "#/components/schemas/FusionServerToolConfig" }, - "max_tokens": { - "type": [ - "integer", - "null" - ] + "type": { + "$ref": "#/components/schemas/FusionServerToolOpenRouterType" } }, - "description": "Configuration for reasoning mode in the response", - "title": "ReasoningConfig" - }, - "ResponsesRequestServiceTier": { - "type": "string", - "enum": [ - "auto", - "default", - "flex", - "priority", - "scale" - ], - "default": "auto", - "title": "ResponsesRequestServiceTier" - }, - "StopServerToolsWhenFinishReasonIsType": { - "type": "string", - "enum": [ - "finish_reason_is" - ], - "title": "StopServerToolsWhenFinishReasonIsType" - }, - "StopServerToolsWhenHasToolCallType": { - "type": "string", - "enum": [ - "has_tool_call" - ], - "title": "StopServerToolsWhenHasToolCallType" - }, - "StopServerToolsWhenMaxCostType": { - "type": "string", - "enum": [ - "max_cost" + "required": [ + "type" ], - "title": "StopServerToolsWhenMaxCostType" + "description": "OpenRouter built-in server tool: fans out the user prompt to a panel of analysis models, then asks a judge model to summarize their collective output as structured JSON the outer model can synthesize from.", + "title": "FusionServerTool_OpenRouter" }, - "StopServerToolsWhenMaxTokensUsedType": { - "type": "string", - "enum": [ - "max_tokens_used" - ], - "title": "StopServerToolsWhenMaxTokensUsedType" + "ImageGenerationServerToolConfig": { + "type": "object", + "properties": { + "model": { + "type": "string", + "description": "Which image generation model to use (e.g. \"openai/gpt-5-image\"). Defaults to \"openai/gpt-5-image\"." + } + }, + "description": "Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.", + "title": "ImageGenerationServerToolConfig" }, - "StopServerToolsWhenStepCountIsType": { + "ImageGenerationServerToolOpenRouterType": { "type": "string", "enum": [ - "step_count_is" + "openrouter:image_generation" ], - "title": "StopServerToolsWhenStepCountIsType" + "title": "ImageGenerationServerToolOpenRouterType" }, - "StopServerToolsWhenCondition": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/StopServerToolsWhenFinishReasonIsType" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "type", - "reason" - ], - "description": "Stop when the upstream model emits this finish reason (e.g. `length`)." - }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/StopServerToolsWhenHasToolCallType" - }, - "tool_name": { - "type": "string" - } - }, - "required": [ - "type", - "tool_name" - ], - "description": "Stop after a tool with this name has been called." - }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/StopServerToolsWhenMaxCostType" - }, - "max_cost_in_dollars": { - "type": "number", - "format": "double" - } - }, - "required": [ - "type", - "max_cost_in_dollars" - ], - "description": "Stop once cumulative cost across the loop exceeds this dollar threshold." - }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/StopServerToolsWhenMaxTokensUsedType" - }, - "max_tokens": { - "type": "integer" - } - }, - "required": [ - "type", - "max_tokens" - ], - "description": "Stop once cumulative token usage across the loop exceeds this threshold." + "ImageGenerationServerTool_OpenRouter": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/ImageGenerationServerToolConfig" }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/StopServerToolsWhenStepCountIsType" - }, - "step_count": { - "type": "integer" - } - }, - "required": [ - "type", - "step_count" - ], - "description": "Stop after the agent loop has executed this many steps." + "type": { + "$ref": "#/components/schemas/ImageGenerationServerToolOpenRouterType" } - ], - "discriminator": { - "propertyName": "type" }, - "description": "A single condition that, when met, halts the server-tool agent loop.", - "title": "StopServerToolsWhenCondition" + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: generates images from text prompts using an image generation model", + "title": "ImageGenerationServerTool_OpenRouter" }, - "StopServerToolsWhen": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StopServerToolsWhenCondition" + "SearchModelsServerToolConfig": { + "type": "object", + "properties": { + "max_results": { + "type": "integer", + "description": "Maximum number of models to return. Defaults to 5, max 20." + } }, - "description": "Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`.", - "title": "StopServerToolsWhen" + "description": "Configuration for the openrouter:experimental__search_models server tool", + "title": "SearchModelsServerToolConfig" }, - "FormatTextConfigType": { + "SearchModelsServerToolOpenRouterType": { "type": "string", "enum": [ - "text" + "openrouter:experimental__search_models" ], - "title": "FormatTextConfigType" + "title": "SearchModelsServerToolOpenRouterType" }, - "FormatTextConfig": { + "SearchModelsServerTool_OpenRouter": { "type": "object", "properties": { + "parameters": { + "$ref": "#/components/schemas/SearchModelsServerToolConfig" + }, "type": { - "$ref": "#/components/schemas/FormatTextConfigType" + "$ref": "#/components/schemas/SearchModelsServerToolOpenRouterType" } }, "required": [ "type" ], - "description": "Plain text response format", - "title": "FormatTextConfig" + "description": "OpenRouter built-in server tool: searches and filters AI models available on OpenRouter", + "title": "SearchModelsServerTool_OpenRouter" }, - "FormatJsonObjectConfigType": { + "WebFetchEngineEnum": { "type": "string", "enum": [ - "json_object" + "auto", + "native", + "openrouter", + "exa", + "parallel", + "firecrawl" ], - "title": "FormatJsonObjectConfigType" + "description": "Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape (requires BYOK). \"parallel\" uses the Parallel extract API.", + "title": "WebFetchEngineEnum" }, - "FormatJsonObjectConfig": { + "WebFetchServerToolConfig": { + "type": "object", + "properties": { + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Only fetch from these domains." + }, + "blocked_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Never fetch from these domains." + }, + "engine": { + "$ref": "#/components/schemas/WebFetchEngineEnum" + }, + "max_content_tokens": { + "type": "integer", + "description": "Maximum content length in approximate tokens. Content exceeding this limit is truncated." + }, + "max_uses": { + "type": "integer", + "description": "Maximum number of web fetches per request. Once exceeded, the tool returns an error." + } + }, + "description": "Configuration for the openrouter:web_fetch server tool", + "title": "WebFetchServerToolConfig" + }, + "WebFetchServerToolType": { + "type": "string", + "enum": [ + "openrouter:web_fetch" + ], + "title": "WebFetchServerToolType" + }, + "WebFetchServerTool": { "type": "object", "properties": { + "parameters": { + "$ref": "#/components/schemas/WebFetchServerToolConfig" + }, "type": { - "$ref": "#/components/schemas/FormatJsonObjectConfigType" + "$ref": "#/components/schemas/WebFetchServerToolType" } }, "required": [ "type" ], - "description": "JSON object response format", - "title": "FormatJsonObjectConfig" + "description": "OpenRouter built-in server tool: fetches full content from a URL (web page or PDF)", + "title": "WebFetchServerTool" }, - "FormatJsonSchemaConfigType": { + "SearchQualityLevel": { "type": "string", "enum": [ - "json_schema" + "low", + "medium", + "high" ], - "title": "FormatJsonSchemaConfigType" + "description": "How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.", + "title": "SearchQualityLevel" }, - "FormatJsonSchemaConfig": { + "WebSearchUserLocationServerToolType": { + "type": "string", + "enum": [ + "approximate" + ], + "title": "WebSearchUserLocationServerToolType" + }, + "WebSearchUserLocationServerTool": { "type": "object", "properties": { - "description": { - "type": "string" + "city": { + "type": [ + "string", + "null" + ] }, - "name": { - "type": "string" + "country": { + "type": [ + "string", + "null" + ] }, - "schema": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } + "region": { + "type": [ + "string", + "null" + ] }, - "strict": { + "timezone": { "type": [ - "boolean", + "string", "null" ] }, "type": { - "$ref": "#/components/schemas/FormatJsonSchemaConfigType" + "$ref": "#/components/schemas/WebSearchUserLocationServerToolType" } }, - "required": [ - "name", - "schema", - "type" - ], - "description": "JSON schema constrained response format", - "title": "FormatJsonSchemaConfig" + "description": "Approximate user location for location-biased results.", + "title": "WebSearchUserLocationServerTool" }, - "Formats": { - "oneOf": [ - { - "$ref": "#/components/schemas/FormatTextConfig" + "WebSearchServerToolConfig": { + "type": "object", + "properties": { + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, xAI). Cannot be used with excluded_domains." }, - { - "$ref": "#/components/schemas/FormatJsonObjectConfig" + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" }, - { - "$ref": "#/components/schemas/FormatJsonSchemaConfig" + "excluded_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, and xAI. Not supported with OpenAI (silently ignored). Cannot be used with allowed_domains." + }, + "max_characters": { + "type": "integer", + "description": "Exact maximum number of characters of content per search result. Applies to the Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, caps highlight content per result. For Parallel, caps excerpt content per result (default 1,500 when omitted). For Perplexity, maps to the native `max_tokens_per_page` parameter (converted from characters to tokens) and trims the response to the exact character cap. When both `max_characters` and `search_context_size` are set, `max_characters` takes precedence. When omitted, falls back to `search_context_size` mapping (Exa) or engine defaults (Parallel, Perplexity)." + }, + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." + }, + "max_total_results": { + "type": "integer", + "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." + }, + "search_context_size": { + "$ref": "#/components/schemas/SearchQualityLevel" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchUserLocationServerTool" } - ], - "description": "Text response format configuration", - "title": "Formats" + }, + "description": "Configuration for the openrouter:web_search server tool", + "title": "WebSearchServerToolConfig" }, - "TextExtendedConfigVerbosity": { + "WebSearchServerToolOpenRouterType": { "type": "string", "enum": [ - "low", - "medium", - "high", - "xhigh", - "max" + "openrouter:web_search" ], - "title": "TextExtendedConfigVerbosity" + "title": "WebSearchServerToolOpenRouterType" }, - "TextExtendedConfig": { + "WebSearchServerTool_OpenRouter": { "type": "object", "properties": { - "format": { - "$ref": "#/components/schemas/Formats" + "parameters": { + "$ref": "#/components/schemas/WebSearchServerToolConfig" }, - "verbosity": { - "oneOf": [ - { - "$ref": "#/components/schemas/TextExtendedConfigVerbosity" - }, - { - "type": "null" - } - ] + "type": { + "$ref": "#/components/schemas/WebSearchServerToolOpenRouterType" } }, - "description": "Text output configuration including format and verbosity", - "title": "TextExtendedConfig" - }, - "OpenAiResponsesToolChoice0": { - "type": "string", - "enum": [ - "auto" + "required": [ + "type" ], - "title": "OpenAiResponsesToolChoice0" + "description": "OpenRouter built-in server tool: searches the web for current information", + "title": "WebSearchServerTool_OpenRouter" }, - "OpenAiResponsesToolChoice1": { + "ApplyPatchEngineEnum": { "type": "string", "enum": [ - "none" + "auto", + "native", + "openrouter" ], - "title": "OpenAiResponsesToolChoice1" + "description": "Which apply_patch engine to use. \"auto\" (default) uses native passthrough when the endpoint advertises native apply_patch support, otherwise falls back to OpenRouter's HITL validator. \"native\" forces native passthrough — when the endpoint does not support native, the request falls back to HITL. \"openrouter\" always runs the HITL validator. Native passthrough streams the diff incrementally via `apply_patch_call_operation_diff.delta` events; HITL buffers the diff for atomic delivery as a single delta.", + "title": "ApplyPatchEngineEnum" }, - "OpenAiResponsesToolChoice2": { - "type": "string", - "enum": [ - "required" - ], - "title": "OpenAiResponsesToolChoice2" + "ApplyPatchServerToolConfig": { + "type": "object", + "properties": { + "engine": { + "$ref": "#/components/schemas/ApplyPatchEngineEnum" + } + }, + "description": "Configuration for the openrouter:apply_patch server tool", + "title": "ApplyPatchServerToolConfig" }, - "OpenAiResponsesToolChoiceOneOf3Type": { + "ApplyPatchServerToolOpenRouterType": { "type": "string", "enum": [ - "function" + "openrouter:apply_patch" ], - "title": "OpenAiResponsesToolChoiceOneOf3Type" + "title": "ApplyPatchServerToolOpenRouterType" }, - "OpenAiResponsesToolChoice3": { + "ApplyPatchServerTool_OpenRouter": { "type": "object", "properties": { - "name": { - "type": "string" + "parameters": { + "$ref": "#/components/schemas/ApplyPatchServerToolConfig" }, "type": { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf3Type" + "$ref": "#/components/schemas/ApplyPatchServerToolOpenRouterType" } }, "required": [ - "name", "type" ], - "title": "OpenAiResponsesToolChoice3" - }, - "OpenAiResponsesToolChoiceOneOf4Type0": { - "type": "string", - "enum": [ - "web_search_preview_2025_03_11" - ], - "title": "OpenAiResponsesToolChoiceOneOf4Type0" + "description": "OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API.", + "title": "ApplyPatchServerTool_OpenRouter" }, - "OpenAiResponsesToolChoiceOneOf4Type1": { + "BashServerToolEngine": { "type": "string", "enum": [ - "web_search_preview" + "auto", + "native", + "openrouter" ], - "title": "OpenAiResponsesToolChoiceOneOf4Type1" + "description": "Which bash engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) and \"native\" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.", + "title": "BashServerToolEngine" }, - "OpenAiResponsesToolChoiceOneOf4Type": { + "BashServerToolEnvironment": { "oneOf": [ { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type0" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "container_auto" + ], + "description": "Discriminator value: container_auto" + } + }, + "required": [ + "type" + ], + "description": "An OpenRouter-managed, auto-provisioned ephemeral container." }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type1" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "container_reference" + ], + "description": "Discriminator value: container_reference" + }, + "container_id": { + "type": "string", + "description": "Identifier of an existing container to reuse (max 20 characters)." + } + }, + "required": [ + "type", + "container_id" + ], + "description": "Reference to a previously created container to reuse." } ], - "title": "OpenAiResponsesToolChoiceOneOf4Type" + "discriminator": { + "propertyName": "type" + }, + "description": "Execution environment for the bash server tool.", + "title": "BashServerToolEnvironment" }, - "OpenAiResponsesToolChoice4": { + "SandboxSleepAfterSeconds": { + "type": "integer", + "description": "How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days).", + "title": "SandboxSleepAfterSeconds" + }, + "BashServerToolConfig": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type" + "engine": { + "$ref": "#/components/schemas/BashServerToolEngine" + }, + "environment": { + "$ref": "#/components/schemas/BashServerToolEnvironment" + }, + "sleep_after_seconds": { + "$ref": "#/components/schemas/SandboxSleepAfterSeconds" } }, - "required": [ - "type" - ], - "title": "OpenAiResponsesToolChoice4" + "description": "Configuration for the openrouter:bash server tool", + "title": "BashServerToolConfig" }, - "ToolChoiceAllowedMode0": { + "BashServerToolType": { "type": "string", "enum": [ - "auto" + "openrouter:bash" ], - "title": "ToolChoiceAllowedMode0" + "title": "BashServerToolType" }, - "ToolChoiceAllowedMode1": { + "BashServerTool": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/BashServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/BashServerToolType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container", + "title": "BashServerTool" + }, + "ShellServerToolEngine": { "type": "string", "enum": [ - "required" + "auto", + "openrouter" ], - "title": "ToolChoiceAllowedMode1" + "description": "Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.", + "title": "ShellServerToolEngine" }, - "ToolChoiceAllowedMode": { + "ShellServerToolEnvironment": { "oneOf": [ { - "$ref": "#/components/schemas/ToolChoiceAllowedMode0" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "container_auto" + ], + "description": "Discriminator value: container_auto" + } + }, + "required": [ + "type" + ], + "description": "An OpenRouter-managed, auto-provisioned ephemeral container." }, { - "$ref": "#/components/schemas/ToolChoiceAllowedMode1" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "container_reference" + ], + "description": "Discriminator value: container_reference" + }, + "container_id": { + "type": "string", + "description": "Identifier of an existing container to reuse (max 20 characters)." + } + }, + "required": [ + "type", + "container_id" + ], + "description": "Reference to a previously created container to reuse." } ], - "title": "ToolChoiceAllowedMode" - }, - "ToolChoiceAllowedType": { - "type": "string", - "enum": [ - "allowed_tools" - ], - "title": "ToolChoiceAllowedType" + "discriminator": { + "propertyName": "type" + }, + "description": "Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.", + "title": "ShellServerToolEnvironment" }, - "ToolChoiceAllowed": { + "ShellServerToolConfig": { "type": "object", "properties": { - "mode": { - "$ref": "#/components/schemas/ToolChoiceAllowedMode" + "engine": { + "$ref": "#/components/schemas/ShellServerToolEngine" }, - "tools": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - } + "environment": { + "$ref": "#/components/schemas/ShellServerToolEnvironment" }, - "type": { - "$ref": "#/components/schemas/ToolChoiceAllowedType" + "sleep_after_seconds": { + "$ref": "#/components/schemas/SandboxSleepAfterSeconds" } }, - "required": [ - "mode", - "tools", - "type" - ], - "description": "Constrains the model to a pre-defined set of allowed tools", - "title": "ToolChoiceAllowed" + "description": "Configuration for the openrouter:shell server tool", + "title": "ShellServerToolConfig" }, - "OpenAiResponsesToolChoiceOneOf6Type": { + "ShellServerToolOpenRouterType": { "type": "string", "enum": [ - "apply_patch" + "openrouter:shell" ], - "title": "OpenAiResponsesToolChoiceOneOf6Type" + "title": "ShellServerToolOpenRouterType" }, - "OpenAiResponsesToolChoice6": { + "ShellServerTool_OpenRouter": { "type": "object", "properties": { + "parameters": { + "$ref": "#/components/schemas/ShellServerToolConfig" + }, "type": { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf6Type" + "$ref": "#/components/schemas/ShellServerToolOpenRouterType" } }, "required": [ "type" ], - "title": "OpenAiResponsesToolChoice6" - }, - "OpenAiResponsesToolChoiceOneOf7Type": { - "type": "string", - "enum": [ - "shell" - ], - "title": "OpenAiResponsesToolChoiceOneOf7Type" + "description": "OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)", + "title": "ShellServerTool_OpenRouter" }, - "OpenAiResponsesToolChoice7": { + "AdditionalToolsItemToolsItems27": { "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf7Type" + "type": "string" } }, "required": [ "type" ], - "title": "OpenAiResponsesToolChoice7" + "title": "AdditionalToolsItemToolsItems27" }, - "OpenAIResponsesToolChoice": { + "AdditionalToolsItemToolsItems": { "oneOf": [ { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice0" + "$ref": "#/components/schemas/AdditionalToolsItemToolsItems0" + }, + { + "$ref": "#/components/schemas/Preview_WebSearchServerTool" + }, + { + "$ref": "#/components/schemas/Preview_20250311_WebSearchServerTool" + }, + { + "$ref": "#/components/schemas/Legacy_WebSearchServerTool" + }, + { + "$ref": "#/components/schemas/WebSearchServerTool" + }, + { + "$ref": "#/components/schemas/FileSearchServerTool" + }, + { + "$ref": "#/components/schemas/ComputerUseServerTool" + }, + { + "$ref": "#/components/schemas/CodeInterpreterServerTool" + }, + { + "$ref": "#/components/schemas/McpServerTool" + }, + { + "$ref": "#/components/schemas/ImageGenerationServerTool" + }, + { + "$ref": "#/components/schemas/CodexLocalShellTool" + }, + { + "$ref": "#/components/schemas/ShellServerTool" + }, + { + "$ref": "#/components/schemas/ApplyPatchServerTool" + }, + { + "$ref": "#/components/schemas/CustomTool" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice1" + "$ref": "#/components/schemas/NamespaceTool" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice2" + "$ref": "#/components/schemas/AdvisorServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice3" + "$ref": "#/components/schemas/SubagentServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice4" + "$ref": "#/components/schemas/DatetimeServerTool" }, { - "$ref": "#/components/schemas/ToolChoiceAllowed" + "$ref": "#/components/schemas/FilesServerTool" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice6" + "$ref": "#/components/schemas/FusionServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/OpenAiResponsesToolChoice7" + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/SearchModelsServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/WebFetchServerTool" + }, + { + "$ref": "#/components/schemas/WebSearchServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/ApplyPatchServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/BashServerTool" + }, + { + "$ref": "#/components/schemas/ShellServerTool_OpenRouter" + }, + { + "$ref": "#/components/schemas/AdditionalToolsItemToolsItems27" } ], - "title": "OpenAIResponsesToolChoice" + "title": "AdditionalToolsItemToolsItems" }, - "ResponsesRequestToolsItemsOneOf0Type": { + "AdditionalToolsItemType": { "type": "string", "enum": [ - "function" + "additional_tools" ], - "title": "ResponsesRequestToolsItemsOneOf0Type" + "title": "AdditionalToolsItemType" }, - "ResponsesRequestToolsItems0": { + "AdditionalToolsItem": { "type": "object", "properties": { - "description": { + "id": { "type": [ "string", "null" ] }, - "name": { - "type": "string" + "role": { + "$ref": "#/components/schemas/AdditionalToolsItemRole" }, - "parameters": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "description": "Any type" + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AdditionalToolsItemToolsItems" } }, - "strict": { - "type": [ - "boolean", - "null" - ] - }, "type": { - "$ref": "#/components/schemas/ResponsesRequestToolsItemsOneOf0Type" + "$ref": "#/components/schemas/AdditionalToolsItemType" } }, "required": [ - "name", - "parameters", + "role", + "tools", "type" ], - "description": "Function tool definition", - "title": "ResponsesRequestToolsItems0" - }, - "WebSearchEngineEnum": { - "type": "string", - "enum": [ - "native", - "exa", - "parallel", - "firecrawl", - "perplexity", - "auto" - ], - "description": "Which search engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in search. \"exa\" forces the Exa search API. \"firecrawl\" uses Firecrawl (requires BYOK). \"parallel\" uses the Parallel search API. \"perplexity\" uses the Perplexity Search API (raw ranked results).", - "title": "WebSearchEngineEnum" + "description": "Additional tools made available to the model at this point in the input", + "title": "AdditionalToolsItem" }, - "WebSearchDomainFilter": { + "AgentMessageItemAgent": { "type": "object", "properties": { - "allowed_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "excluded_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } + "agent_name": { + "type": "string" } }, - "title": "WebSearchDomainFilter" - }, - "SearchContextSizeEnum": { - "type": "string", - "enum": [ - "low", - "medium", - "high" + "required": [ + "agent_name" ], - "description": "Size of the search context for web search tools", - "title": "SearchContextSizeEnum" + "title": "AgentMessageItemAgent" }, - "PreviewWebSearchServerToolType": { + "AgentMessageItemContentItemsOneOf1Detail": { "type": "string", "enum": [ - "web_search_preview" + "auto", + "high", + "low", + "original" ], - "title": "PreviewWebSearchServerToolType" + "title": "AgentMessageItemContentItemsOneOf1Detail" }, - "PreviewWebSearchUserLocationType": { + "AgentMessageItemContentItemsOneOf1Type": { "type": "string", "enum": [ - "approximate" + "input_image" ], - "title": "PreviewWebSearchUserLocationType" + "title": "AgentMessageItemContentItemsOneOf1Type" }, - "Preview_WebSearchUserLocation": { + "AgentMessageItemContentItems1": { "type": "object", "properties": { - "city": { - "type": [ - "string", - "null" - ] - }, - "country": { - "type": [ - "string", - "null" - ] - }, - "region": { - "type": [ - "string", - "null" - ] + "detail": { + "$ref": "#/components/schemas/AgentMessageItemContentItemsOneOf1Detail" }, - "timezone": { + "image_url": { "type": [ "string", "null" ] }, "type": { - "$ref": "#/components/schemas/PreviewWebSearchUserLocationType" - } - }, - "required": [ - "type" - ], - "title": "Preview_WebSearchUserLocation" - }, - "Preview_WebSearchServerTool": { - "type": "object", - "properties": { - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" - }, - "filters": { - "$ref": "#/components/schemas/WebSearchDomainFilter" - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchContextSizeEnum" - }, - "type": { - "$ref": "#/components/schemas/PreviewWebSearchServerToolType" - }, - "user_location": { - "$ref": "#/components/schemas/Preview_WebSearchUserLocation" + "$ref": "#/components/schemas/AgentMessageItemContentItemsOneOf1Type" } }, "required": [ + "detail", "type" ], - "description": "Web search preview tool configuration", - "title": "Preview_WebSearchServerTool" + "description": "Image input content item", + "title": "AgentMessageItemContentItems1" }, - "Preview20250311WebSearchServerToolType": { + "AgentMessageItemContentItemsOneOf2Type": { "type": "string", "enum": [ - "web_search_preview_2025_03_11" + "encrypted_content" ], - "title": "Preview20250311WebSearchServerToolType" + "title": "AgentMessageItemContentItemsOneOf2Type" }, - "Preview_20250311_WebSearchServerTool": { + "AgentMessageItemContentItems2": { "type": "object", "properties": { - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" - }, - "filters": { - "$ref": "#/components/schemas/WebSearchDomainFilter" - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchContextSizeEnum" + "encrypted_content": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/Preview20250311WebSearchServerToolType" - }, - "user_location": { - "$ref": "#/components/schemas/Preview_WebSearchUserLocation" + "$ref": "#/components/schemas/AgentMessageItemContentItemsOneOf2Type" } }, "required": [ + "encrypted_content", "type" ], - "description": "Web search preview tool configuration (2025-03-11 version)", - "title": "Preview_20250311_WebSearchServerTool" + "title": "AgentMessageItemContentItems2" }, - "LegacyWebSearchServerToolType": { - "type": "string", - "enum": [ - "web_search" + "AgentMessageItemContentItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/InputText" + }, + { + "$ref": "#/components/schemas/AgentMessageItemContentItems1" + }, + { + "$ref": "#/components/schemas/AgentMessageItemContentItems2" + } ], - "title": "LegacyWebSearchServerToolType" + "title": "AgentMessageItemContentItems" }, - "WebSearchUserLocationType": { + "AgentMessageItemType": { "type": "string", "enum": [ - "approximate" + "agent_message" ], - "title": "WebSearchUserLocationType" + "title": "AgentMessageItemType" }, - "WebSearchUserLocation": { + "AgentMessageItem": { "type": "object", "properties": { - "city": { - "type": [ - "string", - "null" + "agent": { + "oneOf": [ + { + "$ref": "#/components/schemas/AgentMessageItemAgent" + }, + { + "type": "null" + } ] }, - "country": { - "type": [ - "string", - "null" - ] + "author": { + "type": "string" }, - "region": { - "type": [ - "string", - "null" - ] + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AgentMessageItemContentItems" + } }, - "timezone": { + "id": { "type": [ "string", "null" ] }, + "recipient": { + "type": "string" + }, "type": { - "$ref": "#/components/schemas/WebSearchUserLocationType" + "$ref": "#/components/schemas/AgentMessageItemType" } }, - "description": "User location information for web search", - "title": "WebSearchUserLocation" + "required": [ + "author", + "content", + "recipient", + "type" + ], + "description": "A message routed between agents in a multi-agent session", + "title": "AgentMessageItem" }, - "Legacy_WebSearchServerTool": { - "type": "object", - "properties": { - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" + "InputsOneOf1Items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ReasoningItem" }, - "filters": { - "$ref": "#/components/schemas/WebSearchDomainFilter" + { + "$ref": "#/components/schemas/EasyInputMessage" }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." + { + "$ref": "#/components/schemas/InputMessageItem" }, - "search_context_size": { - "$ref": "#/components/schemas/SearchContextSizeEnum" + { + "$ref": "#/components/schemas/FunctionCallItem" }, - "type": { - "$ref": "#/components/schemas/LegacyWebSearchServerToolType" + { + "$ref": "#/components/schemas/FunctionCallOutputItem" }, - "user_location": { - "$ref": "#/components/schemas/WebSearchUserLocation" + { + "$ref": "#/components/schemas/ApplyPatchCallItem" + }, + { + "$ref": "#/components/schemas/ApplyPatchCallOutputItem" + }, + { + "$ref": "#/components/schemas/InputsOneOf1Items7" + }, + { + "$ref": "#/components/schemas/InputsOneOf1Items8" + }, + { + "$ref": "#/components/schemas/OutputFunctionCallItem" + }, + { + "$ref": "#/components/schemas/OutputCustomToolCallItem" + }, + { + "$ref": "#/components/schemas/OutputWebSearchCallItem" + }, + { + "$ref": "#/components/schemas/OutputFileSearchCallItem" + }, + { + "$ref": "#/components/schemas/OutputImageGenerationCallItem" + }, + { + "$ref": "#/components/schemas/OutputCodeInterpreterCallItem" + }, + { + "$ref": "#/components/schemas/OutputComputerCallItem" + }, + { + "$ref": "#/components/schemas/OutputDatetimeItem" + }, + { + "$ref": "#/components/schemas/OutputWebSearchServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputCodeInterpreterServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputFileSearchServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputImageGenerationServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputBrowserUseServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputBashServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputTextEditorServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputApplyPatchServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputWebFetchServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputToolSearchServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputMemoryServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputMcpServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputSearchModelsServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputFusionServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputAdvisorServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputSubagentServerToolItem" + }, + { + "$ref": "#/components/schemas/OutputFilesServerToolItem" + }, + { + "$ref": "#/components/schemas/LocalShellCallItem" + }, + { + "$ref": "#/components/schemas/LocalShellCallOutputItem" + }, + { + "$ref": "#/components/schemas/ShellCallItem" + }, + { + "$ref": "#/components/schemas/ShellCallOutputItem" + }, + { + "$ref": "#/components/schemas/McpListToolsItem" + }, + { + "$ref": "#/components/schemas/McpApprovalRequestItem" + }, + { + "$ref": "#/components/schemas/McpApprovalResponseItem" + }, + { + "$ref": "#/components/schemas/McpCallItem" + }, + { + "$ref": "#/components/schemas/CustomToolCallItem" + }, + { + "$ref": "#/components/schemas/CustomToolCallOutputItem" + }, + { + "$ref": "#/components/schemas/CompactionItem" + }, + { + "$ref": "#/components/schemas/ContextCompactionItem" + }, + { + "$ref": "#/components/schemas/ItemReferenceItem" + }, + { + "$ref": "#/components/schemas/AdditionalToolsItem" + }, + { + "$ref": "#/components/schemas/AgentMessageItem" } + ], + "title": "InputsOneOf1Items" + }, + "Inputs1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InputsOneOf1Items" }, - "required": [ - "type" + "title": "Inputs1" + }, + "Inputs": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Inputs1" + } ], - "description": "Web search tool configuration", - "title": "Legacy_WebSearchServerTool" + "description": "Input for a response request - can be a string or array of items", + "title": "Inputs" }, - "WebSearchServerToolType": { + "RequestMetadata": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "type": "string" + }, + "description": "Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed.", + "title": "RequestMetadata" + }, + "OutputModalityEnum": { "type": "string", "enum": [ - "web_search_2025_08_26" + "text", + "image" ], - "title": "WebSearchServerToolType" + "title": "OutputModalityEnum" }, - "WebSearchServerTool": { + "ContextCompressionEngine": { + "type": "string", + "enum": [ + "middle-out" + ], + "description": "The compression engine to use. Defaults to \"middle-out\".", + "title": "ContextCompressionEngine" + }, + "PdfParserEngine0": { + "type": "string", + "enum": [ + "mistral-ocr", + "native", + "cloudflare-ai" + ], + "title": "PdfParserEngine0" + }, + "PdfParserEngine1": { + "type": "string", + "enum": [ + "pdf-text" + ], + "title": "PdfParserEngine1" + }, + "PDFParserEngine": { + "oneOf": [ + { + "$ref": "#/components/schemas/PdfParserEngine0" + }, + { + "$ref": "#/components/schemas/PdfParserEngine1" + } + ], + "description": "The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".", + "title": "PDFParserEngine" + }, + "PDFParserOptions": { "type": "object", "properties": { "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" - }, - "filters": { - "$ref": "#/components/schemas/WebSearchDomainFilter" - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchContextSizeEnum" - }, - "type": { - "$ref": "#/components/schemas/WebSearchServerToolType" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchUserLocation" + "$ref": "#/components/schemas/PDFParserEngine" } }, - "required": [ - "type" - ], - "description": "Web search tool configuration (2025-08-26 version)", - "title": "WebSearchServerTool" + "description": "Options for PDF parsing.", + "title": "PDFParserOptions" }, - "FileSearchServerToolFiltersOneOf0Type": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset": { "type": "string", "enum": [ - "eq", - "ne", - "gt", - "gte", - "lt", - "lte" + "general-high", + "general-budget", + "general-fast" ], - "title": "FileSearchServerToolFiltersOneOf0Type" + "description": "A curated OpenRouter fusion preset (slugs follow `-`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.", + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset" }, - "FileSearchServerToolFiltersOneOf0ValueOneOf3Items": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items": { "oneOf": [ { "type": "string" @@ -12643,18 +13824,28 @@ { "type": "number", "format": "double" + }, + { + "type": "boolean" } ], - "title": "FileSearchServerToolFiltersOneOf0ValueOneOf3Items" + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items" }, - "FileSearchServerToolFiltersOneOf0Value3": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3": { "type": "array", "items": { - "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0ValueOneOf3Items" + "oneOf": [ + { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf3Items" + }, + { + "type": "null" + } + ] }, - "title": "FileSearchServerToolFiltersOneOf0Value3" + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3" }, - "FileSearchServerToolFiltersOneOf0Value": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4": { "oneOf": [ { "type": "string" @@ -12665,830 +13856,1008 @@ }, { "type": "boolean" - }, - { - "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Value3" - } - ], - "title": "FileSearchServerToolFiltersOneOf0Value" - }, - "FileSearchServerToolFilters0": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Type" - }, - "value": { - "$ref": "#/components/schemas/FileSearchServerToolFiltersOneOf0Value" } - }, - "required": [ - "key", - "type", - "value" ], - "title": "FileSearchServerToolFilters0" - }, - "CompoundFilterType": { - "type": "string", - "enum": [ - "and", - "or" - ], - "title": "CompoundFilterType" + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4" }, - "CompoundFilter": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4": { "type": "object", - "properties": { - "filters": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4" + }, + { + "type": "null" } - }, - "type": { - "$ref": "#/components/schemas/CompoundFilterType" - } + ] }, - "required": [ - "filters", - "type" - ], - "description": "A compound filter that combines multiple comparison or compound filters", - "title": "CompoundFilter" + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4" }, - "FileSearchServerToolFilters": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters": { "oneOf": [ { - "$ref": "#/components/schemas/FileSearchServerToolFilters0" + "type": "string" }, { - "$ref": "#/components/schemas/CompoundFilter" + "type": "number", + "format": "double" }, { - "description": "Any type" + "type": "boolean" + }, + { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters3" + }, + { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters4" } ], - "title": "FileSearchServerToolFilters" - }, - "FileSearchServerToolRankingOptionsRanker": { - "type": "string", - "enum": [ - "auto", - "default-2024-11-15" - ], - "title": "FileSearchServerToolRankingOptionsRanker" + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters" }, - "FileSearchServerToolRankingOptions": { + "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems": { "type": "object", "properties": { - "ranker": { - "$ref": "#/components/schemas/FileSearchServerToolRankingOptionsRanker" + "parameters": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters" + }, + { + "type": "null" + } + ] + }, + "description": "Optional configuration forwarded as the tool's `parameters` object." }, - "score_threshold": { - "type": "number", - "format": "double" + "type": { + "type": "string", + "description": "Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\")." } }, - "title": "FileSearchServerToolRankingOptions" + "required": [ + "type" + ], + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems" }, - "FileSearchServerToolType": { + "ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource": { "type": "string", "enum": [ - "file_search" + "prompt", + "weighted_avg" ], - "title": "FileSearchServerToolType" + "description": "Price source for the Pareto frontier cost axis. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\".", + "title": "ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource" }, - "FileSearchServerTool": { - "type": "object", - "properties": { - "filters": { - "$ref": "#/components/schemas/FileSearchServerToolFilters" - }, - "max_num_results": { - "type": "integer" - }, - "ranking_options": { - "$ref": "#/components/schemas/FileSearchServerToolRankingOptions" - }, - "type": { - "$ref": "#/components/schemas/FileSearchServerToolType" - }, - "vector_store_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "type", - "vector_store_ids" + "WebSearchEngine": { + "type": "string", + "enum": [ + "native", + "exa", + "firecrawl", + "parallel", + "perplexity" ], - "description": "File search tool configuration", - "title": "FileSearchServerTool" + "description": "The search engine to use for web search.", + "title": "WebSearchEngine" }, - "ComputerUseServerToolEnvironment": { + "WebSearchPluginId": { "type": "string", "enum": [ - "windows", - "mac", - "linux", - "ubuntu", - "browser" + "web" ], - "title": "ComputerUseServerToolEnvironment" + "title": "WebSearchPluginId" }, - "ComputerUseServerToolType": { + "WebSearchPluginUserLocationType": { "type": "string", "enum": [ - "computer_use_preview" + "approximate" ], - "title": "ComputerUseServerToolType" + "title": "WebSearchPluginUserLocationType" }, - "ComputerUseServerTool": { + "WebSearchPluginUserLocation": { "type": "object", "properties": { - "display_height": { - "type": "integer" + "city": { + "type": [ + "string", + "null" + ] }, - "display_width": { - "type": "integer" + "country": { + "type": [ + "string", + "null" + ] }, - "environment": { - "$ref": "#/components/schemas/ComputerUseServerToolEnvironment" + "region": { + "type": [ + "string", + "null" + ] + }, + "timezone": { + "type": [ + "string", + "null" + ] }, "type": { - "$ref": "#/components/schemas/ComputerUseServerToolType" + "$ref": "#/components/schemas/WebSearchPluginUserLocationType" } }, "required": [ - "display_height", - "display_width", - "environment", "type" ], - "description": "Computer use preview tool configuration", - "title": "ComputerUseServerTool" - }, - "CodeInterpreterServerToolContainerOneOf1MemoryLimit": { - "type": "string", - "enum": [ - "1g", - "4g", - "16g", - "64g" - ], - "title": "CodeInterpreterServerToolContainerOneOf1MemoryLimit" + "description": "Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic).", + "title": "WebSearchPluginUserLocation" }, - "CodeInterpreterServerToolContainerOneOf1Type": { + "WebFetchPluginId": { "type": "string", "enum": [ - "auto" + "web-fetch" ], - "title": "CodeInterpreterServerToolContainerOneOf1Type" + "title": "WebFetchPluginId" }, - "CodeInterpreterServerToolContainer1": { - "type": "object", - "properties": { - "file_ids": { - "type": "array", - "items": { - "type": "string" - } + "ResponsesRequestPluginsItems": { + "oneOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "auto-beta-router" + ], + "description": "Discriminator value: auto-beta-router" + }, + "allowed_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-beta-router plugin for this request. Defaults to true." + } + }, + "required": [ + "id" + ], + "description": "auto-beta-router variant" }, - "memory_limit": { - "oneOf": [ - { - "$ref": "#/components/schemas/CodeInterpreterServerToolContainerOneOf1MemoryLimit" + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "auto-router" + ], + "description": "Discriminator value: auto-router" }, - { - "type": "null" + "allowed_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." } - ] + }, + "required": [ + "id" + ], + "description": "auto-router variant" }, - "type": { - "$ref": "#/components/schemas/CodeInterpreterServerToolContainerOneOf1Type" - } - }, - "required": [ - "type" - ], - "title": "CodeInterpreterServerToolContainer1" - }, - "CodeInterpreterServerToolContainer": { - "oneOf": [ { - "type": "string" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "context-compression" + ], + "description": "Discriminator value: context-compression" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." + }, + "engine": { + "$ref": "#/components/schemas/ContextCompressionEngine" + } + }, + "required": [ + "id" + ], + "description": "context-compression variant" }, { - "$ref": "#/components/schemas/CodeInterpreterServerToolContainer1" - } - ], - "title": "CodeInterpreterServerToolContainer" - }, - "CodeInterpreterServerToolType": { - "type": "string", - "enum": [ - "code_interpreter" - ], - "title": "CodeInterpreterServerToolType" - }, - "CodeInterpreterServerTool": { - "type": "object", - "properties": { - "container": { - "$ref": "#/components/schemas/CodeInterpreterServerToolContainer" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "file-parser" + ], + "description": "Discriminator value: file-parser" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." + }, + "pdf": { + "$ref": "#/components/schemas/PDFParserOptions" + } + }, + "required": [ + "id" + ], + "description": "file-parser variant" }, - "type": { - "$ref": "#/components/schemas/CodeInterpreterServerToolType" - } - }, - "required": [ - "container", - "type" - ], - "description": "Code interpreter tool configuration", - "title": "CodeInterpreterServerTool" - }, - "McpServerToolAllowedTools1": { - "type": "object", - "properties": { - "read_only": { - "type": "boolean" + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "fusion" + ], + "description": "Discriminator value: fusion" + }, + "analysis_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the fusion plugin for this request. Defaults to true." + }, + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." + }, + "model": { + "type": "string", + "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." + }, + "preset": { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset", + "description": "A curated OpenRouter fusion preset (slugs follow `-`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence." + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems" + }, + "description": "Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only)." + } + }, + "required": [ + "id" + ], + "description": "fusion variant" }, - "tool_names": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "McpServerToolAllowedTools1" - }, - "McpServerToolAllowedTools": { - "oneOf": [ { - "type": "array", - "items": { - "type": "string" - } + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "moderation" + ], + "description": "Discriminator value: moderation" + } + }, + "required": [ + "id" + ], + "description": "moderation variant" }, { - "$ref": "#/components/schemas/McpServerToolAllowedTools1" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "pareto-router" + ], + "description": "Discriminator value: pareto-router" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." + }, + "min_coding_score": { + "type": "number", + "format": "double", + "description": "Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66)." + }, + "price_source": { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource", + "description": "Price source for the Pareto frontier cost axis. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\"." + } + }, + "required": [ + "id" + ], + "description": "pareto-router variant" + }, + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "response-healing" + ], + "description": "Discriminator value: response-healing" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." + } + }, + "required": [ + "id" + ], + "description": "response-healing variant" + }, + { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/WebSearchPluginId" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the web-search plugin for this request. Defaults to true." + }, + "engine": { + "$ref": "#/components/schemas/WebSearchEngine" + }, + "exclude_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." + }, + "include_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." + }, + "max_results": { + "type": "integer" + }, + "max_uses": { + "type": "integer", + "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." + }, + "search_prompt": { + "type": "string" + }, + "user_location": { + "oneOf": [ + { + "$ref": "#/components/schemas/WebSearchPluginUserLocation" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id" + ], + "description": "web variant" }, { - "description": "Any type" + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/WebFetchPluginId" + }, + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Only fetch from these domains." + }, + "blocked_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Never fetch from these domains." + }, + "max_content_tokens": { + "type": "integer", + "description": "Maximum content length in approximate tokens. Content exceeding this limit is truncated." + }, + "max_uses": { + "type": "integer", + "description": "Maximum number of web fetches per request. Once exceeded, the tool returns an error." + } + }, + "required": [ + "id" + ], + "description": "web-fetch variant" } ], - "title": "McpServerToolAllowedTools" - }, - "McpServerToolConnectorId": { - "type": "string", - "enum": [ - "connector_dropbox", - "connector_gmail", - "connector_googlecalendar", - "connector_googledrive", - "connector_microsoftteams", - "connector_outlookcalendar", - "connector_outlookemail", - "connector_sharepoint" - ], - "title": "McpServerToolConnectorId" - }, - "McpServerToolRequireApprovalOneOf0Always": { - "type": "object", - "properties": { - "tool_names": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "McpServerToolRequireApprovalOneOf0Always" - }, - "McpServerToolRequireApprovalOneOf0Never": { - "type": "object", - "properties": { - "tool_names": { - "type": "array", - "items": { - "type": "string" - } - } + "discriminator": { + "propertyName": "id" }, - "title": "McpServerToolRequireApprovalOneOf0Never" + "title": "ResponsesRequestPluginsItems" }, - "McpServerToolRequireApproval0": { + "InputImage": { "type": "object", "properties": { - "always": { - "$ref": "#/components/schemas/McpServerToolRequireApprovalOneOf0Always" + "detail": { + "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail" }, - "never": { - "$ref": "#/components/schemas/McpServerToolRequireApprovalOneOf0Never" + "image_url": { + "type": [ + "string", + "null" + ] } }, - "title": "McpServerToolRequireApproval0" - }, - "McpServerToolRequireApproval1": { - "type": "string", - "enum": [ - "always" - ], - "title": "McpServerToolRequireApproval1" - }, - "McpServerToolRequireApproval2": { - "type": "string", - "enum": [ - "never" + "required": [ + "detail" ], - "title": "McpServerToolRequireApproval2" + "description": "Image input content item", + "title": "InputImage" }, - "McpServerToolRequireApproval": { + "StoredPromptTemplateVariables": { "oneOf": [ { - "$ref": "#/components/schemas/McpServerToolRequireApproval0" + "type": "string" }, { - "$ref": "#/components/schemas/McpServerToolRequireApproval1" + "$ref": "#/components/schemas/InputText" }, { - "$ref": "#/components/schemas/McpServerToolRequireApproval2" + "$ref": "#/components/schemas/InputImage" }, { - "description": "Any type" + "$ref": "#/components/schemas/InputFile" } ], - "title": "McpServerToolRequireApproval" - }, - "McpServerToolType": { - "type": "string", - "enum": [ - "mcp" - ], - "title": "McpServerToolType" + "title": "StoredPromptTemplateVariables" }, - "McpServerTool": { + "StoredPromptTemplate": { "type": "object", "properties": { - "allowed_tools": { - "$ref": "#/components/schemas/McpServerToolAllowedTools" - }, - "authorization": { + "id": { "type": "string" }, - "connector_id": { - "$ref": "#/components/schemas/McpServerToolConnectorId" - }, - "headers": { + "variables": { "type": [ "object", "null" ], "additionalProperties": { - "type": "string" + "$ref": "#/components/schemas/StoredPromptTemplateVariables" } - }, - "require_approval": { - "$ref": "#/components/schemas/McpServerToolRequireApproval" - }, - "server_description": { - "type": "string" - }, - "server_label": { - "type": "string" - }, - "server_url": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/McpServerToolType" } }, "required": [ - "server_label", - "type" - ], - "description": "MCP (Model Context Protocol) tool configuration", - "title": "McpServerTool" - }, - "ImageGenerationServerToolBackground": { - "type": "string", - "enum": [ - "transparent", - "opaque", - "auto" + "id" ], - "title": "ImageGenerationServerToolBackground" + "title": "StoredPromptTemplate" }, - "ImageGenerationServerToolInputFidelity": { + "PromptCacheOptionsMode": { "type": "string", "enum": [ - "high", - "low" + "explicit" ], - "title": "ImageGenerationServerToolInputFidelity" + "title": "PromptCacheOptionsMode" }, - "ImageGenerationServerToolInputImageMask": { + "PromptCacheOptions": { "type": "object", "properties": { - "file_id": { - "type": "string" + "mode": { + "$ref": "#/components/schemas/PromptCacheOptionsMode" }, - "image_url": { - "type": "string" + "ttl": { + "type": [ + "string", + "null" + ] } }, - "title": "ImageGenerationServerToolInputImageMask" - }, - "ImageGenerationServerToolModel": { - "type": "string", - "enum": [ - "gpt-image-1", - "gpt-image-1-mini" - ], - "title": "ImageGenerationServerToolModel" - }, - "ImageGenerationServerToolModeration": { - "type": "string", - "enum": [ - "auto", - "low" - ], - "title": "ImageGenerationServerToolModeration" - }, - "ImageGenerationServerToolOutputFormat": { - "type": "string", - "enum": [ - "png", - "webp", - "jpeg" + "required": [ + "mode" ], - "title": "ImageGenerationServerToolOutputFormat" + "description": "Request-level prompt-cache controls. `mode: \"explicit\"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.", + "title": "PromptCacheOptions" }, - "ImageGenerationServerToolQuality": { + "ProviderPreferencesDataCollection": { "type": "string", "enum": [ - "low", - "medium", - "high", - "auto" + "deny", + "allow" ], - "title": "ImageGenerationServerToolQuality" + "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.", + "title": "ProviderPreferencesDataCollection" }, - "ImageGenerationServerToolSize": { + "ProviderName": { "type": "string", "enum": [ - "1024x1024", - "1024x1536", - "1536x1024", - "auto" + "AkashML", + "AI21", + "AionLabs", + "Alibaba", + "Ambient", + "Baidu", + "Amazon Bedrock", + "Amazon Nova", + "Anthropic", + "Arcee AI", + "AtlasCloud", + "Avian", + "Azure", + "BaseTen", + "BytePlus", + "Black Forest Labs", + "Cerebras", + "Chutes", + "Cirrascale", + "Clarifai", + "Cloudflare", + "Cohere", + "Crucible", + "Crusoe", + "Darkbloom", + "Decart", + "Deepgram", + "DeepInfra", + "DeepSeek", + "DekaLLM", + "DigitalOcean", + "Featherless", + "Fireworks", + "Fish Audio", + "Friendli", + "GMICloud", + "Google", + "Google AI Studio", + "Groq", + "HeyGen", + "Inception", + "Inceptron", + "InferenceNet", + "Ionstream", + "Infermatic", + "Io Net", + "Inferact vLLM", + "Inflection", + "Liquid", + "Mara", + "Mancer 2", + "Meta", + "Minimax", + "ModelRun", + "Mistral", + "Modular", + "Moonshot AI", + "Morph", + "NCompass", + "Nebius", + "Nex AGI", + "NextBit", + "Novita", + "Nvidia", + "OpenAI", + "OpenInference", + "Parasail", + "Poolside", + "Perceptron", + "Perplexity", + "Phala", + "Recraft", + "Reka", + "Relace", + "Sail Research", + "Sakana AI", + "SambaNova", + "Seed", + "SiliconFlow", + "Sourceful", + "StepFun", + "Stealth", + "StreamLake", + "Switchpoint", + "Tencent", + "Tenstorrent", + "Together", + "Upstage", + "Venice", + "Wafer", + "WandB", + "Quiver", + "Krea", + "Xiaomi", + "xAI", + "Z.AI", + "FakeProvider" ], - "title": "ImageGenerationServerToolSize" + "title": "ProviderName" }, - "ImageGenerationServerToolType": { - "type": "string", - "enum": [ - "image_generation" + "ProviderPreferencesIgnoreItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } ], - "title": "ImageGenerationServerToolType" + "title": "ProviderPreferencesIgnoreItems" }, - "ImageGenerationServerTool": { + "ProviderPreferencesMaxPrice": { "type": "object", "properties": { - "background": { - "$ref": "#/components/schemas/ImageGenerationServerToolBackground" - }, - "input_fidelity": { - "oneOf": [ - { - "$ref": "#/components/schemas/ImageGenerationServerToolInputFidelity" - }, - { - "type": "null" - } - ] - }, - "input_image_mask": { - "$ref": "#/components/schemas/ImageGenerationServerToolInputImageMask" - }, - "model": { - "$ref": "#/components/schemas/ImageGenerationServerToolModel" - }, - "moderation": { - "$ref": "#/components/schemas/ImageGenerationServerToolModeration" - }, - "output_compression": { - "type": "integer" - }, - "output_format": { - "$ref": "#/components/schemas/ImageGenerationServerToolOutputFormat" + "audio": { + "type": "string", + "description": "Maximum price in USD per audio unit" }, - "partial_images": { - "type": "integer" + "completion": { + "type": "string", + "description": "Maximum price in USD per million completion tokens" }, - "quality": { - "$ref": "#/components/schemas/ImageGenerationServerToolQuality" + "image": { + "type": "string", + "description": "Maximum price in USD per image" }, - "size": { - "$ref": "#/components/schemas/ImageGenerationServerToolSize" + "prompt": { + "type": "string", + "description": "Maximum price in USD per million prompt tokens" }, - "type": { - "$ref": "#/components/schemas/ImageGenerationServerToolType" + "request": { + "type": "string", + "description": "Maximum price in USD per request" } }, - "required": [ - "type" - ], - "description": "Image generation tool configuration", - "title": "ImageGenerationServerTool" - }, - "CodexLocalShellToolType": { - "type": "string", - "enum": [ - "local_shell" - ], - "title": "CodexLocalShellToolType" + "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.", + "title": "ProviderPreferencesMaxPrice" }, - "CodexLocalShellTool": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CodexLocalShellToolType" + "ProviderPreferencesOnlyItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" } - }, - "required": [ - "type" - ], - "description": "Local shell tool configuration", - "title": "CodexLocalShellTool" - }, - "ShellServerToolType": { - "type": "string", - "enum": [ - "shell" ], - "title": "ShellServerToolType" + "title": "ProviderPreferencesOnlyItems" }, - "ShellServerTool": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/ShellServerToolType" + "ProviderPreferencesOrderItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" } - }, - "required": [ - "type" - ], - "description": "Shell tool configuration", - "title": "ShellServerTool" - }, - "ApplyPatchServerToolType": { - "type": "string", - "enum": [ - "apply_patch" ], - "title": "ApplyPatchServerToolType" + "title": "ProviderPreferencesOrderItems" }, - "ApplyPatchServerTool": { + "PercentileLatencyCutoffs": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/ApplyPatchServerToolType" + "p50": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Maximum p50 latency (seconds)" + }, + "p75": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Maximum p75 latency (seconds)" + }, + "p90": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Maximum p90 latency (seconds)" + }, + "p99": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Maximum p99 latency (seconds)" } }, - "required": [ - "type" - ], - "description": "Apply patch tool configuration", - "title": "ApplyPatchServerTool" - }, - "CustomToolFormatOneOf0Type": { - "type": "string", - "enum": [ - "text" - ], - "title": "CustomToolFormatOneOf0Type" + "description": "Percentile-based latency cutoffs. All specified cutoffs must be met for an endpoint to be preferred.", + "title": "PercentileLatencyCutoffs" }, - "CustomToolFormat0": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CustomToolFormatOneOf0Type" + "PreferredMaxLatency": { + "oneOf": [ + { + "type": "number", + "format": "double" + }, + { + "$ref": "#/components/schemas/PercentileLatencyCutoffs" } - }, - "required": [ - "type" - ], - "title": "CustomToolFormat0" - }, - "CustomToolFormatOneOf1Syntax": { - "type": "string", - "enum": [ - "lark", - "regex" - ], - "title": "CustomToolFormatOneOf1Syntax" - }, - "CustomToolFormatOneOf1Type": { - "type": "string", - "enum": [ - "grammar" ], - "title": "CustomToolFormatOneOf1Type" + "description": "Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.", + "title": "PreferredMaxLatency" }, - "CustomToolFormat1": { + "PercentileThroughputCutoffs": { "type": "object", "properties": { - "definition": { - "type": "string" + "p50": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Minimum p50 throughput (tokens/sec)" }, - "syntax": { - "$ref": "#/components/schemas/CustomToolFormatOneOf1Syntax" + "p75": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Minimum p75 throughput (tokens/sec)" }, - "type": { - "$ref": "#/components/schemas/CustomToolFormatOneOf1Type" + "p90": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Minimum p90 throughput (tokens/sec)" + }, + "p99": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Minimum p99 throughput (tokens/sec)" } }, - "required": [ - "definition", - "syntax", - "type" - ], - "title": "CustomToolFormat1" + "description": "Percentile-based throughput cutoffs. All specified cutoffs must be met for an endpoint to be preferred.", + "title": "PercentileThroughputCutoffs" }, - "CustomToolFormat": { + "PreferredMinThroughput": { "oneOf": [ { - "$ref": "#/components/schemas/CustomToolFormat0" + "type": "number", + "format": "double" }, { - "$ref": "#/components/schemas/CustomToolFormat1" + "$ref": "#/components/schemas/PercentileThroughputCutoffs" } ], - "title": "CustomToolFormat" + "description": "Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.", + "title": "PreferredMinThroughput" }, - "CustomToolType": { + "Quantization": { "type": "string", "enum": [ - "custom" + "int4", + "int8", + "fp4", + "fp6", + "fp8", + "fp16", + "bf16", + "fp32", + "unknown" ], - "title": "CustomToolType" + "title": "Quantization" }, - "CustomTool": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "format": { - "$ref": "#/components/schemas/CustomToolFormat" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/CustomToolType" - } - }, - "required": [ - "name", - "type" + "ProviderSort": { + "type": "string", + "enum": [ + "price", + "throughput", + "latency", + "exacto" ], - "description": "Custom tool configuration", - "title": "CustomTool" + "description": "The provider sorting strategy (price, throughput, latency)", + "title": "ProviderSort" }, - "AdvisorReasoningEffort": { + "ProviderSortConfigBy": { "type": "string", "enum": [ - "max", - "xhigh", - "high", - "medium", - "low", - "minimal", + "price", + "throughput", + "latency", + "exacto" + ], + "description": "The provider sorting strategy (price, throughput, latency)", + "title": "ProviderSortConfigBy" + }, + "ProviderSortConfigPartition": { + "type": "string", + "enum": [ + "model", "none" ], - "description": "Reasoning effort level for the advisor call.", - "title": "AdvisorReasoningEffort" + "description": "Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.", + "title": "ProviderSortConfigPartition" }, - "AdvisorReasoning": { + "ProviderSortConfig": { "type": "object", "properties": { - "effort": { - "$ref": "#/components/schemas/AdvisorReasoningEffort", - "description": "Reasoning effort level for the advisor call." + "by": { + "$ref": "#/components/schemas/ProviderSortConfigBy", + "description": "The provider sorting strategy (price, throughput, latency)" }, - "max_tokens": { - "type": "integer", - "description": "Maximum number of reasoning tokens the advisor may use." + "partition": { + "$ref": "#/components/schemas/ProviderSortConfigPartition", + "description": "Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model." } }, - "description": "Reasoning configuration forwarded to the advisor call. Use this to control reasoning effort and token budget for models that support extended thinking.", - "title": "AdvisorReasoning" + "description": "The provider sorting strategy (price, throughput, latency)", + "title": "ProviderSortConfig" }, - "AdvisorNestedTool": { - "type": "object", - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } + "ProviderPreferencesSort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderSort" }, - "type": { - "type": "string" + { + "$ref": "#/components/schemas/ProviderSortConfig" } - }, - "required": [ - "type" ], - "description": "A tool made available to the advisor sub-agent. Only OpenRouter server tools (e.g. openrouter:web_search) are supported; function tools are rejected because the advisor has no way to execute them. The advisor tool may not list itself.", - "title": "AdvisorNestedTool" + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", + "title": "ProviderPreferencesSort" }, - "AdvisorServerToolConfig": { + "ProviderPreferences": { "type": "object", "properties": { - "forward_transcript": { - "type": "boolean", - "description": "When true, the full parent conversation is forwarded to the advisor so it sees the same context the executor does (and the tool-call `prompt`, if given, is appended as a final user turn). When false or omitted, the advisor receives only the `prompt` the executor passes in the tool call." + "allow_fallbacks": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" }, - "instructions": { - "type": "string", - "description": "System instructions for the advisor sub-agent. When omitted, the advisor responds with no system prompt of its own." + "data_collection": { + "$ref": "#/components/schemas/ProviderPreferencesDataCollection", + "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." }, - "max_completion_tokens": { - "type": "integer", - "description": "Maximum number of output tokens (including reasoning) the advisor may produce. When omitted, the provider's default applies." + "enforce_distillable_text": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used." }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps the advisor sub-agent may take during its agentic loop. Capped at 25. Only relevant when the advisor is given tools." + "ignore": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ProviderPreferencesIgnoreItems" + }, + "description": "List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request." }, - "model": { - "type": "string", - "description": "Slug of the advisor model to consult (any OpenRouter model). When omitted, the executor can choose it via the tool call's `model` argument; if neither is set, the model from the outer API request is used. The advisor tool itself cannot be the advisor model." + "max_price": { + "$ref": "#/components/schemas/ProviderPreferencesMaxPrice", + "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion." }, - "name": { - "type": "string", - "description": "Optional name for this advisor. The model sees one tool per named advisor (and one default for an unnamed entry). Names must be unique across advisor entries. Letters, digits, spaces, underscores, and dashes; trimmed; 1–64 chars." + "only": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ProviderPreferencesOnlyItems" + }, + "description": "List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request." }, - "reasoning": { - "$ref": "#/components/schemas/AdvisorReasoning" + "order": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ProviderPreferencesOrderItems" + }, + "description": "An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message." }, - "stream": { - "type": "boolean", - "description": "When true, the advisor's advice streams incrementally as it is produced. In the Responses API this emits `response.output_text.delta` events targeting the advisor output item; the final `advice` field is still set on the completed item. Has no effect on the Chat Completions API (where the advice arrives only as the final tool result). When false or omitted, the advice arrives only as the final result." + "preferred_max_latency": { + "$ref": "#/components/schemas/PreferredMaxLatency" }, - "temperature": { - "type": "number", - "format": "double", - "description": "Sampling temperature forwarded to the advisor call. When omitted, the provider's default applies." + "preferred_min_throughput": { + "$ref": "#/components/schemas/PreferredMinThroughput" }, - "tools": { - "type": "array", + "quantizations": { + "type": [ + "array", + "null" + ], "items": { - "$ref": "#/components/schemas/AdvisorNestedTool" + "$ref": "#/components/schemas/Quantization" }, - "description": "Tools the advisor sub-agent may use while forming its advice. The advisor runs as an agentic sub-agent over these tools, then returns its text. Only OpenRouter server tools are supported — function tools are rejected — and the list must not include the advisor tool itself." + "description": "A list of quantization levels to filter the provider by." + }, + "require_parameters": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." + }, + "sort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderPreferencesSort" + }, + { + "type": "null" + } + ], + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." + }, + "zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used." } }, - "description": "Configuration for one openrouter:advisor server tool entry.", - "title": "AdvisorServerToolConfig" + "description": "When multiple model providers are available, optionally indicate your routing preference.", + "title": "ProviderPreferences" }, - "AdvisorServerToolOpenRouterType": { + "ReasoningContext": { "type": "string", "enum": [ - "openrouter:advisor" - ], - "title": "AdvisorServerToolOpenRouterType" - }, - "AdvisorServerTool_OpenRouter": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/components/schemas/AdvisorServerToolConfig" - }, - "type": { - "$ref": "#/components/schemas/AdvisorServerToolOpenRouterType" - } - }, - "required": [ - "type" + "auto", + "all_turns", + "current_turn" ], - "description": "OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor.", - "title": "AdvisorServerTool_OpenRouter" + "description": "Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.", + "title": "ReasoningContext" }, - "SubagentReasoningEffort": { + "ReasoningEffort": { "type": "string", "enum": [ "max", @@ -13499,772 +14868,573 @@ "minimal", "none" ], - "description": "Reasoning effort level for the subagent call.", - "title": "SubagentReasoningEffort" + "title": "ReasoningEffort" }, - "SubagentReasoning": { - "type": "object", - "properties": { - "effort": { - "$ref": "#/components/schemas/SubagentReasoningEffort", - "description": "Reasoning effort level for the subagent call." - }, - "max_tokens": { - "type": "integer", - "description": "Maximum number of reasoning tokens the subagent may use. Accepted and validated but not yet forwarded to the subagent call." - } - }, - "description": "Reasoning configuration forwarded to the subagent call. Use this to control reasoning effort and token budget for models that support extended thinking.", - "title": "SubagentReasoning" + "ReasoningMode": { + "type": "string", + "enum": [ + "standard", + "pro" + ], + "description": "Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.", + "title": "ReasoningMode" }, - "SubagentNestedTool": { - "type": "object", - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - }, - "type": { - "type": "string" - } - }, - "required": [ - "type" + "ReasoningSummaryVerbosity": { + "type": "string", + "enum": [ + "auto", + "concise", + "detailed" ], - "description": "A tool made available to the subagent. Only OpenRouter server tools (e.g. openrouter:web_search) are supported; function tools are rejected because the worker has no way to execute them. The subagent tool may not list itself.", - "title": "SubagentNestedTool" + "title": "ReasoningSummaryVerbosity" }, - "SubagentServerToolConfig": { + "ReasoningConfig": { "type": "object", "properties": { - "instructions": { - "type": "string", - "description": "System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own." - }, - "max_completion_tokens": { - "type": "integer", - "description": "Maximum number of output tokens (including reasoning) the subagent may produce. When omitted, the provider's default applies." + "context": { + "$ref": "#/components/schemas/ReasoningContext" }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps the subagent may take during its agentic loop. Capped at 25. Only relevant when the subagent is given tools. Accepted and validated but not yet enforced on the subagent call." + "effort": { + "$ref": "#/components/schemas/ReasoningEffort" }, - "model": { - "type": "string", - "description": "Slug of the model that executes delegated tasks (any OpenRouter model). Typically a smaller, cheaper, faster model than the one delegating. When omitted, the model from the outer API request is used. The subagent tool itself cannot be the subagent model." + "mode": { + "$ref": "#/components/schemas/ReasoningMode" }, - "reasoning": { - "$ref": "#/components/schemas/SubagentReasoning" + "summary": { + "$ref": "#/components/schemas/ReasoningSummaryVerbosity" }, - "temperature": { - "type": "number", - "format": "double", - "description": "Sampling temperature forwarded to the subagent call. When omitted, the provider's default applies." + "enabled": { + "type": [ + "boolean", + "null" + ] }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubagentNestedTool" - }, - "description": "Tools the subagent may use while executing a delegated task. The subagent runs as an agentic sub-agent over these tools, then returns its outcome. Only OpenRouter server tools are supported — function tools are rejected — and the list must not include the subagent tool itself." + "max_tokens": { + "type": [ + "integer", + "null" + ] } }, - "description": "Configuration for the openrouter:subagent server tool.", - "title": "SubagentServerToolConfig" + "description": "Configuration for reasoning mode in the response", + "title": "ReasoningConfig" }, - "SubagentServerToolOpenRouterType": { + "ResponsesRequestServiceTier": { "type": "string", "enum": [ - "openrouter:subagent" - ], - "title": "SubagentServerToolOpenRouterType" - }, - "SubagentServerTool_OpenRouter": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/components/schemas/SubagentServerToolConfig" - }, - "type": { - "$ref": "#/components/schemas/SubagentServerToolOpenRouterType" - } - }, - "required": [ - "type" + "auto", + "default", + "flex", + "priority", + "scale" ], - "description": "OpenRouter built-in server tool: delegates self-contained tasks to a smaller, cheaper, faster worker model (any OpenRouter model) mid-generation and returns its outcome. The worker may run as a sub-agent with its own tools.", - "title": "SubagentServerTool_OpenRouter" - }, - "DatetimeServerToolConfig": { - "type": "object", - "properties": { - "timezone": { - "type": "string", - "description": "IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC." - } - }, - "description": "Configuration for the openrouter:datetime server tool", - "title": "DatetimeServerToolConfig" + "default": "auto", + "title": "ResponsesRequestServiceTier" }, - "DatetimeServerToolType": { + "StopServerToolsWhenFinishReasonIsType": { "type": "string", "enum": [ - "openrouter:datetime" - ], - "title": "DatetimeServerToolType" - }, - "DatetimeServerTool": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/components/schemas/DatetimeServerToolConfig" - }, - "type": { - "$ref": "#/components/schemas/DatetimeServerToolType" - } - }, - "required": [ - "type" - ], - "description": "OpenRouter built-in server tool: returns the current date and time", - "title": "DatetimeServerTool" - }, - "FilesServerToolConfig": { - "type": "object", - "properties": {}, - "description": "Configuration for the openrouter:files server tool", - "title": "FilesServerToolConfig" + "finish_reason_is" + ], + "title": "StopServerToolsWhenFinishReasonIsType" }, - "FilesServerToolType": { + "StopServerToolsWhenHasToolCallType": { "type": "string", "enum": [ - "openrouter:files" + "has_tool_call" ], - "title": "FilesServerToolType" + "title": "StopServerToolsWhenHasToolCallType" }, - "FilesServerTool": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/components/schemas/FilesServerToolConfig" - }, - "type": { - "$ref": "#/components/schemas/FilesServerToolType" - } - }, - "required": [ - "type" + "StopServerToolsWhenMaxCostType": { + "type": "string", + "enum": [ + "max_cost" ], - "description": "OpenRouter built-in server tool: read, write, edit, and list workspace files via the Files API. Requires the `x-openrouter-file-ids: openrouter` request header.", - "title": "FilesServerTool" + "title": "StopServerToolsWhenMaxCostType" }, - "FusionServerToolConfigReasoningEffort": { + "StopServerToolsWhenMaxTokensUsedType": { "type": "string", "enum": [ - "max", - "xhigh", - "high", - "medium", - "low", - "minimal", - "none" + "max_tokens_used" ], - "description": "Reasoning effort level for panelist and judge inner calls.", - "title": "FusionServerToolConfigReasoningEffort" + "title": "StopServerToolsWhenMaxTokensUsedType" }, - "FusionServerToolConfigReasoning": { - "type": "object", - "properties": { - "effort": { - "$ref": "#/components/schemas/FusionServerToolConfigReasoningEffort", - "description": "Reasoning effort level for panelist and judge inner calls." - }, - "max_tokens": { - "type": "integer", - "description": "Maximum number of reasoning tokens each panelist and judge model may use. Helps bound cost when models allocate too much budget to chain-of-thought." - } - }, - "description": "Reasoning configuration forwarded to panelist and judge inner calls. Use this to control reasoning effort and token budget for models that support extended thinking.", - "title": "FusionServerToolConfigReasoning" + "StopServerToolsWhenStepCountIsType": { + "type": "string", + "enum": [ + "step_count_is" + ], + "title": "StopServerToolsWhenStepCountIsType" }, - "FusionServerToolConfigToolsItems": { - "type": "object", - "properties": { - "parameters": { + "StopServerToolsWhenCondition": { + "oneOf": [ + { "type": "object", - "additionalProperties": { - "description": "Any type" + "properties": { + "type": { + "$ref": "#/components/schemas/StopServerToolsWhenFinishReasonIsType" + }, + "reason": { + "type": "string" + } }, - "description": "Optional configuration forwarded as the tool's `parameters` object." + "required": [ + "type", + "reason" + ], + "description": "Stop when the upstream model emits this finish reason (e.g. `length`)." }, - "type": { - "type": "string", - "description": "Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\")." - } - }, - "required": [ - "type" - ], - "title": "FusionServerToolConfigToolsItems" - }, - "FusionServerToolConfig": { - "type": "object", - "properties": { - "analysis_models": { - "type": "array", - "items": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/StopServerToolsWhenHasToolCallType" + }, + "tool_name": { + "type": "string" + } }, - "description": "Slugs of models to run in parallel as the analysis panel. Each model receives the user prompt with openrouter:web_search and openrouter:web_fetch enabled, then a judge model summarizes the collective output into structured analysis JSON. Capped at 8 models to bound cost amplification. Defaults to the Quality preset from /labs/fusion." - }, - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "max_completion_tokens": { - "type": "integer", - "description": "Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies." - }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." - }, - "model": { - "type": "string", - "description": "Slug of the judge model that produces the structured analysis JSON. Defaults to the model used in the outer API request." + "required": [ + "type", + "tool_name" + ], + "description": "Stop after a tool with this name has been called." }, - "reasoning": { - "$ref": "#/components/schemas/FusionServerToolConfigReasoning", - "description": "Reasoning configuration forwarded to panelist and judge inner calls. Use this to control reasoning effort and token budget for models that support extended thinking." + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/StopServerToolsWhenMaxCostType" + }, + "max_cost_in_dollars": { + "type": "number", + "format": "double" + } + }, + "required": [ + "type", + "max_cost_in_dollars" + ], + "description": "Stop once cumulative cost across the loop exceeds this dollar threshold." }, - "temperature": { - "type": "number", - "format": "double", - "description": "Temperature forwarded to panelist inner calls. The judge always runs at temperature 0 regardless of this value. When omitted, the provider's default applies." + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/StopServerToolsWhenMaxTokensUsedType" + }, + "max_tokens": { + "type": "integer" + } + }, + "required": [ + "type", + "max_tokens" + ], + "description": "Stop once cumulative token usage across the loop exceeds this threshold." }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FusionServerToolConfigToolsItems" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/StopServerToolsWhenStepCountIsType" + }, + "step_count": { + "type": "integer" + } }, - "description": "Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only)." + "required": [ + "type", + "step_count" + ], + "description": "Stop after the agent loop has executed this many steps." } + ], + "discriminator": { + "propertyName": "type" }, - "description": "Configuration for the openrouter:fusion server tool.", - "title": "FusionServerToolConfig" + "description": "A single condition that, when met, halts the server-tool agent loop.", + "title": "StopServerToolsWhenCondition" }, - "FusionServerToolOpenRouterType": { + "StopServerToolsWhen": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StopServerToolsWhenCondition" + }, + "description": "Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`.", + "title": "StopServerToolsWhen" + }, + "FormatTextConfigType": { "type": "string", "enum": [ - "openrouter:fusion" + "text" ], - "title": "FusionServerToolOpenRouterType" + "title": "FormatTextConfigType" }, - "FusionServerTool_OpenRouter": { + "FormatTextConfig": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/FusionServerToolConfig" - }, "type": { - "$ref": "#/components/schemas/FusionServerToolOpenRouterType" + "$ref": "#/components/schemas/FormatTextConfigType" } }, "required": [ "type" ], - "description": "OpenRouter built-in server tool: fans out the user prompt to a panel of analysis models, then asks a judge model to summarize their collective output as structured JSON the outer model can synthesize from.", - "title": "FusionServerTool_OpenRouter" - }, - "ImageGenerationServerToolConfig": { - "type": "object", - "properties": { - "model": { - "type": "string", - "description": "Which image generation model to use (e.g. \"openai/gpt-5-image\"). Defaults to \"openai/gpt-5-image\"." - } - }, - "description": "Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.", - "title": "ImageGenerationServerToolConfig" + "description": "Plain text response format", + "title": "FormatTextConfig" }, - "ImageGenerationServerToolOpenRouterType": { + "FormatJsonObjectConfigType": { "type": "string", "enum": [ - "openrouter:image_generation" + "json_object" ], - "title": "ImageGenerationServerToolOpenRouterType" + "title": "FormatJsonObjectConfigType" }, - "ImageGenerationServerTool_OpenRouter": { + "FormatJsonObjectConfig": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/ImageGenerationServerToolConfig" - }, "type": { - "$ref": "#/components/schemas/ImageGenerationServerToolOpenRouterType" + "$ref": "#/components/schemas/FormatJsonObjectConfigType" } }, "required": [ "type" ], - "description": "OpenRouter built-in server tool: generates images from text prompts using an image generation model", - "title": "ImageGenerationServerTool_OpenRouter" - }, - "SearchModelsServerToolConfig": { - "type": "object", - "properties": { - "max_results": { - "type": "integer", - "description": "Maximum number of models to return. Defaults to 5, max 20." - } - }, - "description": "Configuration for the openrouter:experimental__search_models server tool", - "title": "SearchModelsServerToolConfig" + "description": "JSON object response format", + "title": "FormatJsonObjectConfig" }, - "ChatSearchModelsServerToolType": { + "FormatJsonSchemaConfigType": { "type": "string", "enum": [ - "openrouter:experimental__search_models" + "json_schema" ], - "title": "ChatSearchModelsServerToolType" + "title": "FormatJsonSchemaConfigType" }, - "ChatSearchModelsServerTool": { + "FormatJsonSchemaConfig": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/SearchModelsServerToolConfig" + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "schema": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "strict": { + "type": [ + "boolean", + "null" + ] }, "type": { - "$ref": "#/components/schemas/ChatSearchModelsServerToolType" + "$ref": "#/components/schemas/FormatJsonSchemaConfigType" } }, "required": [ + "name", + "schema", "type" ], - "description": "OpenRouter built-in server tool: searches and filters AI models available on OpenRouter", - "title": "ChatSearchModelsServerTool" - }, - "WebFetchEngineEnum": { - "type": "string", - "enum": [ - "auto", - "native", - "openrouter", - "exa", - "parallel", - "firecrawl" - ], - "description": "Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape (requires BYOK). \"parallel\" uses the Parallel extract API.", - "title": "WebFetchEngineEnum" + "description": "JSON schema constrained response format", + "title": "FormatJsonSchemaConfig" }, - "WebFetchServerToolConfig": { - "type": "object", - "properties": { - "allowed_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Only fetch from these domains." - }, - "blocked_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Never fetch from these domains." - }, - "engine": { - "$ref": "#/components/schemas/WebFetchEngineEnum" + "Formats": { + "oneOf": [ + { + "$ref": "#/components/schemas/FormatTextConfig" }, - "max_content_tokens": { - "type": "integer", - "description": "Maximum content length in approximate tokens. Content exceeding this limit is truncated." + { + "$ref": "#/components/schemas/FormatJsonObjectConfig" }, - "max_uses": { - "type": "integer", - "description": "Maximum number of web fetches per request. Once exceeded, the tool returns an error." + { + "$ref": "#/components/schemas/FormatJsonSchemaConfig" } - }, - "description": "Configuration for the openrouter:web_fetch server tool", - "title": "WebFetchServerToolConfig" + ], + "description": "Text response format configuration", + "title": "Formats" }, - "WebFetchServerToolType": { + "TextExtendedConfigVerbosity": { "type": "string", "enum": [ - "openrouter:web_fetch" + "low", + "medium", + "high", + "xhigh", + "max" ], - "title": "WebFetchServerToolType" + "title": "TextExtendedConfigVerbosity" }, - "WebFetchServerTool": { + "TextExtendedConfig": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/WebFetchServerToolConfig" + "format": { + "$ref": "#/components/schemas/Formats" }, - "type": { - "$ref": "#/components/schemas/WebFetchServerToolType" + "verbosity": { + "$ref": "#/components/schemas/TextExtendedConfigVerbosity" } }, - "required": [ - "type" - ], - "description": "OpenRouter built-in server tool: fetches full content from a URL (web page or PDF)", - "title": "WebFetchServerTool" + "description": "Text output configuration including format and verbosity", + "title": "TextExtendedConfig" }, - "SearchQualityLevel": { + "OpenAiResponsesToolChoice0": { "type": "string", "enum": [ - "low", - "medium", - "high" + "auto" ], - "description": "How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.", - "title": "SearchQualityLevel" + "title": "OpenAiResponsesToolChoice0" }, - "WebSearchUserLocationServerToolType": { + "OpenAiResponsesToolChoice1": { "type": "string", "enum": [ - "approximate" + "none" ], - "title": "WebSearchUserLocationServerToolType" - }, - "WebSearchUserLocationServerTool": { - "type": "object", - "properties": { - "city": { - "type": [ - "string", - "null" - ] - }, - "country": { - "type": [ - "string", - "null" - ] - }, - "region": { - "type": [ - "string", - "null" - ] - }, - "timezone": { - "type": [ - "string", - "null" - ] - }, - "type": { - "$ref": "#/components/schemas/WebSearchUserLocationServerToolType" - } - }, - "description": "Approximate user location for location-biased results.", - "title": "WebSearchUserLocationServerTool" + "title": "OpenAiResponsesToolChoice1" }, - "WebSearchServerToolConfig": { - "type": "object", - "properties": { - "allowed_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, xAI). Cannot be used with excluded_domains." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" - }, - "excluded_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, and xAI. Not supported with OpenAI (silently ignored). Cannot be used with allowed_domains." - }, - "max_characters": { - "type": "integer", - "description": "Exact maximum number of characters of content per search result. Applies to the Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, caps highlight content per result. For Parallel, caps excerpt content per result (default 1,500 when omitted). For Perplexity, maps to the native `max_tokens_per_page` parameter (converted from characters to tokens) and trims the response to the exact character cap. When both `max_characters` and `search_context_size` are set, `max_characters` takes precedence. When omitted, falls back to `search_context_size` mapping (Exa) or engine defaults (Parallel, Perplexity)." - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped." - }, - "max_total_results": { - "type": "integer", - "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchQualityLevel" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchUserLocationServerTool" - } - }, - "description": "Configuration for the openrouter:web_search server tool", - "title": "WebSearchServerToolConfig" + "OpenAiResponsesToolChoice2": { + "type": "string", + "enum": [ + "required" + ], + "title": "OpenAiResponsesToolChoice2" }, - "WebSearchServerToolOpenRouterType": { + "OpenAiResponsesToolChoiceOneOf3Type": { "type": "string", "enum": [ - "openrouter:web_search" + "function" ], - "title": "WebSearchServerToolOpenRouterType" + "title": "OpenAiResponsesToolChoiceOneOf3Type" }, - "WebSearchServerTool_OpenRouter": { + "OpenAiResponsesToolChoice3": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/WebSearchServerToolConfig" + "name": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/WebSearchServerToolOpenRouterType" + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf3Type" } }, "required": [ + "name", "type" ], - "description": "OpenRouter built-in server tool: searches the web for current information", - "title": "WebSearchServerTool_OpenRouter" + "title": "OpenAiResponsesToolChoice3" }, - "ApplyPatchEngineEnum": { + "OpenAiResponsesToolChoiceOneOf4Type0": { "type": "string", "enum": [ - "auto", - "native", - "openrouter" + "web_search_preview_2025_03_11" ], - "description": "Which apply_patch engine to use. \"auto\" (default) uses native passthrough when the endpoint advertises native apply_patch support, otherwise falls back to OpenRouter's HITL validator. \"native\" forces native passthrough — when the endpoint does not support native, the request falls back to HITL. \"openrouter\" always runs the HITL validator. Native passthrough streams the diff incrementally via `apply_patch_call_operation_diff.delta` events; HITL buffers the diff for atomic delivery as a single delta.", - "title": "ApplyPatchEngineEnum" + "title": "OpenAiResponsesToolChoiceOneOf4Type0" }, - "ApplyPatchServerToolConfig": { - "type": "object", - "properties": { - "engine": { - "$ref": "#/components/schemas/ApplyPatchEngineEnum" + "OpenAiResponsesToolChoiceOneOf4Type1": { + "type": "string", + "enum": [ + "web_search_preview" + ], + "title": "OpenAiResponsesToolChoiceOneOf4Type1" + }, + "OpenAiResponsesToolChoiceOneOf4Type": { + "oneOf": [ + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type0" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type1" } - }, - "description": "Configuration for the openrouter:apply_patch server tool", - "title": "ApplyPatchServerToolConfig" - }, - "ApplyPatchServerToolOpenRouterType": { - "type": "string", - "enum": [ - "openrouter:apply_patch" ], - "title": "ApplyPatchServerToolOpenRouterType" + "title": "OpenAiResponsesToolChoiceOneOf4Type" }, - "ApplyPatchServerTool_OpenRouter": { + "OpenAiResponsesToolChoice4": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/ApplyPatchServerToolConfig" - }, "type": { - "$ref": "#/components/schemas/ApplyPatchServerToolOpenRouterType" + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf4Type" } }, "required": [ "type" ], - "description": "OpenRouter built-in server tool: validates V4A diff patches for file operations (create, update, delete). Restricted to the Responses API.", - "title": "ApplyPatchServerTool_OpenRouter" + "title": "OpenAiResponsesToolChoice4" }, - "BashServerToolEngine": { + "ToolChoiceAllowedMode0": { "type": "string", "enum": [ - "auto", - "native", - "openrouter" + "auto" ], - "description": "Which bash engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) and \"native\" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.", - "title": "BashServerToolEngine" + "title": "ToolChoiceAllowedMode0" }, - "BashServerToolEnvironment": { + "ToolChoiceAllowedMode1": { + "type": "string", + "enum": [ + "required" + ], + "title": "ToolChoiceAllowedMode1" + }, + "ToolChoiceAllowedMode": { "oneOf": [ { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "container_auto" - ], - "description": "Discriminator value: container_auto" - } - }, - "required": [ - "type" - ], - "description": "An OpenRouter-managed, auto-provisioned ephemeral container." + "$ref": "#/components/schemas/ToolChoiceAllowedMode0" }, { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "container_reference" - ], - "description": "Discriminator value: container_reference" - }, - "container_id": { - "type": "string", - "description": "Identifier of an existing container to reuse (max 20 characters)." - } - }, - "required": [ - "type", - "container_id" - ], - "description": "Reference to a previously created container to reuse." + "$ref": "#/components/schemas/ToolChoiceAllowedMode1" } ], - "discriminator": { - "propertyName": "type" - }, - "description": "Execution environment for the bash server tool.", - "title": "BashServerToolEnvironment" + "title": "ToolChoiceAllowedMode" }, - "SandboxSleepAfterSeconds": { - "type": "integer", - "description": "How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days).", - "title": "SandboxSleepAfterSeconds" + "ToolChoiceAllowedType": { + "type": "string", + "enum": [ + "allowed_tools" + ], + "title": "ToolChoiceAllowedType" }, - "BashServerToolConfig": { + "ToolChoiceAllowed": { "type": "object", "properties": { - "engine": { - "$ref": "#/components/schemas/BashServerToolEngine" + "mode": { + "$ref": "#/components/schemas/ToolChoiceAllowedMode" }, - "environment": { - "$ref": "#/components/schemas/BashServerToolEnvironment" + "tools": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + } }, - "sleep_after_seconds": { - "$ref": "#/components/schemas/SandboxSleepAfterSeconds" + "type": { + "$ref": "#/components/schemas/ToolChoiceAllowedType" } }, - "description": "Configuration for the openrouter:bash server tool", - "title": "BashServerToolConfig" + "required": [ + "mode", + "tools", + "type" + ], + "description": "Constrains the model to a pre-defined set of allowed tools", + "title": "ToolChoiceAllowed" }, - "BashServerToolType": { + "OpenAiResponsesToolChoiceOneOf6Type": { "type": "string", "enum": [ - "openrouter:bash" + "apply_patch" ], - "title": "BashServerToolType" + "title": "OpenAiResponsesToolChoiceOneOf6Type" }, - "BashServerTool": { + "OpenAiResponsesToolChoice6": { "type": "object", "properties": { - "parameters": { - "$ref": "#/components/schemas/BashServerToolConfig" - }, "type": { - "$ref": "#/components/schemas/BashServerToolType" + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf6Type" } }, "required": [ "type" ], - "description": "OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container", - "title": "BashServerTool" + "title": "OpenAiResponsesToolChoice6" }, - "ShellServerToolEngine": { + "OpenAiResponsesToolChoiceOneOf7Type": { "type": "string", "enum": [ - "auto", - "openrouter" + "shell" ], - "description": "Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.", - "title": "ShellServerToolEngine" + "title": "OpenAiResponsesToolChoiceOneOf7Type" }, - "ShellServerToolEnvironment": { + "OpenAiResponsesToolChoice7": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OpenAiResponsesToolChoiceOneOf7Type" + } + }, + "required": [ + "type" + ], + "title": "OpenAiResponsesToolChoice7" + }, + "OpenAIResponsesToolChoice": { "oneOf": [ { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "container_auto" - ], - "description": "Discriminator value: container_auto" - } - }, - "required": [ - "type" - ], - "description": "An OpenRouter-managed, auto-provisioned ephemeral container." + "$ref": "#/components/schemas/OpenAiResponsesToolChoice0" }, { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "container_reference" - ], - "description": "Discriminator value: container_reference" - }, - "container_id": { - "type": "string", - "description": "Identifier of an existing container to reuse (max 20 characters)." - } - }, - "required": [ - "type", - "container_id" - ], - "description": "Reference to a previously created container to reuse." - } - ], - "discriminator": { - "propertyName": "type" - }, - "description": "Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.", - "title": "ShellServerToolEnvironment" - }, - "ShellServerToolConfig": { - "type": "object", - "properties": { - "engine": { - "$ref": "#/components/schemas/ShellServerToolEngine" + "$ref": "#/components/schemas/OpenAiResponsesToolChoice1" }, - "environment": { - "$ref": "#/components/schemas/ShellServerToolEnvironment" + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice2" }, - "sleep_after_seconds": { - "$ref": "#/components/schemas/SandboxSleepAfterSeconds" + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice3" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice4" + }, + { + "$ref": "#/components/schemas/ToolChoiceAllowed" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice6" + }, + { + "$ref": "#/components/schemas/OpenAiResponsesToolChoice7" } - }, - "description": "Configuration for the openrouter:shell server tool", - "title": "ShellServerToolConfig" + ], + "title": "OpenAIResponsesToolChoice" }, - "ShellServerToolOpenRouterType": { + "ResponsesRequestToolsItemsOneOf0Type": { "type": "string", "enum": [ - "openrouter:shell" + "function" ], - "title": "ShellServerToolOpenRouterType" + "title": "ResponsesRequestToolsItemsOneOf0Type" }, - "ShellServerTool_OpenRouter": { + "ResponsesRequestToolsItems0": { "type": "object", "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": "string" + }, "parameters": { - "$ref": "#/components/schemas/ShellServerToolConfig" + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + } + }, + "strict": { + "type": [ + "boolean", + "null" + ] }, "type": { - "$ref": "#/components/schemas/ShellServerToolOpenRouterType" + "$ref": "#/components/schemas/ResponsesRequestToolsItemsOneOf0Type" } }, "required": [ + "name", + "parameters", "type" ], - "description": "OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)", - "title": "ShellServerTool_OpenRouter" + "description": "Function tool definition", + "title": "ResponsesRequestToolsItems0" }, "ResponsesRequestToolsItems": { "oneOf": [ @@ -14310,6 +15480,9 @@ { "$ref": "#/components/schemas/CustomTool" }, + { + "$ref": "#/components/schemas/NamespaceTool" + }, { "$ref": "#/components/schemas/AdvisorServerTool_OpenRouter" }, @@ -14329,7 +15502,7 @@ "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/ChatSearchModelsServerTool" + "$ref": "#/components/schemas/SearchModelsServerTool_OpenRouter" }, { "$ref": "#/components/schemas/WebFetchServerTool" @@ -14474,10 +15647,7 @@ "format": "double" }, "previous_response_id": { - "type": [ - "string", - "null" - ] + "description": "Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead." }, "prompt": { "$ref": "#/components/schemas/StoredPromptTemplate" @@ -14488,6 +15658,9 @@ "null" ] }, + "prompt_cache_options": { + "$ref": "#/components/schemas/PromptCacheOptions" + }, "provider": { "$ref": "#/components/schemas/ProviderPreferences" }, @@ -14504,14 +15677,7 @@ ] }, "service_tier": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResponsesRequestServiceTier" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/ResponsesRequestServiceTier" }, "session_id": { "type": "string", @@ -14599,7 +15765,8 @@ "unsupported_image_media_type", "empty_image_file", "failed_to_download_image", - "image_file_not_found" + "image_file_not_found", + "bio_policy" ], "title": "ResponsesErrorFieldCode" }, @@ -14726,230 +15893,240 @@ ], "description": "Discriminator value: input_text" }, - "text": { - "type": "string" - } - }, - "required": [ - "type", - "text" - ], - "description": "Text input content item" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items" - }, - "BaseInputsOneOf1ItemsOneOf0Content0": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items" - }, - "title": "BaseInputsOneOf1ItemsOneOf0Content0" - }, - "BaseInputsOneOf1ItemsOneOf0Content": { - "oneOf": [ - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Content0" - }, - { - "type": "string" - } - ], - "title": "BaseInputsOneOf1ItemsOneOf0Content" - }, - "BaseInputsOneOf1ItemsOneOf0Phase0": { - "type": "string", - "enum": [ - "commentary" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Phase0" - }, - "BaseInputsOneOf1ItemsOneOf0Phase1": { - "type": "string", - "enum": [ - "final_answer" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Phase1" - }, - "BaseInputsOneOf1ItemsOneOf0Phase": { - "oneOf": [ - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase0" - }, - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase1" - }, - { - "description": "Any type" - } - ], - "title": "BaseInputsOneOf1ItemsOneOf0Phase" - }, - "BaseInputsOneOf1ItemsOneOf0Role0": { - "type": "string", - "enum": [ - "user" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Role0" - }, - "BaseInputsOneOf1ItemsOneOf0Role1": { - "type": "string", - "enum": [ - "system" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Role1" - }, - "BaseInputsOneOf1ItemsOneOf0Role2": { - "type": "string", - "enum": [ - "assistant" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Role2" - }, - "BaseInputsOneOf1ItemsOneOf0Role3": { - "type": "string", - "enum": [ - "developer" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Role3" - }, - "BaseInputsOneOf1ItemsOneOf0Role": { - "oneOf": [ - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role0" - }, - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role1" - }, - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role2" - }, - { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role3" - } - ], - "title": "BaseInputsOneOf1ItemsOneOf0Role" - }, - "BaseInputsOneOf1ItemsOneOf0Type": { - "type": "string", - "enum": [ - "message" - ], - "title": "BaseInputsOneOf1ItemsOneOf0Type" - }, - "BaseInputsOneOf1Items0": { - "type": "object", - "properties": { - "content": { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Content" - }, - "phase": { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase" - }, - "role": { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role" - }, - "type": { - "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Type" - } - }, - "required": [ - "content", - "role" - ], - "title": "BaseInputsOneOf1Items0" - }, - "OpenAiResponseInputMessageItemContentItems": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_audio" - ], - "description": "Discriminator value: input_audio" - }, - "input_audio": { - "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio" - } - }, - "required": [ - "type", - "input_audio" - ], - "description": "Audio input content item" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_file" - ], - "description": "Discriminator value: input_file" - }, - "file_data": { - "type": "string" - }, - "file_id": { - "type": [ - "string", - "null" - ] - }, - "file_url": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "required": [ - "type" - ], - "description": "File input content item" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_image" - ], - "description": "Discriminator value: input_image" - }, - "detail": { - "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail" - }, - "image_url": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "detail" - ], - "description": "Image input content item" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_text" - ], - "description": "Discriminator value: input_text" + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, + "text": { + "type": "string" + } + }, + "required": [ + "type", + "text" + ], + "description": "Text input content item" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items" + }, + "BaseInputsOneOf1ItemsOneOf0Content0": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items" + }, + "title": "BaseInputsOneOf1ItemsOneOf0Content0" + }, + "BaseInputsOneOf1ItemsOneOf0Content": { + "oneOf": [ + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Content0" + }, + { + "type": "string" + } + ], + "title": "BaseInputsOneOf1ItemsOneOf0Content" + }, + "BaseInputsOneOf1ItemsOneOf0Phase0": { + "type": "string", + "enum": [ + "commentary" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Phase0" + }, + "BaseInputsOneOf1ItemsOneOf0Phase1": { + "type": "string", + "enum": [ + "final_answer" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Phase1" + }, + "BaseInputsOneOf1ItemsOneOf0Phase": { + "oneOf": [ + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase0" + }, + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase1" + } + ], + "title": "BaseInputsOneOf1ItemsOneOf0Phase" + }, + "BaseInputsOneOf1ItemsOneOf0Role0": { + "type": "string", + "enum": [ + "user" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Role0" + }, + "BaseInputsOneOf1ItemsOneOf0Role1": { + "type": "string", + "enum": [ + "system" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Role1" + }, + "BaseInputsOneOf1ItemsOneOf0Role2": { + "type": "string", + "enum": [ + "assistant" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Role2" + }, + "BaseInputsOneOf1ItemsOneOf0Role3": { + "type": "string", + "enum": [ + "developer" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Role3" + }, + "BaseInputsOneOf1ItemsOneOf0Role": { + "oneOf": [ + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role0" + }, + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role1" + }, + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role2" + }, + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role3" + } + ], + "title": "BaseInputsOneOf1ItemsOneOf0Role" + }, + "BaseInputsOneOf1ItemsOneOf0Type": { + "type": "string", + "enum": [ + "message" + ], + "title": "BaseInputsOneOf1ItemsOneOf0Type" + }, + "BaseInputsOneOf1Items0": { + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Content" + }, + "phase": { + "oneOf": [ + { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Phase" + }, + { + "type": "null" + } + ] + }, + "role": { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Role" + }, + "type": { + "$ref": "#/components/schemas/BaseInputsOneOf1ItemsOneOf0Type" + } + }, + "required": [ + "content", + "role" + ], + "title": "BaseInputsOneOf1Items0" + }, + "OpenAiResponseInputMessageItemContentItems": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "input_audio" + ], + "description": "Discriminator value: input_audio" + }, + "input_audio": { + "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio" + } + }, + "required": [ + "type", + "input_audio" + ], + "description": "Audio input content item" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "input_file" + ], + "description": "Discriminator value: input_file" + }, + "file_data": { + "type": "string" + }, + "file_id": { + "type": [ + "string", + "null" + ] + }, + "file_url": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "required": [ + "type" + ], + "description": "File input content item" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "input_image" + ], + "description": "Discriminator value: input_image" + }, + "detail": { + "$ref": "#/components/schemas/OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail" + }, + "image_url": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "detail" + ], + "description": "Image input content item" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "input_text" + ], + "description": "Discriminator value: input_text" + }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" }, "text": { "type": "string" @@ -15104,6 +16281,9 @@ ], "description": "Discriminator value: input_text" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -15161,7 +16341,14 @@ "$ref": "#/components/schemas/OpenAiResponseFunctionToolCallOutputOutput" }, "status": { - "$ref": "#/components/schemas/ToolCallStatus" + "oneOf": [ + { + "$ref": "#/components/schemas/ToolCallStatus" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/OpenAiResponseFunctionToolCallOutputType" @@ -15280,9 +16467,6 @@ }, { "$ref": "#/components/schemas/OutputMessagePhase1" - }, - { - "description": "Any type" } ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.", @@ -15350,7 +16534,14 @@ "type": "string" }, "phase": { - "$ref": "#/components/schemas/OutputMessagePhase", + "oneOf": [ + { + "$ref": "#/components/schemas/OutputMessagePhase" + }, + { + "type": "null" + } + ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages." }, "role": { @@ -15478,6 +16669,9 @@ ], "description": "Discriminator value: input_text" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -15591,9 +16785,6 @@ }, { "$ref": "#/components/schemas/BaseInputs1" - }, - { - "description": "Any type" } ], "title": "BaseInputs" @@ -15637,9 +16828,6 @@ }, { "$ref": "#/components/schemas/OutputMessageItemPhase1" - }, - { - "description": "Any type" } ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.", @@ -15948,14 +17136,7 @@ "description": "Discriminator value: computer_call" }, "action": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "call_id": { "type": "string" @@ -16119,7 +17300,14 @@ "type": "string" }, "phase": { - "$ref": "#/components/schemas/OutputMessageItemPhase", + "oneOf": [ + { + "$ref": "#/components/schemas/OutputMessageItemPhase" + }, + { + "type": "null" + } + ], "description": "The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages." }, "role": { @@ -16399,6 +17587,49 @@ ], "description": "An openrouter:file_search server tool output item" }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "openrouter:files" + ], + "description": "Discriminator value: openrouter:files" + }, + "error": { + "type": "string", + "description": "Error message when the file operation failed." + }, + "file_id": { + "type": "string", + "description": "The target file id supplied in the tool-call arguments." + }, + "filename": { + "type": "string", + "description": "The target filename supplied in the tool-call arguments." + }, + "id": { + "type": "string" + }, + "operation": { + "type": "string", + "description": "The file operation performed (list, read, write, or edit)." + }, + "result": { + "type": "string", + "description": "JSON-serialized result of the file operation." + }, + "status": { + "$ref": "#/components/schemas/ToolCallStatus" + } + }, + "required": [ + "type", + "status" + ], + "description": "An openrouter:files server tool output item" + }, { "type": "object", "properties": { @@ -16537,14 +17768,7 @@ "$ref": "#/components/schemas/ToolCallStatus" }, "value": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" } }, "required": [ @@ -16705,10 +17929,7 @@ "$ref": "#/components/schemas/OutputReasoningItemType" }, "content": { - "type": [ - "array", - "null" - ], + "type": "array", "items": { "$ref": "#/components/schemas/ReasoningTextContent" } @@ -16846,9 +18067,15 @@ "BaseReasoningConfig": { "type": "object", "properties": { + "context": { + "$ref": "#/components/schemas/ReasoningContext" + }, "effort": { "$ref": "#/components/schemas/ReasoningEffort" }, + "mode": { + "$ref": "#/components/schemas/ReasoningMode" + }, "summary": { "$ref": "#/components/schemas/ReasoningSummaryVerbosity" } @@ -16967,6 +18194,9 @@ }, { "$ref": "#/components/schemas/CustomTool" + }, + { + "$ref": "#/components/schemas/NamespaceTool" } ], "title": "OpenResponsesResultToolsItems" @@ -16979,9 +18209,15 @@ ], "title": "Truncation" }, - "UsageInputTokensDetails": { + "OpenAiResponsesUsageInputTokensDetails": { "type": "object", "properties": { + "cache_write_tokens": { + "type": [ + "integer", + "null" + ] + }, "cached_tokens": { "type": "integer" } @@ -16989,9 +18225,9 @@ "required": [ "cached_tokens" ], - "title": "UsageInputTokensDetails" + "title": "OpenAiResponsesUsageInputTokensDetails" }, - "UsageOutputTokensDetails": { + "OpenAiResponsesUsageOutputTokensDetails": { "type": "object", "properties": { "reasoning_tokens": { @@ -17001,7 +18237,7 @@ "required": [ "reasoning_tokens" ], - "title": "UsageOutputTokensDetails" + "title": "OpenAiResponsesUsageOutputTokensDetails" }, "UsageCostDetails": { "type": "object", @@ -17028,6 +18264,34 @@ ], "title": "UsageCostDetails" }, + "ServerToolUseDetails": { + "type": "object", + "properties": { + "tool_calls_executed": { + "type": [ + "integer", + "null" + ], + "description": "Number of OpenRouter server tool calls that executed and produced a result." + }, + "tool_calls_requested": { + "type": [ + "integer", + "null" + ], + "description": "Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here." + }, + "web_search_requests": { + "type": [ + "integer", + "null" + ], + "description": "Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two." + } + }, + "description": "Usage for server-side tool execution (e.g., web search)", + "title": "ServerToolUseDetails" + }, "Usage": { "type": "object", "properties": { @@ -17035,13 +18299,13 @@ "type": "integer" }, "input_tokens_details": { - "$ref": "#/components/schemas/UsageInputTokensDetails" + "$ref": "#/components/schemas/OpenAiResponsesUsageInputTokensDetails" }, "output_tokens": { "type": "integer" }, "output_tokens_details": { - "$ref": "#/components/schemas/UsageOutputTokensDetails" + "$ref": "#/components/schemas/OpenAiResponsesUsageOutputTokensDetails" }, "total_tokens": { "type": "integer" @@ -17060,6 +18324,9 @@ "is_byok": { "type": "boolean", "description": "Whether a request was made using a Bring Your Own Key configuration" + }, + "server_tool_use_details": { + "$ref": "#/components/schemas/ServerToolUseDetails" } }, "required": [ @@ -17393,6 +18660,9 @@ "null" ] }, + "prompt_cache_options": { + "$ref": "#/components/schemas/PromptCacheOptions" + }, "reasoning": { "$ref": "#/components/schemas/BaseReasoningConfig" }, @@ -17403,14 +18673,7 @@ ] }, "service_tier": { - "oneOf": [ - { - "$ref": "#/components/schemas/ServiceTier" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/ServiceTier" }, "status": { "$ref": "#/components/schemas/OpenAIResponsesResponseStatus" @@ -18351,7 +19614,29 @@ "description": "Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.", "title": "ImageGenerationRequestOutputFormat" }, - "ImageGenerationRequestProviderOptions": { + "ImageGenerationProviderPreferencesIgnoreItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "ImageGenerationProviderPreferencesIgnoreItems" + }, + "ImageGenerationProviderPreferencesOnlyItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "ImageGenerationProviderPreferencesOnlyItems" + }, + "ImageGenerationProviderPreferencesOptions": { "type": "object", "properties": { "01ai": { @@ -18540,6 +19825,12 @@ "description": "Any type" } }, + "deepgram": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "deepinfra": { "type": "object", "additionalProperties": { @@ -18588,6 +19879,12 @@ "description": "Any type" } }, + "fish-audio": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "friendli": { "type": "object", "additionalProperties": { @@ -18708,6 +20005,12 @@ "description": "Any type" } }, + "krea": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "lambda": { "type": "object", "additionalProperties": { @@ -18936,7 +20239,13 @@ "description": "Any type" } }, - "sakana-ai": { + "sail-research": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sakana": { "type": "object", "additionalProperties": { "description": "Any type" @@ -19008,6 +20317,12 @@ "description": "Any type" } }, + "tencent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "tenstorrent": { "type": "object", "additionalProperties": { @@ -19076,17 +20391,88 @@ } }, "description": "Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.", - "title": "ImageGenerationRequestProviderOptions" + "title": "ImageGenerationProviderPreferencesOptions" }, - "ImageGenerationRequestProvider": { + "ImageGenerationProviderPreferencesOrderItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "ImageGenerationProviderPreferencesOrderItems" + }, + "ImageGenerationProviderPreferencesSort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderSort" + }, + { + "$ref": "#/components/schemas/ProviderSortConfig" + } + ], + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", + "title": "ImageGenerationProviderPreferencesSort" + }, + "ImageGenerationProviderPreferences": { "type": "object", "properties": { + "allow_fallbacks": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" + }, + "ignore": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ImageGenerationProviderPreferencesIgnoreItems" + }, + "description": "List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request." + }, + "only": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ImageGenerationProviderPreferencesOnlyItems" + }, + "description": "List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request." + }, "options": { - "$ref": "#/components/schemas/ImageGenerationRequestProviderOptions" + "$ref": "#/components/schemas/ImageGenerationProviderPreferencesOptions" + }, + "order": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ImageGenerationProviderPreferencesOrderItems" + }, + "description": "An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message." + }, + "sort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ImageGenerationProviderPreferencesSort" + }, + { + "type": "null" + } + ], + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." } }, - "description": "Provider-specific passthrough configuration", - "title": "ImageGenerationRequestProvider" + "description": "Provider routing preferences and provider-specific passthrough configuration.", + "title": "ImageGenerationProviderPreferences" }, "ImageGenerationRequestQuality": { "type": "string", @@ -19149,8 +20535,7 @@ "description": "Text description of the desired image" }, "provider": { - "$ref": "#/components/schemas/ImageGenerationRequestProvider", - "description": "Provider-specific passthrough configuration" + "$ref": "#/components/schemas/ImageGenerationProviderPreferences" }, "quality": { "$ref": "#/components/schemas/ImageGenerationRequestQuality", @@ -19166,7 +20551,7 @@ }, "size": { "type": "string", - "description": "Optional. A convenience shorthand for output dimensions — pass a tier (\"2K\", \"4K\") or explicit pixels (\"2048x2048\") and we normalize it to the right dimensions for the chosen provider. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected." + "description": "Optional. A convenience shorthand for output dimensions — pass a tier (\"2K\", \"4K\") or explicit pixels (\"2048x2048\") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400." }, "stream": { "type": "boolean", @@ -19189,7 +20574,7 @@ }, "media_type": { "type": "string", - "description": "Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)." + "description": "Media type (MIME type) of the image, e.g. `image/png`, `image/jpeg`, `image/webp`, `image/svg+xml`. May be omitted if the format could not be determined." } }, "required": [ @@ -19197,6 +20582,22 @@ ], "title": "ImageGenerationResponseDataItems" }, + "AnthropicCacheCreation": { + "type": "object", + "properties": { + "ephemeral_1h_input_tokens": { + "type": "integer" + }, + "ephemeral_5m_input_tokens": { + "type": "integer" + } + }, + "required": [ + "ephemeral_1h_input_tokens", + "ephemeral_5m_input_tokens" + ], + "title": "AnthropicCacheCreation" + }, "ImageGenerationUsageCompletionTokensDetails": { "type": "object", "properties": { @@ -19496,6 +20897,9 @@ "ImageGenerationUsage": { "type": "object", "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicCacheCreation" + }, "completion_tokens": { "type": "integer", "description": "The tokens generated" @@ -19608,7 +21012,7 @@ "description": "Image generation response", "title": "ImageGenerationResponse" }, - "InputModality": { + "ImageInputModality": { "type": "string", "enum": [ "text", @@ -19617,7 +21021,7 @@ "audio", "video" ], - "title": "InputModality" + "title": "ImageInputModality" }, "ImageOutputModality": { "type": "string", @@ -19639,7 +21043,7 @@ "input_modalities": { "type": "array", "items": { - "$ref": "#/components/schemas/InputModality" + "$ref": "#/components/schemas/ImageInputModality" }, "description": "Supported input modalities" }, @@ -20117,6 +21521,12 @@ "description": "Any type" } }, + "deepgram": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "deepinfra": { "type": "object", "additionalProperties": { @@ -20165,6 +21575,12 @@ "description": "Any type" } }, + "fish-audio": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "friendli": { "type": "object", "additionalProperties": { @@ -20285,6 +21701,12 @@ "description": "Any type" } }, + "krea": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "lambda": { "type": "object", "additionalProperties": { @@ -20513,7 +21935,13 @@ "description": "Any type" } }, - "sakana-ai": { + "sail-research": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sakana": { "type": "object", "additionalProperties": { "description": "Any type" @@ -20585,6 +22013,12 @@ "description": "Any type" } }, + "tencent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "tenstorrent": { "type": "object", "additionalProperties": { @@ -20741,6 +22175,24 @@ "description": "Provider-specific passthrough configuration", "title": "SttRequestProvider" }, + "SttRequestResponseFormat": { + "type": "string", + "enum": [ + "json", + "verbose_json" + ], + "description": "Output format. \"json\" (default) returns { text, usage }. \"verbose_json\" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers.", + "title": "SttRequestResponseFormat" + }, + "STTTimestampGranularity": { + "type": "string", + "enum": [ + "word", + "segment" + ], + "description": "A timestamp detail level for verbose_json transcription responses.", + "title": "STTTimestampGranularity" + }, "STTRequest": { "type": "object", "properties": { @@ -20759,10 +22211,21 @@ "$ref": "#/components/schemas/SttRequestProvider", "description": "Provider-specific passthrough configuration" }, + "response_format": { + "$ref": "#/components/schemas/SttRequestResponseFormat", + "description": "Output format. \"json\" (default) returns { text, usage }. \"verbose_json\" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers." + }, "temperature": { "type": "number", "format": "double", "description": "Sampling temperature for transcription" + }, + "timestamp_granularities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/STTTimestampGranularity" + }, + "description": "Timestamp detail levels to include when response_format is \"verbose_json\". \"segment\" returns segment-level timestamps; \"word\" additionally returns word-level timestamps in the words array. Ignored unless response_format is \"verbose_json\"." } }, "required": [ @@ -20772,6 +22235,68 @@ "description": "Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.", "title": "STTRequest" }, + "STTSegment": { + "type": "object", + "properties": { + "avg_logprob": { + "type": "number", + "format": "double", + "description": "Average log probability of the segment" + }, + "compression_ratio": { + "type": "number", + "format": "double", + "description": "Compression ratio of the segment" + }, + "end": { + "type": "number", + "format": "double", + "description": "Segment end time in seconds" + }, + "id": { + "type": "integer", + "description": "Segment index within the transcript" + }, + "no_speech_prob": { + "type": "number", + "format": "double", + "description": "Probability the segment contains no speech" + }, + "seek": { + "type": "integer", + "description": "Seek offset of the segment" + }, + "start": { + "type": "number", + "format": "double", + "description": "Segment start time in seconds" + }, + "temperature": { + "type": "number", + "format": "double", + "description": "Temperature used for the segment" + }, + "text": { + "type": "string", + "description": "Transcribed text of the segment" + }, + "tokens": { + "type": "array", + "items": { + "type": "integer" + }, + "description": "Token IDs of the segment" + } + }, + "required": [ + "end", + "id", + "start", + "text" + ], + "description": "A timestamped transcript segment, returned when response_format is verbose_json", + "title": "STTSegment" + }, "STTUsage": { "type": "object", "properties": { @@ -20801,15 +22326,68 @@ "description": "Aggregated usage statistics for the request", "title": "STTUsage" }, + "STTWord": { + "type": "object", + "properties": { + "end": { + "type": "number", + "format": "double", + "description": "Word end time in seconds" + }, + "start": { + "type": "number", + "format": "double", + "description": "Word start time in seconds" + }, + "word": { + "type": "string", + "description": "The transcribed word" + } + }, + "required": [ + "end", + "start", + "word" + ], + "description": "A timestamped word, returned when the provider includes word-level timestamps", + "title": "STTWord" + }, "STTResponse": { "type": "object", "properties": { + "duration": { + "type": "number", + "format": "double", + "description": "Duration of the input audio in seconds, present when response_format is verbose_json" + }, + "language": { + "type": "string", + "description": "Detected or forced language, present when response_format is verbose_json" + }, + "segments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/STTSegment" + }, + "description": "Timestamped transcript segments, present when response_format is verbose_json" + }, + "task": { + "type": "string", + "description": "The task performed, present when response_format is verbose_json" + }, "text": { "type": "string", "description": "The transcribed text" }, "usage": { "$ref": "#/components/schemas/STTUsage" + }, + "words": { + "type": "array", + "items": { + "$ref": "#/components/schemas/STTWord" + }, + "description": "Timestamped words, present when the provider returns word-level timestamps" } }, "required": [ @@ -21077,6 +22655,111 @@ ], "title": "beta.Analytics_getAnalyticsMeta_Response_200" }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions": { + "type": "object", + "properties": { + "classifier_id": { + "type": "string", + "format": "uuid", + "description": "UUID of the classifier whose tags to group by." + }, + "dimension_names": { + "type": "array", + "items": { + "type": "string" + } + }, + "include_nulls": { + "type": "boolean", + "description": "When true, also include generations that have no tag from this classifier. Defaults to false, which returns only classified generations." + } + }, + "required": [ + "classifier_id" + ], + "description": "Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace.", + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions" + }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ], + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items" + }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValueOneOf2Items" + }, + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2" + }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + }, + { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue2" + } + ], + "description": "Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in.", + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue" + }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "Classifier dimension name to filter on (snake_case identifier, e.g. \"department\", \"work_type\")." + }, + "operator": { + "type": "string", + "description": "Filter operator. Only equality/set operators are supported (eq, neq, in, not_in) — ordered comparisons are not available because classification values are strings." + }, + "value": { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItemsValue", + "description": "Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in." + } + }, + "required": [ + "field", + "operator", + "value" + ], + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems" + }, + "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters": { + "type": "object", + "properties": { + "classifier_id": { + "type": "string", + "format": "uuid", + "description": "UUID of the classifier whose tags to filter by. Must match classifier_dimensions.classifier_id when both are specified." + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFiltersFiltersItems" + } + } + }, + "required": [ + "classifier_id", + "filters" + ], + "description": "Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions.", + "title": "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters" + }, "AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items": { "oneOf": [ { @@ -21151,7 +22834,7 @@ }, "field": { "type": "string", - "description": "Field to order by" + "description": "Field to order by: a metric included in `metrics` (or \"request_count\", which may be ordered by without being requested), a requested dimension, or \"date\"." } }, "required": [ @@ -21506,14 +23189,7 @@ "description": "Number of unique models in the response." }, "source": { - "oneOf": [ - { - "$ref": "#/components/schemas/UnifiedBenchmarksMetaSource" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/UnifiedBenchmarksMetaSource", "description": "The source filter applied, or null when all sources are returned." }, "source_url": { @@ -21593,12 +23269,14 @@ "crusoe", "darkbloom", "decart", + "deepgram", "deepinfra", "deepseek", "dekallm", "digitalocean", "featherless", "fireworks", + "fish-audio", "friendli", "gmicloud", "google-ai-studio", @@ -21613,9 +23291,11 @@ "inflection", "io-net", "ionstream", + "krea", "liquid", "mancer", "mara", + "meta", "minimax", "mistral", "modelrun", @@ -21639,7 +23319,8 @@ "recraft", "reka", "relace", - "sakana-ai", + "sail-research", + "sakana", "sambanova", "seed", "siliconflow", @@ -21647,6 +23328,7 @@ "stepfun", "streamlake", "switchpoint", + "tencent", "tenstorrent", "together", "upstage", @@ -21688,12 +23370,14 @@ "crusoe", "darkbloom", "decart", + "deepgram", "deepinfra", "deepseek", "dekallm", "digitalocean", "featherless", "fireworks", + "fish-audio", "friendli", "gmicloud", "google-ai-studio", @@ -21708,9 +23392,11 @@ "inflection", "io-net", "ionstream", + "krea", "liquid", "mancer", "mara", + "meta", "minimax", "mistral", "modelrun", @@ -21734,7 +23420,8 @@ "recraft", "reka", "relace", - "sakana-ai", + "sail-research", + "sakana", "sambanova", "seed", "siliconflow", @@ -21742,6 +23429,7 @@ "stepfun", "streamlake", "switchpoint", + "tencent", "tenstorrent", "together", "upstage", @@ -22383,7 +24071,7 @@ ], "title": "LegacyChatContentVideoType" }, - "ChatContentVideoInput": { + "Legacy_ChatContentVideoInput": { "type": "object", "properties": { "url": { @@ -22395,7 +24083,7 @@ "url" ], "description": "Video input object", - "title": "ChatContentVideoInput" + "title": "Legacy_ChatContentVideoInput" }, "ChatContentCacheControlType": { "type": "string", @@ -22417,7 +24105,7 @@ "required": [ "type" ], - "description": "Cache control for the content part", + "description": "Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request.", "title": "ChatContentCacheControl" }, "ChatContentTextType": { @@ -22434,6 +24122,20 @@ ], "title": "ChatContentVideoType" }, + "ChatContentVideoInput": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "URL of the video (data: URLs supported)" + } + }, + "required": [ + "url" + ], + "description": "Video input object", + "title": "ChatContentVideoInput" + }, "ChatContentItems": { "oneOf": [ { @@ -22503,7 +24205,7 @@ "$ref": "#/components/schemas/LegacyChatContentVideoType" }, "video_url": { - "$ref": "#/components/schemas/ChatContentVideoInput" + "$ref": "#/components/schemas/Legacy_ChatContentVideoInput" } }, "required": [ @@ -22521,6 +24223,9 @@ "cache_control": { "$ref": "#/components/schemas/ChatContentCacheControl" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" } @@ -22568,9 +24273,6 @@ }, { "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent1" - }, - { - "description": "Any type" } ], "description": "Assistant message content", @@ -22643,6 +24345,52 @@ ], "description": "Reasoning detail encrypted schema" }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reasoning.server_tool_call" + ], + "description": "Discriminator value: reasoning.server_tool_call" + }, + "arguments": { + "type": "string" + }, + "format": { + "$ref": "#/components/schemas/ReasoningFormat" + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "index": { + "type": "integer" + }, + "result": { + "type": "string" + }, + "tool_call_id": { + "type": [ + "string", + "null" + ] + }, + "tool_name": { + "type": "string" + } + }, + "required": [ + "type", + "arguments", + "result", + "tool_name" + ], + "description": "Record of an OpenRouter server-tool invocation (e.g. openrouter:fusion), carried in reasoning_details so a prior tool call can be rehydrated into a later turn of the same conversation." + }, { "type": "object", "properties": { @@ -22783,6 +24531,9 @@ "cache_control": { "$ref": "#/components/schemas/ChatContentCacheControl" }, + "prompt_cache_breakpoint": { + "$ref": "#/components/schemas/PromptCacheBreakpoint" + }, "text": { "type": "string" }, @@ -22910,7 +24661,14 @@ "$ref": "#/components/schemas/ChatAudioOutput" }, "content": { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", + "oneOf": [ + { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent" + }, + { + "type": "null" + } + ], "description": "Assistant message content" }, "images": { @@ -23070,6 +24828,37 @@ }, "ChatRequestPluginsItems": { "oneOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "auto-beta-router" + ], + "description": "Discriminator value: auto-beta-router" + }, + "allowed_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-beta-router plugin for this request. Defaults to true." + } + }, + "required": [ + "id" + ], + "description": "auto-beta-router variant" + }, { "type": "object", "properties": { @@ -23226,7 +25015,11 @@ "min_coding_score": { "type": "number", "format": "double", - "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." + "description": "Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66)." + }, + "price_source": { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource", + "description": "Price source for the Pareto frontier cost axis. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\"." } }, "required": [ @@ -23292,7 +25085,14 @@ "type": "string" }, "user_location": { - "$ref": "#/components/schemas/WebSearchPluginUserLocation" + "oneOf": [ + { + "$ref": "#/components/schemas/WebSearchPluginUserLocation" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -23340,6 +25140,72 @@ }, "title": "ChatRequestPluginsItems" }, + "PredictionContentTextType": { + "type": "string", + "enum": [ + "text" + ], + "title": "PredictionContentTextType" + }, + "PredictionContentText": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/PredictionContentTextType" + } + }, + "required": [ + "text", + "type" + ], + "description": "Text content part for a predicted output.", + "title": "PredictionContentText" + }, + "PredictionContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PredictionContentText" + }, + "title": "PredictionContent1" + }, + "PredictionContent": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/PredictionContent1" + } + ], + "title": "PredictionContent" + }, + "PredictionType": { + "type": "string", + "enum": [ + "content" + ], + "title": "PredictionType" + }, + "Prediction": { + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/PredictionContent" + }, + "type": { + "$ref": "#/components/schemas/PredictionType" + } + }, + "required": [ + "content", + "type" + ], + "description": "Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance.", + "title": "Prediction" + }, "ChatRequestReasoningEffort": { "type": "string", "enum": [ @@ -23367,14 +25233,7 @@ "type": "object", "properties": { "effort": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatRequestReasoningEffort" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/ChatRequestReasoningEffort", "description": "Constrains effort on reasoning for reasoning models" }, "summary": { @@ -23443,7 +25302,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/FormatJsonObjectConfigType" + "type": "string", + "enum": [ + "json_object" + ], + "description": "Discriminator value: json_object" } }, "required": [ @@ -23532,9 +25395,6 @@ "items": { "type": "string" } - }, - { - "description": "Any type" } ], "description": "Stop sequences (up to 4)", @@ -23703,6 +25563,29 @@ ], "title": "ChatFunctionTool0" }, + "ChatSearchModelsServerToolType": { + "type": "string", + "enum": [ + "openrouter:experimental__search_models" + ], + "title": "ChatSearchModelsServerToolType" + }, + "ChatSearchModelsServerTool": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/SearchModelsServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/ChatSearchModelsServerToolType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: searches and filters AI models available on OpenRouter", + "title": "ChatSearchModelsServerTool" + }, "WebSearchConfig": { "type": "object", "properties": { @@ -23845,6 +25728,9 @@ { "$ref": "#/components/schemas/FilesServerTool" }, + { + "$ref": "#/components/schemas/FusionServerTool_OpenRouter" + }, { "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" }, @@ -23968,6 +25854,9 @@ }, "description": "Plugins you want to enable for this request, including their settings." }, + "prediction": { + "$ref": "#/components/schemas/Prediction" + }, "presence_penalty": { "type": [ "number", @@ -23976,6 +25865,15 @@ "format": "double", "description": "Presence penalty (-2.0 to 2.0)" }, + "prompt_cache_key": { + "type": [ + "string", + "null" + ] + }, + "prompt_cache_options": { + "$ref": "#/components/schemas/PromptCacheOptions" + }, "provider": { "$ref": "#/components/schemas/ProviderPreferences" }, @@ -23984,14 +25882,7 @@ "description": "Configuration options for reasoning models" }, "reasoning_effort": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatRequestReasoningEffort" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/ChatRequestReasoningEffort", "description": "Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ." }, "repetition_penalty": { @@ -24017,14 +25908,7 @@ "description": "Random seed for deterministic outputs" }, "service_tier": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatRequestServiceTier" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/ChatRequestServiceTier", "description": "The service tier to use for processing this request." }, "session_id": { @@ -24032,7 +25916,14 @@ "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters." }, "stop": { - "$ref": "#/components/schemas/ChatRequestStop", + "oneOf": [ + { + "$ref": "#/components/schemas/ChatRequestStop" + }, + { + "type": "null" + } + ], "description": "Stop sequences (up to 4)" }, "stop_server_tools_when": { @@ -24222,7 +26113,14 @@ "$ref": "#/components/schemas/ChatAudioOutput" }, "content": { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", + "oneOf": [ + { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent" + }, + { + "type": "null" + } + ], "description": "Assistant message content" }, "images": { @@ -24350,34 +26248,6 @@ "description": "Detailed prompt token usage", "title": "ChatUsagePromptTokensDetails" }, - "ChatUsageServerToolUseDetails": { - "type": "object", - "properties": { - "tool_calls_executed": { - "type": [ - "integer", - "null" - ], - "description": "Number of OpenRouter server tool calls that executed and produced a result" - }, - "tool_calls_requested": { - "type": [ - "integer", - "null" - ], - "description": "Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here." - }, - "web_search_requests": { - "type": [ - "integer", - "null" - ], - "description": "Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two." - } - }, - "description": "Usage for server-side tool execution (e.g., web search)", - "title": "ChatUsageServerToolUseDetails" - }, "ChatUsage": { "type": "object", "properties": { @@ -24427,15 +26297,7 @@ "description": "Detailed prompt token usage" }, "server_tool_use_details": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatUsageServerToolUseDetails" - }, - { - "type": "null" - } - ], - "description": "Usage for server-side tool execution (e.g., web search)" + "$ref": "#/components/schemas/ServerToolUseDetails" }, "total_tokens": { "type": "integer", @@ -24837,6 +26699,68 @@ ], "title": "AppRankingsResponse" }, + "DatasetsRankingsDailyGetParametersPeriod": { + "type": "string", + "enum": [ + "day", + "week", + "month" + ], + "description": "Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries.", + "title": "DatasetsRankingsDailyGetParametersPeriod" + }, + "DatasetsRankingsDailyGetParametersModality": { + "type": "string", + "enum": [ + "text", + "image", + "image_output", + "audio", + "tool_calling" + ], + "description": "Restrict to models for a modality surface: `text` / `image_output` match output modality, `image` / `audio` match input modality, and `tool_calling` keeps only rows that recorded at least one tool call. Exact dataset — cannot be combined with `category` or `language_type`.", + "title": "DatasetsRankingsDailyGetParametersModality" + }, + "DatasetsRankingsDailyGetParametersContextBucket": { + "type": "string", + "enum": [ + "1K", + "10K", + "100K", + "1M", + "10M" + ], + "description": "Restrict to requests whose context length falls in this bucket (`1K`, `10K`, `100K`, `1M`, or `10M`). Exact dataset — cannot be combined with `category` or `language_type`.", + "title": "DatasetsRankingsDailyGetParametersContextBucket" + }, + "DatasetsRankingsDailyGetParametersCategory": { + "type": "string", + "enum": [ + "programming", + "roleplay", + "marketing", + "marketing/seo", + "technology", + "science", + "translation", + "legal", + "finance", + "health", + "trivia", + "academia" + ], + "description": "Restrict to a use-case category (e.g. `programming`, `roleplay`). Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `language_type`.", + "title": "DatasetsRankingsDailyGetParametersCategory" + }, + "DatasetsRankingsDailyGetParametersLanguageType": { + "type": "string", + "enum": [ + "natural", + "programming" + ], + "description": "Restrict to natural-language or programming-language tagged activity. Sourced from a sampled, upsampled dataset, so `total_tokens` is an estimate and is aggregated weekly (the trailing weekly bucket may include traffic past `end_date`). Cannot be combined with `modality`, `context_bucket`, or `category`.", + "title": "DatasetsRankingsDailyGetParametersLanguageType" + }, "RankingsDailyItem": { "type": "object", "properties": { @@ -25184,9 +27108,6 @@ }, { "$ref": "#/components/schemas/ProviderSortConfig" - }, - { - "description": "Any type" } ], "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", @@ -25203,14 +27124,7 @@ "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" }, "data_collection": { - "oneOf": [ - { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection", "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." }, "enforce_distillable_text": { @@ -25278,7 +27192,14 @@ "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." }, "sort": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort", + "oneOf": [ + { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort" + }, + { + "type": "null" + } + ], "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." }, "zdr": { @@ -25344,32 +27265,6 @@ ], "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaObject" }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails": { - "type": "object", - "properties": { - "upstream_inference_completions_cost": { - "type": "number", - "format": "double" - }, - "upstream_inference_cost": { - "type": [ - "number", - "null" - ], - "format": "double" - }, - "upstream_inference_prompt_cost": { - "type": "number", - "format": "double" - } - }, - "required": [ - "upstream_inference_completions_cost", - "upstream_inference_prompt_cost" - ], - "description": "Breakdown of upstream inference costs", - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails" - }, "EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails": { "type": "object", "properties": { @@ -25406,15 +27301,7 @@ "description": "Cost of the request in credits" }, "cost_details": { - "oneOf": [ - { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails" - }, - { - "type": "null" - } - ], - "description": "Breakdown of upstream inference costs" + "$ref": "#/components/schemas/CostDetails" }, "is_byok": { "type": "boolean", @@ -25474,7 +27361,18 @@ "description": "Embeddings response containing embedding vectors", "title": "Embeddings_createEmbeddings_Response_200" }, - "ModelArchitectureInstructType": { + "InputModality": { + "type": "string", + "enum": [ + "text", + "image", + "file", + "audio", + "video" + ], + "title": "InputModality" + }, + "InstructType": { "type": "string", "enum": [ "none", @@ -25501,7 +27399,7 @@ "qwen3" ], "description": "Instruction format type", - "title": "ModelArchitectureInstructType" + "title": "InstructType" }, "OutputModality": { "type": "string", @@ -25555,15 +27453,7 @@ "description": "Supported input modalities" }, "instruct_type": { - "oneOf": [ - { - "$ref": "#/components/schemas/ModelArchitectureInstructType" - }, - { - "type": "null" - } - ], - "description": "Instruction format type" + "$ref": "#/components/schemas/InstructType" }, "modality": { "type": [ @@ -25766,6 +27656,56 @@ "description": "Per-request token limits", "title": "PerRequestLimits" }, + "PricingOverride": { + "type": "object", + "properties": { + "audio": { + "type": "string", + "description": "Overridden price in USD per audio input token" + }, + "completion": { + "type": "string", + "description": "Overridden price in USD per token for completion (output) generation" + }, + "input_audio_cache": { + "type": "string", + "description": "Overridden price in USD per cached audio input token" + }, + "input_cache_read": { + "type": "string", + "description": "Overridden price in USD per cached input token (read)" + }, + "input_cache_write": { + "type": "string", + "description": "Overridden price in USD per cache-write token" + }, + "input_cache_write_1h": { + "type": "string", + "description": "Overridden price in USD per 1-hour cache-write token" + }, + "min_prompt_tokens": { + "type": "number", + "format": "double", + "description": "Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold" + }, + "prompt": { + "type": "string", + "description": "Overridden price in USD per token for prompt (input) processing" + }, + "utc_end": { + "type": "number", + "format": "double", + "description": "Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)" + }, + "utc_start": { + "type": "number", + "format": "double", + "description": "Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end)." + } + }, + "description": "A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price.", + "title": "PricingOverride" + }, "PublicPricing": { "type": "object", "properties": { @@ -25818,6 +27758,13 @@ "type": "string", "description": "Price in USD per internal reasoning token" }, + "overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PricingOverride" + }, + "description": "Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions." + }, "prompt": { "type": "string", "description": "Price in USD per token for prompt (input) processing" @@ -25889,6 +27836,7 @@ "logit_bias", "logprobs", "top_logprobs", + "prediction", "seed", "response_format", "structured_outputs", @@ -26051,15 +27999,42 @@ "description": "List of available models", "title": "ModelsListResponseData" }, + "ModelsListResponseLinks": { + "type": "object", + "properties": { + "next": { + "type": [ + "string", + "null" + ], + "description": "URL for the next page of results, or null if this is the last page" + } + }, + "required": [ + "next" + ], + "description": "Pagination links", + "title": "ModelsListResponseLinks" + }, "ModelsListResponse": { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/ModelsListResponseData" + }, + "links": { + "$ref": "#/components/schemas/ModelsListResponseLinks", + "description": "Pagination links" + }, + "total_count": { + "type": "integer", + "description": "Total number of models matching the query" } }, "required": [ - "data" + "data", + "links", + "total_count" ], "description": "List of available models", "title": "ModelsListResponse" @@ -26149,6 +28124,13 @@ "type": "string", "description": "Price in USD per internal reasoning token" }, + "overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PricingOverride" + }, + "description": "Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions." + }, "prompt": { "type": "string", "description": "Price in USD per token for prompt (input) processing" @@ -26251,7 +28233,14 @@ "$ref": "#/components/schemas/ProviderName" }, "quantization": { - "$ref": "#/components/schemas/Quantization" + "oneOf": [ + { + "$ref": "#/components/schemas/Quantization" + }, + { + "type": "null" + } + ] }, "status": { "$ref": "#/components/schemas/EndpointStatus" @@ -26332,35 +28321,6 @@ ], "title": "Endpoints_listEndpointsZdr_Response_200" }, - "InstructType": { - "type": "string", - "enum": [ - "none", - "airoboros", - "alpaca", - "alpaca-modif", - "chatml", - "claude", - "code-llama", - "gemma", - "llama2", - "llama3", - "mistral", - "nemotron", - "neural", - "openchat", - "phi3", - "rwkv", - "vicuna", - "zephyr", - "deepseek-r1", - "deepseek-v3.1", - "qwq", - "qwen3" - ], - "description": "Instruction format type", - "title": "InstructType" - }, "ListEndpointsResponseArchitecture": { "type": "object", "properties": { @@ -26372,15 +28332,7 @@ "description": "Supported input modalities" }, "instruct_type": { - "oneOf": [ - { - "$ref": "#/components/schemas/InstructType" - }, - { - "type": "null" - } - ], - "description": "Instruction format type" + "$ref": "#/components/schemas/InstructType" }, "modality": { "type": [ @@ -26615,7 +28567,6 @@ "Lynn 2", "Lynn", "Mancer", - "Meta", "Modal", "Nineteen", "OctoAI", @@ -26654,12 +28605,14 @@ "Crusoe", "Darkbloom", "Decart", + "Deepgram", "DeepInfra", "DeepSeek", "DekaLLM", "DigitalOcean", "Featherless", "Fireworks", + "Fish Audio", "Friendli", "GMICloud", "Google", @@ -26677,6 +28630,7 @@ "Liquid", "Mara", "Mancer 2", + "Meta", "Minimax", "ModelRun", "Mistral", @@ -26699,6 +28653,7 @@ "Recraft", "Reka", "Relace", + "Sail Research", "Sakana AI", "SambaNova", "Seed", @@ -26708,6 +28663,7 @@ "Stealth", "StreamLake", "Switchpoint", + "Tencent", "Tenstorrent", "Together", "Upstage", @@ -26715,6 +28671,7 @@ "Wafer", "WandB", "Quiver", + "Krea", "Xiaomi", "xAI", "Z.AI", @@ -26723,6 +28680,15 @@ "description": "Name of the provider", "title": "ProviderResponseProviderName" }, + "ProviderResponseRoutedServiceTier": { + "type": "string", + "enum": [ + "flex", + "priority" + ], + "description": "The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ.", + "title": "ProviderResponseRoutedServiceTier" + }, "ProviderResponse": { "type": "object", "properties": { @@ -26751,6 +28717,10 @@ "$ref": "#/components/schemas/ProviderResponseProviderName", "description": "Name of the provider" }, + "routed_service_tier": { + "$ref": "#/components/schemas/ProviderResponseRoutedServiceTier", + "description": "The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ." + }, "status": { "type": [ "integer", @@ -26769,14 +28739,7 @@ "type": "object", "properties": { "api_type": { - "oneOf": [ - { - "$ref": "#/components/schemas/GenerationResponseDataApiType" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/GenerationResponseDataApiType", "description": "Type of API used for the generation" }, "app_id": { @@ -27223,6 +29186,72 @@ "description": "Stored prompt and completion content for a generation", "title": "GenerationContentResponse" }, + "SubmitGenerationFeedbackRequestCategory": { + "type": "string", + "enum": [ + "latency", + "incoherence", + "incorrect_response", + "formatting", + "billing", + "api_error", + "other" + ], + "description": "The category of feedback being reported", + "title": "SubmitGenerationFeedbackRequestCategory" + }, + "SubmitGenerationFeedbackRequest": { + "type": "object", + "properties": { + "category": { + "$ref": "#/components/schemas/SubmitGenerationFeedbackRequestCategory", + "description": "The category of feedback being reported" + }, + "comment": { + "type": "string", + "description": "An optional free-text comment describing the feedback" + }, + "generation_id": { + "type": "string", + "description": "The generation to submit feedback on" + } + }, + "required": [ + "category", + "generation_id" + ], + "description": "Structured feedback about a specific generation", + "title": "SubmitGenerationFeedbackRequest" + }, + "SubmitGenerationFeedbackResponseData": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "Whether the feedback was recorded" + } + }, + "required": [ + "success" + ], + "title": "SubmitGenerationFeedbackResponseData" + }, + "SubmitGenerationFeedbackResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SubmitGenerationFeedbackResponseData" + } + }, + "required": [ + "data" + ], + "description": "Confirmation that the feedback was recorded", + "title": "SubmitGenerationFeedbackResponse" + }, "ContentFilterBuiltinAction": { "type": "string", "enum": [ @@ -27285,7 +29314,8 @@ "type": "string", "enum": [ "redact", - "block" + "block", + "flag" ], "description": "Action taken when the pattern matches", "title": "ContentFilterAction" @@ -27384,7 +29414,7 @@ "boolean", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, "enforce_zdr_anthropic": { "type": [ @@ -27412,7 +29442,14 @@ "boolean", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_xai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." }, "id": { "type": "string", @@ -27550,7 +29587,7 @@ "items": { "$ref": "#/components/schemas/ContentFilterBuiltinEntryInput" }, - "description": "Builtin content filters to apply. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." + "description": "Builtin content filters to apply. Every builtin slug supports \"block\", \"redact\", and the detect-only \"flag\" action." }, "content_filters": { "type": [ @@ -27574,7 +29611,149 @@ "boolean", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + }, + "enforce_zdr_anthropic": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_google": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_openai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_other": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_xai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." + }, + "ignored_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" + }, + "ignored_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" + }, + "limit_usd": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Spending limit in USD" + }, + "name": { + "type": "string", + "description": "Name for the new guardrail" + }, + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "The workspace to create the guardrail in. Defaults to the default workspace if not provided." + } + }, + "required": [ + "name" + ], + "title": "CreateGuardrailRequest" + }, + "CreateGuardrailResponseData": { + "type": "object", + "properties": { + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs (immutable identifiers)" + }, + "allowed_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of allowed provider IDs" + }, + "content_filter_builtins": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" + }, + "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." + }, + "content_filters": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterEntry" + }, + "description": "Custom regex content filters applied to request messages" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the guardrail was created" + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Description of the guardrail" + }, + "enforce_zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, "enforce_zdr_anthropic": { "type": [ @@ -27602,142 +29781,14 @@ "boolean", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." }, - "ignored_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" - }, - "ignored_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of provider IDs to exclude from routing" - }, - "limit_usd": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Spending limit in USD" - }, - "name": { - "type": "string", - "description": "Name for the new guardrail" - }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" - }, - "workspace_id": { - "type": "string", - "format": "uuid", - "description": "The workspace to create the guardrail in. Defaults to the default workspace if not provided." - } - }, - "required": [ - "name" - ], - "title": "CreateGuardrailRequest" - }, - "CreateGuardrailResponseData": { - "type": "object", - "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs (immutable identifiers)" - }, - "allowed_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of allowed provider IDs" - }, - "content_filter_builtins": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." - }, - "content_filters": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters applied to request messages" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the guardrail was created" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "Description of the guardrail" - }, - "enforce_zdr": { - "type": [ - "boolean", - "null" - ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." - }, - "enforce_zdr_anthropic": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_google": { + "enforce_zdr_xai": { "type": [ "boolean", "null" ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_openai": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_other": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." }, "id": { "type": "string", @@ -27871,7 +29922,7 @@ "boolean", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, "enforce_zdr_anthropic": { "type": [ @@ -27899,7 +29950,14 @@ "boolean", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_xai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." }, "id": { "type": "string", @@ -28021,7 +30079,7 @@ "items": { "$ref": "#/components/schemas/ContentFilterBuiltinEntryInput" }, - "description": "Builtin content filters to apply. Set to null to remove. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." + "description": "Builtin content filters to apply. Set to null to remove. Every builtin slug supports \"block\", \"redact\", and the detect-only \"flag\" action." }, "content_filters": { "type": [ @@ -28045,7 +30103,7 @@ "boolean", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, "enforce_zdr_anthropic": { "type": [ @@ -28073,7 +30131,14 @@ "boolean", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_xai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." }, "ignored_models": { "type": [ @@ -28172,7 +30237,7 @@ "boolean", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, enforce_zdr_xai, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, "enforce_zdr_anthropic": { "type": [ @@ -28200,7 +30265,14 @@ "boolean", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, Google, or xAI. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_xai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for xAI models. Falls back to enforce_zdr when not provided." }, "id": { "type": "string", @@ -29386,9 +31458,6 @@ "items": { "type": "string" } - }, - { - "description": "Any type" } ], "title": "MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" @@ -29478,7 +31547,14 @@ "$ref": "#/components/schemas/AnthropicInputTokensClearAtLeast" }, "clear_tool_inputs": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" + }, + { + "type": "null" + } + ] }, "exclude_tools": { "type": [ @@ -29589,25 +31665,14 @@ ], "title": "MessagesRequestContextManagementEditsItems1" }, - "MessagesRequestContextManagementEditsItemsOneOf2TriggerType": { - "type": "string", - "enum": [ - "input_tokens" - ], - "title": "MessagesRequestContextManagementEditsItemsOneOf2TriggerType" - }, "MessagesRequestContextManagementEditsItemsOneOf2Trigger": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2TriggerType" - }, "value": { "type": "integer" } }, "required": [ - "type", "value" ], "title": "MessagesRequestContextManagementEditsItemsOneOf2Trigger" @@ -29632,7 +31697,14 @@ "type": "boolean" }, "trigger": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Trigger" + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Trigger" + }, + { + "type": "null" + } + ] }, "type": { "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Type" @@ -30315,14 +32387,7 @@ "type": "string" }, "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "name": { "type": "string" @@ -30547,14 +32612,7 @@ "type": "string" }, "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "name": { "type": "string" @@ -30919,14 +32977,7 @@ "type": "object", "properties": { "effort": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesOutputConfigEffort" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/MessagesOutputConfigEffort", "description": "How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`." }, "format": { @@ -30957,6 +33008,37 @@ }, "MessagesRequestPluginsItems": { "oneOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "auto-beta-router" + ], + "description": "Discriminator value: auto-beta-router" + }, + "allowed_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 7." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-beta-router plugin for this request. Defaults to true." + } + }, + "required": [ + "id" + ], + "description": "auto-beta-router variant" + }, { "type": "object", "properties": { @@ -31113,7 +33195,11 @@ "min_coding_score": { "type": "number", "format": "double", - "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." + "description": "Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66)." + }, + "price_source": { + "$ref": "#/components/schemas/ResponsesRequestPluginsItemsDiscriminatorMappingParetoRouterPriceSource", + "description": "Price source for the Pareto frontier cost axis. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\"." } }, "required": [ @@ -31179,7 +33265,14 @@ "type": "string" }, "user_location": { - "$ref": "#/components/schemas/WebSearchPluginUserLocation" + "oneOf": [ + { + "$ref": "#/components/schemas/WebSearchPluginUserLocation" + }, + { + "type": "null" + } + ] } }, "required": [ @@ -31444,14 +33537,7 @@ "type": "object", "properties": { "properties": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "required": { "type": [ @@ -31749,29 +33835,6 @@ ], "title": "MessagesRequestToolsItems4" }, - "MessagesRequestToolsItemsOneOf5CachingType": { - "type": "string", - "enum": [ - "ephemeral" - ], - "title": "MessagesRequestToolsItemsOneOf5CachingType" - }, - "MessagesRequestToolsItemsOneOf5Caching": { - "type": "object", - "properties": { - "ttl": { - "$ref": "#/components/schemas/AnthropicCacheControlTtl" - }, - "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5CachingType" - } - }, - "required": [ - "type" - ], - "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.", - "title": "MessagesRequestToolsItemsOneOf5Caching" - }, "MessagesRequestToolsItemsOneOf5Name": { "type": "string", "enum": [ @@ -31796,7 +33859,14 @@ "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, "caching": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Caching" + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + { + "type": "null" + } + ] }, "defer_loading": { "type": "boolean" @@ -31821,6 +33891,29 @@ ], "title": "MessagesRequestToolsItems5" }, + "MessagesSearchModelsServerToolType": { + "type": "string", + "enum": [ + "openrouter:experimental__search_models" + ], + "title": "MessagesSearchModelsServerToolType" + }, + "MessagesSearchModelsServerTool": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/SearchModelsServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/MessagesSearchModelsServerToolType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: searches and filters AI models available on OpenRouter", + "title": "MessagesSearchModelsServerTool" + }, "MessagesRequestToolsItems12": { "type": "object", "properties": { @@ -31863,7 +33956,7 @@ "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/ChatSearchModelsServerTool" + "$ref": "#/components/schemas/MessagesSearchModelsServerTool" }, { "$ref": "#/components/schemas/WebFetchServerTool" @@ -32265,7 +34358,7 @@ }, "title": "AnthropicCodeExecutionContent" }, - "ORAnthropicNullableCaller": { + "OrAnthropicNullableCaller": { "oneOf": [ { "type": "object", @@ -32327,6 +34420,17 @@ "discriminator": { "propertyName": "type" }, + "title": "OrAnthropicNullableCaller" + }, + "ORAnthropicNullableCaller": { + "oneOf": [ + { + "$ref": "#/components/schemas/OrAnthropicNullableCaller" + }, + { + "type": "null" + } + ], "title": "ORAnthropicNullableCaller" }, "OrAnthropicServerToolUseBlockType": { @@ -33273,14 +35377,7 @@ "type": "string" }, "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "name": { "type": "string" @@ -33412,14 +35509,7 @@ "type": "string" }, "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "description": "Any type" }, "name": { "type": "string" @@ -33521,14 +35611,7 @@ "type": "object", "properties": { "category": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicRefusalStopDetailsCategory" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/AnthropicRefusalStopDetailsCategory" }, "explanation": { "type": [ @@ -33568,22 +35651,6 @@ ], "title": "MessagesResultType" }, - "AnthropicCacheCreation": { - "type": "object", - "properties": { - "ephemeral_1h_input_tokens": { - "type": "integer" - }, - "ephemeral_5m_input_tokens": { - "type": "integer" - } - }, - "required": [ - "ephemeral_1h_input_tokens", - "ephemeral_5m_input_tokens" - ], - "title": "AnthropicCacheCreation" - }, "AnthropicOutputTokensDetails": { "type": "object", "properties": { @@ -33867,9 +35934,11 @@ "throughput-high-to-low", "latency-low-to-high", "intelligence-high-to-low", + "coding-high-to-low", + "agentic-high-to-low", "design-arena-elo-high-to-low" ], - "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.", + "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.", "title": "ModelsGetParametersSort" }, "ModelsGetParametersDistillable": { @@ -33957,16 +36026,16 @@ ], "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" }, - "ObservabilityFilterRulesConfigGroupsItemsLogic": { + "ObservabilityFilterRuleGroupLogic": { "type": "string", "enum": [ "and", "or" ], "default": "and", - "title": "ObservabilityFilterRulesConfigGroupsItemsLogic" + "title": "ObservabilityFilterRuleGroupLogic" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField": { + "ObservabilityFilterRuleGroupRulesItemsField": { "type": "string", "enum": [ "model", @@ -33982,9 +36051,9 @@ "prompt_tokens", "completion_tokens" ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + "title": "ObservabilityFilterRuleGroupRulesItemsField" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator": { + "ObservabilityFilterRuleGroupRulesItemsOperator": { "type": "string", "enum": [ "equals", @@ -34001,9 +36070,9 @@ "exists", "not_exists" ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + "title": "ObservabilityFilterRuleGroupRulesItemsOperator" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue": { + "ObservabilityFilterRuleGroupRulesItemsValue": { "oneOf": [ { "type": "string" @@ -34013,44 +36082,44 @@ "format": "double" } ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + "title": "ObservabilityFilterRuleGroupRulesItemsValue" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItems": { + "ObservabilityFilterRuleGroupRulesItems": { "type": "object", "properties": { "field": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroupRulesItemsField" }, "operator": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroupRulesItemsOperator" }, "value": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroupRulesItemsValue" } }, "required": [ "field", "operator" ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItems" + "title": "ObservabilityFilterRuleGroupRulesItems" }, - "ObservabilityFilterRulesConfigGroupsItems": { + "ObservabilityFilterRuleGroup": { "type": "object", "properties": { "logic": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsLogic" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroupLogic" }, "rules": { "type": "array", "items": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItems" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroupRulesItems" } } }, "required": [ "rules" ], - "title": "ObservabilityFilterRulesConfigGroupsItems" + "title": "ObservabilityFilterRuleGroup" }, "ObservabilityFilterRulesConfig": { "type": "object", @@ -34062,7 +36131,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItems" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroup" } } }, @@ -35951,6 +38020,26 @@ ], "title": "ListObservabilityDestinationsResponse" }, + "ObservabilityFilterRulesConfigNullable": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityFilterRuleGroup" + } + } + }, + "required": [ + "groups" + ], + "description": "Optional structured filter rules controlling which events are forwarded.", + "title": "ObservabilityFilterRulesConfigNullable" + }, "CreateObservabilityDestinationRequestType": { "type": "string", "enum": [ @@ -36001,7 +38090,7 @@ "description": "Whether this destination should be enabled immediately." }, "filter_rules": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigNullable" }, "name": { "type": "string", @@ -38846,101 +40935,6 @@ ], "title": "DeleteObservabilityDestinationResponse" }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic": { - "type": "string", - "enum": [ - "and", - "or" - ], - "default": "and", - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic" - }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField": { - "type": "string", - "enum": [ - "model", - "provider", - "session_id", - "user_id", - "api_key_name", - "finish_reason", - "input", - "output", - "total_cost", - "total_tokens", - "prompt_tokens", - "completion_tokens" - ], - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField" - }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator": { - "type": "string", - "enum": [ - "equals", - "not_equals", - "contains", - "not_contains", - "regex", - "starts_with", - "ends_with", - "gt", - "lt", - "gte", - "lte", - "exists", - "not_exists" - ], - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator" - }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - } - ], - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue" - }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems": { - "type": "object", - "properties": { - "field": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField" - }, - "operator": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator" - }, - "value": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue" - } - }, - "required": [ - "field", - "operator" - ], - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems" - }, - "UpdateObservabilityDestinationRequestFilterRulesGroupsItems": { - "type": "object", - "properties": { - "logic": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems" - } - } - }, - "required": [ - "rules" - ], - "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItems" - }, "UpdateObservabilityDestinationRequestFilterRules": { "type": "object", "properties": { @@ -38951,7 +40945,7 @@ "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItems" + "$ref": "#/components/schemas/ObservabilityFilterRuleGroup" } } }, @@ -41272,14 +43266,7 @@ "description": "ISO 3166-1 Alpha-2 country codes of the provider datacenter locations" }, "headquarters": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters", "description": "ISO 3166-1 Alpha-2 country code of the provider headquarters" }, "name": { @@ -41437,9 +43424,6 @@ }, { "$ref": "#/components/schemas/ProviderSortConfig" - }, - { - "description": "Any type" } ], "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", @@ -41456,14 +43440,7 @@ "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" }, "data_collection": { - "oneOf": [ - { - "$ref": "#/components/schemas/RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection", "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." }, "enforce_distillable_text": { @@ -41531,7 +43508,14 @@ "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." }, "sort": { - "$ref": "#/components/schemas/RerankPostRequestBodyContentApplicationJsonSchemaProviderSort", + "oneOf": [ + { + "$ref": "#/components/schemas/RerankPostRequestBodyContentApplicationJsonSchemaProviderSort" + }, + { + "type": "null" + } + ], "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." }, "zdr": { @@ -41986,6 +43970,12 @@ "description": "Any type" } }, + "deepgram": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "deepinfra": { "type": "object", "additionalProperties": { @@ -42034,6 +44024,12 @@ "description": "Any type" } }, + "fish-audio": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "friendli": { "type": "object", "additionalProperties": { @@ -42154,6 +44150,12 @@ "description": "Any type" } }, + "krea": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "lambda": { "type": "object", "additionalProperties": { @@ -42382,7 +44384,13 @@ "description": "Any type" } }, - "sakana-ai": { + "sail-research": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sakana": { "type": "object", "additionalProperties": { "description": "Any type" @@ -42454,6 +44462,12 @@ "description": "Any type" } }, + "tencent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "tenstorrent": { "type": "object", "additionalProperties": { @@ -43579,14 +45593,7 @@ "description": "Spending limit in USD for this interval" }, "reset_interval": { - "oneOf": [ - { - "$ref": "#/components/schemas/WorkspaceBudgetResetInterval" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/WorkspaceBudgetResetInterval", "description": "Interval at which spend resets. Null means a lifetime (one-time) budget." }, "updated_at": { @@ -43678,14 +45685,7 @@ "description": "Spending limit in USD for this interval" }, "reset_interval": { - "oneOf": [ - { - "$ref": "#/components/schemas/UpsertWorkspaceBudgetResponseDataResetInterval" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/UpsertWorkspaceBudgetResponseDataResetInterval", "description": "Interval at which spend resets. Null means a lifetime (one-time) budget." }, "updated_at": { @@ -43737,22 +45737,6 @@ ], "title": "DeleteWorkspaceBudgetResponse" }, - "BulkAddWorkspaceMembersRequest": { - "type": "object", - "properties": { - "user_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of user IDs to add to the workspace. Members are assigned the same role they hold in the organization." - } - }, - "required": [ - "user_ids" - ], - "title": "BulkAddWorkspaceMembersRequest" - }, "WorkspaceMemberRole": { "type": "string", "enum": [ @@ -43797,6 +45781,43 @@ ], "title": "WorkspaceMember" }, + "ListWorkspaceMembersResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkspaceMember" + }, + "description": "List of workspace members" + }, + "total_count": { + "type": "integer", + "description": "Total number of members in the workspace" + } + }, + "required": [ + "data", + "total_count" + ], + "title": "ListWorkspaceMembersResponse" + }, + "BulkAddWorkspaceMembersRequest": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of user IDs to add to the workspace. Members are assigned the same role they hold in the organization." + } + }, + "required": [ + "user_ids" + ], + "title": "BulkAddWorkspaceMembersRequest" + }, "BulkAddWorkspaceMembersResponse": { "type": "object", "properties": {