diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs
new file mode 100644
index 000000000..761616e3c
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs
@@ -0,0 +1,109 @@
+
+#nullable enable
+
+namespace OpenRouter
+{ ///
+ ///
+ ///
+ public sealed partial class AlphaExtractionsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
+ {
+ private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver();
+
+ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
+ internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver;
+
+
+ private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions();
+
+ ///
+ ///
+ ///
+ public static AlphaExtractionsSourceGenerationContext Default { get; } = new(DefaultOptions);
+
+ private AlphaExtractionsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options)
+ : base(options)
+ {
+ }
+
+ ///
+ protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions;
+
+ ///
+ public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
+ {
+ return Resolver.GetTypeInfo(type, Options);
+ }
+
+ ///
+ /// Adds this package's converters to .
+ ///
+ ///
+ /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against,
+ /// and a context resolves types from every package below it. Each package contributes only
+ /// what it owns and calls down the chain for the rest, so the family's converter table is
+ /// written once rather than copied into all of them.
+ ///
+ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
+ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options)
+ {
+ global::OpenRouter.SourceGenerationContext.AddConverters(options);
+ }
+
+ private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions()
+ {
+ var options = new global::System.Text.Json.JsonSerializerOptions
+ {
+ DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
+ TypeInfoResolver = Resolver,
+ };
+ AddConverters(options);
+
+ return options;
+ }
+
+ private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
+ {
+ private readonly object _gate = new();
+ private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1];
+
+ public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(
+ global::System.Type type,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ for (var index = 0; index < _resolvers.Length; index++)
+ {
+ var typeInfo = GetResolver(index).GetTypeInfo(type, options);
+ if (typeInfo is not null)
+ {
+ return typeInfo;
+ }
+ }
+
+ return null;
+ }
+
+ private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index)
+ {
+ var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]);
+ if (resolver is not null)
+ {
+ return resolver;
+ }
+
+ lock (_gate)
+ {
+ return _resolvers[index] ??= CreateResolver(index);
+ }
+ }
+
+ private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index)
+ {
+ return index switch
+ {
+ 0 => global::OpenRouter.SourceGenerationContext.TypeInfoResolver,
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)),
+ };
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs
new file mode 100644
index 000000000..4f1b77f58
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs
@@ -0,0 +1,952 @@
+
+#nullable enable
+
+namespace OpenRouter
+{
+ public partial class AlphaExtractionsClient
+ {
+
+ private static readonly global::OpenRouter.AutoSDKServer[] s_CreateServers = new global::OpenRouter.AutoSDKServer[]
+ { new global::OpenRouter.AutoSDKServer(
+ id: "https-openrouter-ai",
+ name: "openrouter.ai",
+ url: "https://openrouter.ai/",
+ description: ""),
+ };
+
+
+ private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateSecurityRequirement0 =
+ 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_CreateSecurityRequirements =
+ new global::OpenRouter.EndPointSecurityRequirement[]
+ { s_CreateSecurityRequirement0,
+ };
+ partial void PrepareCreateArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::OpenRouter.ExtractionsRequest request);
+ partial void PrepareCreateRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::OpenRouter.ExtractionsRequest request);
+ partial void ProcessCreateResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// 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 CreateAsync(
+
+ global::OpenRouter.ExtractionsRequest request,
+ global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// 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> CreateAsResponseAsync(
+
+ global::OpenRouter.ExtractionsRequest request,
+ global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSecurityRequirements,
+ operationName: "CreateAsync");
+
+ 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: "/api/alpha/extractions",
+ baseUri: ResolveBaseUri(
+ servers: s_CreateServers,
+ defaultBaseUrl: "https://openrouter.ai/"));
+ 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);
+ PrepareCreateRequest(
+ 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: "Create",
+ methodName: "CreateAsync",
+ pathTemplate: "\"/api/alpha/extractions\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
+ 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: "Create",
+ methodName: "CreateAsync",
+ pathTemplate: "\"/api/alpha/extractions\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
+ 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: "Create",
+ methodName: "CreateAsync",
+ pathTemplate: "\"/api/alpha/extractions\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
+ 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);
+ ProcessCreateResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "Create",
+ methodName: "CreateAsync",
+ pathTemplate: "\"/api/alpha/extractions\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
+ 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: "Create",
+ methodName: "CreateAsync",
+ pathTemplate: "\"/api/alpha/extractions\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
+ 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));
+ }
+ // Payment Required - Insufficient credits or quota to complete request
+ if ((int)__response.StatusCode == 402)
+ {
+ string? __content_402 = null;
+ global::System.Exception? __exception_402 = null;
+ global::OpenRouter.PaymentRequiredResponse? __value_402 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext);
+ }
+ else
+ {
+ __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_402 = __ex;
+ }
+
+
+ throw global::OpenRouter.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_402 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_402,
+ responseBody: __content_402,
+ responseObject: __value_402,
+ 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));
+ }
+ // 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)
+ {
+ 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));
+ }
+ // Bad Gateway - Provider/upstream API failure
+ if ((int)__response.StatusCode == 502)
+ {
+ string? __content_502 = null;
+ global::System.Exception? __exception_502 = null;
+ global::OpenRouter.BadGatewayResponse? __value_502 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext);
+ }
+ else
+ {
+ __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_502 = __ex;
+ }
+
+
+ throw global::OpenRouter.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_502 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_502,
+ responseBody: __content_502,
+ responseObject: __value_502,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Service Unavailable - Service temporarily unavailable
+ if ((int)__response.StatusCode == 503)
+ {
+ string? __content_503 = null;
+ global::System.Exception? __exception_503 = null;
+ global::OpenRouter.ServiceUnavailableResponse? __value_503 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext);
+ }
+ else
+ {
+ __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_503 = __ex;
+ }
+
+
+ throw global::OpenRouter.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_503,
+ responseBody: __content_503,
+ responseObject: __value_503,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Infrastructure Timeout - Provider request timed out at edge network
+ if ((int)__response.StatusCode == 524)
+ {
+ string? __content_524 = null;
+ global::System.Exception? __exception_524 = null;
+ global::OpenRouter.EdgeNetworkTimeoutResponse? __value_524 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext);
+ }
+ else
+ {
+ __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_524 = __ex;
+ }
+
+
+ throw global::OpenRouter.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_524 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_524,
+ responseBody: __content_524,
+ responseObject: __value_524,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Provider Overloaded - Provider is temporarily overloaded
+ if ((int)__response.StatusCode == 529)
+ {
+ string? __content_529 = null;
+ global::System.Exception? __exception_529 = null;
+ global::OpenRouter.ProviderOverloadedResponse? __value_529 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext);
+ }
+ else
+ {
+ __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_529 = __ex;
+ }
+
+
+ throw global::OpenRouter.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_529 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_529,
+ responseBody: __content_529,
+ responseObject: __value_529,
+ 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);
+ ProcessCreateResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::OpenRouter.ExtractionsResponse.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.ExtractionsResponse.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 an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400.
+ ///
+ ///
+ /// Map of field name to typed field spec.
+ ///
+ ///
+ ///
+ ///
+ /// ISO date that anchors dates written without a year.
+ ///
+ ///
+ /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234
+ ///
+ ///
+ /// The text to read from. May be empty only when the request carries image assets.
+ ///
+ ///
+ /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"}
+ ///
+ ///
+ /// 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 CreateAsync(
+ object fields,
+ string model,
+ string state,
+ global::System.Collections.Generic.Dictionary? assets = default,
+ global::OpenRouter.AllOf? provider = default,
+ string? referenceDate = default,
+ string? sessionId = default,
+ global::OpenRouter.TraceConfig? trace = default,
+ string? user = default,
+ global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::OpenRouter.ExtractionsRequest
+ {
+ Assets = assets,
+ Fields = fields,
+ Model = model,
+ Provider = provider,
+ ReferenceDate = referenceDate,
+ SessionId = sessionId,
+ State = state,
+ Trace = trace,
+ User = user,
+ };
+
+ return await CreateAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs
new file mode 100644
index 000000000..0c0da48ed
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs
@@ -0,0 +1,187 @@
+
+#nullable enable
+
+namespace OpenRouter
+{
+ ///
+ /// Alpha feature endpoints for Extractions requests
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class AlphaExtractionsClient : global::OpenRouter.IAlphaExtractionsClient, global::System.IDisposable
+ {
+ ///
+ ///
+ ///
+ public const string DefaultBaseUrl = "https://openrouter.ai/";
+
+ private bool _disposeHttpClient = true;
+
+ ///
+ public global::System.Net.Http.HttpClient HttpClient { get; }
+
+ ///
+ public System.Uri? BaseUri => HttpClient.BaseAddress;
+
+ ///
+ public global::System.Collections.Generic.List Authorizations { get; }
+
+ ///
+ public bool ReadResponseAsString { get; set; }
+#if DEBUG
+ = true;
+#endif
+
+ ///
+ public global::OpenRouter.AutoSDKClientOptions Options { get; }
+
+
+ ///
+ public global::System.Func CreateIdempotencyKey { get; set; } = () => global::System.Guid.NewGuid().ToString("D");
+
+
+ internal global::OpenRouter.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::OpenRouter.AutoSDKServerConfiguration();
+
+ internal global::System.Lazy? JsonSerializerContextProvider { get; set; }
+
+ ///
+ ///
+ ///
+ public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
+ {
+ get => JsonSerializerContextProvider?.Value ?? global::OpenRouter.AlphaExtractionsSourceGenerationContext.Default;
+ set => JsonSerializerContextProvider = new(() => value);
+ }
+
+
+ ///
+ /// Creates a new instance of the AlphaExtractionsClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ /// The HttpClient instance. If not provided, a new one will be created.
+ /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
+ /// The authorizations to use for the requests.
+ /// Dispose the HttpClient when the instance is disposed. True by default.
+ public AlphaExtractionsClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null,
+ global::System.Collections.Generic.List? authorizations = null,
+ bool disposeHttpClient = true) : this(
+ httpClient,
+ baseUri,
+ authorizations,
+ options: null,
+ disposeHttpClient: disposeHttpClient)
+ {
+ }
+
+ ///
+ /// Creates a new instance of the AlphaExtractionsClient with explicit options but no base URL override.
+ /// Skips passing baseUri so the default base URL from the OpenAPI spec applies.
+ ///
+ /// The HttpClient instance. If not provided, a new one will be created.
+ /// The authorizations to use for the requests.
+ /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
+ /// Dispose the HttpClient when the instance is disposed. True by default.
+ public AlphaExtractionsClient(
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Collections.Generic.List? authorizations,
+ global::OpenRouter.AutoSDKClientOptions? options,
+ bool disposeHttpClient = true) : this(
+ httpClient,
+ baseUri: null,
+ authorizations,
+ options,
+ disposeHttpClient: disposeHttpClient)
+ {
+ }
+
+ ///
+ /// Creates a new instance of the AlphaExtractionsClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ /// The HttpClient instance. If not provided, a new one will be created.
+ /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.
+ /// The authorizations to use for the requests.
+ /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
+ /// Dispose the HttpClient when the instance is disposed. True by default.
+ public AlphaExtractionsClient(
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::OpenRouter.AutoSDKClientOptions? options,
+ bool disposeHttpClient = true)
+ {
+
+ HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ if (baseUri is not null)
+ {
+ HttpClient.BaseAddress ??= baseUri;
+ }
+ Authorizations = authorizations ?? new global::System.Collections.Generic.List();
+ Options = options ?? new global::OpenRouter.AutoSDKClientOptions();
+ _disposeHttpClient = disposeHttpClient;
+
+ AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress;
+
+ Initialized(HttpClient);
+ }
+
+ ///
+ public void Dispose()
+ {
+ if (_disposeHttpClient)
+ {
+ HttpClient.Dispose();
+ }
+ }
+
+ partial void Initialized(
+ global::System.Net.Http.HttpClient client);
+ partial void PrepareArguments(
+ global::System.Net.Http.HttpClient client);
+ partial void PrepareRequest(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpRequestMessage request);
+ partial void ProcessResponse(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpResponseMessage response);
+ partial void ProcessResponseContent(
+ global::System.Net.Http.HttpClient client,
+ global::System.Net.Http.HttpResponseMessage response,
+ ref string content);
+
+
+ private global::System.Uri? ResolveBaseUri(
+ global::OpenRouter.AutoSDKServer[] servers,
+ string defaultBaseUrl)
+ {
+ if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri)
+ {
+ return explicitBaseUri;
+ }
+
+ if (AutoSDKServerConfiguration.SelectedServer is global::OpenRouter.AutoSDKServer selectedServer)
+ {
+ foreach (var server in servers)
+ {
+ if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal))
+ {
+ return server.Uri;
+ }
+ }
+ }
+
+ if (servers.Length > 0)
+ {
+ return servers[0].Uri;
+ }
+
+ return string.IsNullOrWhiteSpace(defaultBaseUrl)
+ ? HttpClient.BaseAddress
+ : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs
index 710c39e77..005ded82f 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs
@@ -650,7 +650,7 @@ partial void ProcessCreateResponseContent(
/// Example: My New API Key
///
///
- /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs
index 75f0cd8cb..172e3d9d3 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs
@@ -369,6 +369,43 @@ partial void ProcessDeleteResponseContent(
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)
{
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs
index 8c1390133..2c5a4c346 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs
@@ -369,6 +369,43 @@ partial void ProcessGetResponseContent(
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)
{
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs
index 5ffbab306..19445991c 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs
@@ -64,7 +64,7 @@ partial void ProcessListResponseContent(
/// Example: 0
///
///
- /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -106,7 +106,7 @@ partial void ProcessListResponseContent(
/// Example: 0
///
///
- /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -457,6 +457,43 @@ partial void ProcessListResponseContent(
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)
{
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs
new file mode 100644
index 000000000..198fbd707
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs
@@ -0,0 +1,76 @@
+#nullable enable
+
+namespace OpenRouter
+{
+ public partial interface IAlphaExtractionsClient
+ {
+ ///
+ /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// 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 CreateAsync(
+
+ global::OpenRouter.ExtractionsRequest request,
+ global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// 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> CreateAsResponseAsync(
+
+ global::OpenRouter.ExtractionsRequest request,
+ global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.
+ ///
+ ///
+ /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400.
+ ///
+ ///
+ /// Map of field name to typed field spec.
+ ///
+ ///
+ ///
+ ///
+ /// ISO date that anchors dates written without a year.
+ ///
+ ///
+ /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234
+ ///
+ ///
+ /// The text to read from. May be empty only when the request carries image assets.
+ ///
+ ///
+ /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"}
+ ///
+ ///
+ /// 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 CreateAsync(
+ object fields,
+ string model,
+ string state,
+ global::System.Collections.Generic.Dictionary? assets = default,
+ global::OpenRouter.AllOf? provider = default,
+ string? referenceDate = default,
+ string? sessionId = default,
+ global::OpenRouter.TraceConfig? trace = default,
+ string? user = 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.IAlphaExtractionsClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs
new file mode 100644
index 000000000..8843f340d
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs
@@ -0,0 +1,53 @@
+
+#nullable enable
+
+namespace OpenRouter
+{
+ ///
+ /// Alpha feature endpoints for Extractions requests
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public partial interface IAlphaExtractionsClient : global::System.IDisposable
+ {
+ ///
+ /// The HttpClient instance.
+ ///
+ public global::System.Net.Http.HttpClient HttpClient { get; }
+
+ ///
+ /// The base URL for the API.
+ ///
+ public System.Uri? BaseUri { get; }
+
+ ///
+ /// The authorizations to use for the requests.
+ ///
+ public global::System.Collections.Generic.List Authorizations { get; }
+
+ ///
+ /// Gets or sets a value indicating whether the response content should be read as a string.
+ /// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
+ ///
+ public bool ReadResponseAsString { get; set; }
+ ///
+ /// Client-wide request defaults such as headers, query parameters, retries, and timeout.
+ ///
+ public global::OpenRouter.AutoSDKClientOptions Options { get; }
+
+ ///
+ /// Creates idempotency keys for generated idempotent requests when the caller does not provide one.
+ ///
+ public global::System.Func CreateIdempotencyKey { get; set; }
+
+ ///
+ ///
+ ///
+ global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs
index ba98fb929..666e386b3 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs
@@ -62,7 +62,7 @@ public partial interface IApiKeysClient
/// Example: My New API Key
///
///
- /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs
index 57a314105..5c6c46388 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs
@@ -21,7 +21,7 @@ public partial interface IApiKeysClient
/// Example: 0
///
///
- /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -51,7 +51,7 @@ public partial interface IApiKeysClient
/// Example: 0
///
///
- /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs
index f37aa6a44..52f3d3274 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs
@@ -54,7 +54,7 @@ public partial interface IImagesClient
/// Example: 1
///
///
- /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100
///
///
@@ -85,7 +85,7 @@ public partial interface IImagesClient
/// Example: session-1234
///
///
- /// 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.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K
///
///
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs
index 802369430..b4446073b 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs
@@ -41,7 +41,7 @@ public partial interface IImagesClient
/// Example: 1
///
///
- /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100
///
///
@@ -72,7 +72,7 @@ public partial interface IImagesClient
/// Example: session-1234
///
///
- /// 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.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K
///
///
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs
index 904849d3b..d208c1a25 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs
@@ -27,7 +27,7 @@ public partial interface IModelsClient
/// Example: newest
///
///
- /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -64,7 +64,7 @@ public partial interface IModelsClient
/// Example: newest
///
///
- /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs
index c4e69762b..24fb71fd8 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs
@@ -75,6 +75,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable
///
public AlphaDecisionsClient AlphaDecisions { get; }
+ ///
+ /// Alpha feature endpoints for Extractions requests.
+ ///
+ public AlphaExtractionsClient AlphaExtractions { get; }
+
///
/// Analytics and usage endpoints.
///
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs
index 517eff0e8..83cc2731e 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs
@@ -50,6 +50,10 @@ public partial interface IPresetsClient
/// URL-safe slug identifying the preset. Created if it does not exist.
/// Example: my-preset
///
+ ///
+ /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"}
+ ///
///
///
/// 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.
@@ -165,6 +169,7 @@ public partial interface IPresetsClient
///
global::System.Threading.Tasks.Task CreatePresetsResponsesAsync(
string slug,
+ global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default,
bool? background = default,
global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default,
global::OpenRouter.ChatDebugOptions? debug = default,
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs
index 7a18e414c..9366a4c70 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs
@@ -50,6 +50,10 @@ public partial interface IResponsesClient
/// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled
///
+ ///
+ /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"}
+ ///
///
///
/// 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.
@@ -162,6 +166,7 @@ public partial interface IResponsesClient
///
global::System.Threading.Tasks.Task SendAsync(
global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default,
+ global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default,
bool? background = default,
global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default,
global::OpenRouter.ChatDebugOptions? debug = default,
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs
index 010c18fae..cb72e0cc1 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs
@@ -32,6 +32,10 @@ public partial interface IResponsesClient
/// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled
///
+ ///
+ /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"}
+ ///
///
///
/// 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.
@@ -144,6 +148,7 @@ public partial interface IResponsesClient
///
global::System.Collections.Generic.IAsyncEnumerable SendAsStreamAsync(
global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default,
+ global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default,
bool? background = default,
global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default,
global::OpenRouter.ChatDebugOptions? debug = default,
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs
index c9365b39f..cb7086c44 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs
@@ -888,7 +888,7 @@ partial void ProcessGenerateResponseContent(
/// Example: 1
///
///
- /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100
///
///
@@ -919,7 +919,7 @@ partial void ProcessGenerateResponseContent(
/// Example: session-1234
///
///
- /// 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.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K
///
///
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs
index da6039e98..3d0410e75 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs
@@ -424,7 +424,7 @@ partial void ProcessGenerateAsStreamResponse(
/// Example: 1
///
///
- /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100
///
///
@@ -455,7 +455,7 @@ partial void ProcessGenerateAsStreamResponse(
/// Example: session-1234
///
///
- /// 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.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K
///
///
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs
new file mode 100644
index 000000000..8b4deb5f0
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs
@@ -0,0 +1,177 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public class Answers2JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.Answers2 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.ExtractionsResponseAnswersDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator)}");
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+
+ global::OpenRouter.ExtractionTextAnswer? text = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Text)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTextAnswer)}");
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionNumberAnswer? number = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Number)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionNumberAnswer)}");
+ number = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDateAnswer? date = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Date)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDateAnswer)}");
+ date = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionTimeAnswer? time = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Time)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTimeAnswer)}");
+ time = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDatetimeAnswer? datetime = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Datetime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDatetimeAnswer)}");
+ datetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDurationAnswer? duration = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Duration)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDurationAnswer)}");
+ duration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionListAnswer? list = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.List)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionListAnswer)}");
+ list = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionEstimateAnswer? estimate = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Estimate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionEstimateAnswer)}");
+ estimate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionForecastAnswer? forecast = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Forecast)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionForecastAnswer)}");
+ forecast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ var __value = new global::OpenRouter.Answers2(
+ discriminator?.Type,
+ text,
+
+ number,
+
+ date,
+
+ time,
+
+ datetime,
+
+ duration,
+
+ list,
+
+ estimate,
+
+ forecast
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.Answers2 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.IsText)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTextAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo);
+ }
+ else if (value.IsNumber)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionNumberAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNumber(), typeInfo);
+ }
+ else if (value.IsDate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDateAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDate(), typeInfo);
+ }
+ else if (value.IsTime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTimeAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTime(), typeInfo);
+ }
+ else if (value.IsDatetime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDatetimeAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDatetime(), typeInfo);
+ }
+ else if (value.IsDuration)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDurationAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDuration(), typeInfo);
+ }
+ else if (value.IsList)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionListAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickList(), typeInfo);
+ }
+ else if (value.IsEstimate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionEstimateAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEstimate(), typeInfo);
+ }
+ else if (value.IsForecast)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionForecastAnswer).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickForecast(), typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs
new file mode 100644
index 000000000..907c3d43a
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionAssetFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionAssetFormat 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.ExtractionAssetFormatExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionAssetFormat);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionAssetFormat value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionAssetFormatExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs
new file mode 100644
index 000000000..c65b0954f
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionAssetFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionAssetFormat? 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.ExtractionAssetFormatExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionAssetFormat?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionAssetFormat? 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.ExtractionAssetFormatExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs
new file mode 100644
index 000000000..49dd651df
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionAssetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionAssetType 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.ExtractionAssetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionAssetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionAssetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionAssetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs
new file mode 100644
index 000000000..de0c40d02
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionAssetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionAssetType? 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.ExtractionAssetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionAssetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionAssetType? 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.ExtractionAssetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs
new file mode 100644
index 000000000..e6ee90e33
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateAnswerSource 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.ExtractionDateAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDateAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..843c62737
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateAnswerSource? 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.ExtractionDateAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateAnswerSource? 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.ExtractionDateAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs
new file mode 100644
index 000000000..942f5bef6
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateAnswerType 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.ExtractionDateAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDateAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDateAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..b36508595
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateAnswerType? 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.ExtractionDateAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDateAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateAnswerType? 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.ExtractionDateAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs
new file mode 100644
index 000000000..5c8c8cb38
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateFieldType 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.ExtractionDateFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDateFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDateFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs
new file mode 100644
index 000000000..7dd5d0c38
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDateFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDateFieldType? 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.ExtractionDateFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDateFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDateFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDateFieldType? 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.ExtractionDateFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs
new file mode 100644
index 000000000..76e749fa1
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeAnswerSource 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.ExtractionDatetimeAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..fd0605403
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeAnswerSource? 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.ExtractionDatetimeAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeAnswerSource? 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.ExtractionDatetimeAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs
new file mode 100644
index 000000000..17a7f284b
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeAnswerType 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.ExtractionDatetimeAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDatetimeAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..1e7e35ed5
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeAnswerType? 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.ExtractionDatetimeAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDatetimeAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeAnswerType? 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.ExtractionDatetimeAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs
new file mode 100644
index 000000000..68a2e5870
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeFieldType 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.ExtractionDatetimeFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDatetimeFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs
new file mode 100644
index 000000000..99cbfbe00
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDatetimeFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDatetimeFieldType? 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.ExtractionDatetimeFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDatetimeFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDatetimeFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDatetimeFieldType? 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.ExtractionDatetimeFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs
new file mode 100644
index 000000000..c56b55874
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationAnswerSource 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.ExtractionDurationAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDurationAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..6245bbce7
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationAnswerSource? 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.ExtractionDurationAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationAnswerSource? 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.ExtractionDurationAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs
new file mode 100644
index 000000000..73e53ce29
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationAnswerType 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.ExtractionDurationAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDurationAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDurationAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..c2b52a471
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationAnswerType? 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.ExtractionDurationAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDurationAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationAnswerType? 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.ExtractionDurationAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs
new file mode 100644
index 000000000..7e85d0795
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationFieldType 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.ExtractionDurationFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDurationFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionDurationFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs
new file mode 100644
index 000000000..bdc0b6c46
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionDurationFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionDurationFieldType? 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.ExtractionDurationFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionDurationFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionDurationFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionDurationFieldType? 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.ExtractionDurationFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs
new file mode 100644
index 000000000..abaab3e04
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateAnswerSource 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.ExtractionEstimateAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..91fe47311
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateAnswerSource? 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.ExtractionEstimateAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateAnswerSource? 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.ExtractionEstimateAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs
new file mode 100644
index 000000000..ec736b551
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateAnswerType 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.ExtractionEstimateAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..090db4848
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateAnswerType? 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.ExtractionEstimateAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateAnswerType? 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.ExtractionEstimateAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs
new file mode 100644
index 000000000..db5edb336
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldScaleJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldScale 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.ExtractionEstimateFieldScaleExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldScale);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldScale value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldScaleExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs
new file mode 100644
index 000000000..7857b3836
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldScaleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldScale? 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.ExtractionEstimateFieldScaleExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldScale?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldScale? 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.ExtractionEstimateFieldScaleExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs
new file mode 100644
index 000000000..621cb6eb4
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldStepVariant2JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldStepVariant2 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.ExtractionEstimateFieldStepVariant2Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldStepVariant2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldStepVariant2);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldStepVariant2 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldStepVariant2Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs
new file mode 100644
index 000000000..7e2a1a98f
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldStepVariant2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldStepVariant2? 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.ExtractionEstimateFieldStepVariant2Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldStepVariant2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldStepVariant2?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldStepVariant2? 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.ExtractionEstimateFieldStepVariant2Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs
new file mode 100644
index 000000000..907aa4e3a
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldStepVariant3JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldStepVariant3 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.ExtractionEstimateFieldStepVariant3Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldStepVariant3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldStepVariant3);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldStepVariant3 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldStepVariant3Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs
new file mode 100644
index 000000000..92d816461
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldStepVariant3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldStepVariant3? 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.ExtractionEstimateFieldStepVariant3Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldStepVariant3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldStepVariant3?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldStepVariant3? 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.ExtractionEstimateFieldStepVariant3Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs
new file mode 100644
index 000000000..d8ae3bc77
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldType 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.ExtractionEstimateFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs
new file mode 100644
index 000000000..baf55ba89
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionEstimateFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionEstimateFieldType? 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.ExtractionEstimateFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionEstimateFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionEstimateFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionEstimateFieldType? 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.ExtractionEstimateFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs
new file mode 100644
index 000000000..bec9390ed
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastAnswerSource 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.ExtractionForecastAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..55e5cb97d
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastAnswerSource? 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.ExtractionForecastAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastAnswerSource? 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.ExtractionForecastAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs
new file mode 100644
index 000000000..8a3dfb076
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastAnswerType 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.ExtractionForecastAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..475c07132
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastAnswerType? 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.ExtractionForecastAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastAnswerType? 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.ExtractionForecastAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs
new file mode 100644
index 000000000..ae5b8a6d3
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldIntervalJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldInterval 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.ExtractionForecastFieldIntervalExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldInterval);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldInterval value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldIntervalExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs
new file mode 100644
index 000000000..3c8eb177e
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldIntervalNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldInterval? 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.ExtractionForecastFieldIntervalExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldInterval?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldInterval? 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.ExtractionForecastFieldIntervalExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs
new file mode 100644
index 000000000..b3555c4c9
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldScaleJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldScale 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.ExtractionForecastFieldScaleExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldScale);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldScale value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldScaleExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs
new file mode 100644
index 000000000..584e9821f
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldScaleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldScale? 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.ExtractionForecastFieldScaleExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldScale?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldScale? 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.ExtractionForecastFieldScaleExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs
new file mode 100644
index 000000000..34adc5ff7
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldStepVariant2JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldStepVariant2 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.ExtractionForecastFieldStepVariant2Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldStepVariant2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldStepVariant2);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldStepVariant2 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldStepVariant2Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs
new file mode 100644
index 000000000..9c6f735b0
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldStepVariant2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldStepVariant2? 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.ExtractionForecastFieldStepVariant2Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldStepVariant2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldStepVariant2?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldStepVariant2? 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.ExtractionForecastFieldStepVariant2Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs
new file mode 100644
index 000000000..d629c992a
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldStepVariant3JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldStepVariant3 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.ExtractionForecastFieldStepVariant3Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldStepVariant3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldStepVariant3);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldStepVariant3 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldStepVariant3Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs
new file mode 100644
index 000000000..74764ba8c
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldStepVariant3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldStepVariant3? 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.ExtractionForecastFieldStepVariant3Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldStepVariant3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldStepVariant3?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldStepVariant3? 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.ExtractionForecastFieldStepVariant3Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs
new file mode 100644
index 000000000..10433d330
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldType 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.ExtractionForecastFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs
new file mode 100644
index 000000000..bf48e1206
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionForecastFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionForecastFieldType? 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.ExtractionForecastFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionForecastFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionForecastFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionForecastFieldType? 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.ExtractionForecastFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs
new file mode 100644
index 000000000..45b2b1601
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListAnswerSource 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.ExtractionListAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionListAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..93a5c13bd
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListAnswerSource? 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.ExtractionListAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListAnswerSource? 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.ExtractionListAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs
new file mode 100644
index 000000000..452d9b0bf
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListAnswerType 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.ExtractionListAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionListAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionListAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..5c2842586
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListAnswerType? 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.ExtractionListAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionListAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListAnswerType? 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.ExtractionListAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs
new file mode 100644
index 000000000..556d68ea4
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListFieldItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListFieldItems 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.ExtractionListFieldItemsExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListFieldItems);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListFieldItems value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionListFieldItemsExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs
new file mode 100644
index 000000000..4f7e4ea77
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListFieldItemsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListFieldItems? 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.ExtractionListFieldItemsExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListFieldItems?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListFieldItems? 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.ExtractionListFieldItemsExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs
new file mode 100644
index 000000000..368679c7d
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListFieldType 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.ExtractionListFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionListFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionListFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs
new file mode 100644
index 000000000..dbd0b91d3
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionListFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionListFieldType? 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.ExtractionListFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionListFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionListFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionListFieldType? 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.ExtractionListFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs
new file mode 100644
index 000000000..187043441
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberAnswerSource 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.ExtractionNumberAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionNumberAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..2afafcc4b
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberAnswerSource? 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.ExtractionNumberAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberAnswerSource? 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.ExtractionNumberAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs
new file mode 100644
index 000000000..c9c002a8a
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberAnswerType 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.ExtractionNumberAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionNumberAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionNumberAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..e1fb8c914
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberAnswerType? 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.ExtractionNumberAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionNumberAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberAnswerType? 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.ExtractionNumberAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs
new file mode 100644
index 000000000..b0d6f1689
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberFieldType 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.ExtractionNumberFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionNumberFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionNumberFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs
new file mode 100644
index 000000000..84537c5ce
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionNumberFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionNumberFieldType? 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.ExtractionNumberFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionNumberFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionNumberFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionNumberFieldType? 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.ExtractionNumberFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs
new file mode 100644
index 000000000..539ab1669
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextAnswerSource 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.ExtractionTextAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTextAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..ae089b369
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextAnswerSource? 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.ExtractionTextAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextAnswerSource? 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.ExtractionTextAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs
new file mode 100644
index 000000000..83fd54893
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextAnswerType 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.ExtractionTextAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTextAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTextAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..250afd6ed
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextAnswerType? 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.ExtractionTextAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTextAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextAnswerType? 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.ExtractionTextAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs
new file mode 100644
index 000000000..a0afb7426
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextFieldType 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.ExtractionTextFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTextFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTextFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs
new file mode 100644
index 000000000..1495edf65
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTextFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTextFieldType? 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.ExtractionTextFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTextFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTextFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTextFieldType? 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.ExtractionTextFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs
new file mode 100644
index 000000000..52c9898e4
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeAnswerSource 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.ExtractionTimeAnswerSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeAnswerSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeAnswerSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTimeAnswerSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs
new file mode 100644
index 000000000..5fddbf141
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeAnswerSource? 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.ExtractionTimeAnswerSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeAnswerSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeAnswerSource? 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.ExtractionTimeAnswerSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs
new file mode 100644
index 000000000..49bdc8b82
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeAnswerType 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.ExtractionTimeAnswerTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTimeAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeAnswerType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeAnswerType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTimeAnswerTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs
new file mode 100644
index 000000000..9a577b24f
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeAnswerType? 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.ExtractionTimeAnswerTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTimeAnswerType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeAnswerType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeAnswerType? 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.ExtractionTimeAnswerTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs
new file mode 100644
index 000000000..4e860833b
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeFieldType 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.ExtractionTimeFieldTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTimeFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeFieldType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeFieldType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionTimeFieldTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs
new file mode 100644
index 000000000..bed6da9a2
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionTimeFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionTimeFieldType? 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.ExtractionTimeFieldTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionTimeFieldType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionTimeFieldType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionTimeFieldType? 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.ExtractionTimeFieldTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs
new file mode 100644
index 000000000..62f81870e
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionsRequestFieldsDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType 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.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs
new file mode 100644
index 000000000..4c7bfdf3e
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionsRequestFieldsDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? 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.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? 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.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs
new file mode 100644
index 000000000..345f15b61
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionsResponseAnswersDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType 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.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs
new file mode 100644
index 000000000..75be452a6
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ExtractionsResponseAnswersDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? 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.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? 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.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs
new file mode 100644
index 000000000..434da78db
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs
@@ -0,0 +1,177 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public class FieldsJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.Fields 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.ExtractionsRequestFieldsDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator)}");
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+
+ global::OpenRouter.ExtractionTextField? text = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Text)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTextField)}");
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionNumberField? number = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Number)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionNumberField)}");
+ number = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDateField? date = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Date)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDateField)}");
+ date = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionTimeField? time = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Time)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTimeField)}");
+ time = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDatetimeField? datetime = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Datetime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDatetimeField)}");
+ datetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionDurationField? duration = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Duration)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDurationField)}");
+ duration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionListField? list = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.List)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionListField)}");
+ list = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionEstimateField? estimate = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Estimate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionEstimateField)}");
+ estimate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::OpenRouter.ExtractionForecastField? forecast = default;
+ if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Forecast)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionForecastField)}");
+ forecast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ var __value = new global::OpenRouter.Fields(
+ discriminator?.Type,
+ text,
+
+ number,
+
+ date,
+
+ time,
+
+ datetime,
+
+ duration,
+
+ list,
+
+ estimate,
+
+ forecast
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.Fields 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.IsText)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTextField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo);
+ }
+ else if (value.IsNumber)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionNumberField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNumber(), typeInfo);
+ }
+ else if (value.IsDate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDateField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDate(), typeInfo);
+ }
+ else if (value.IsTime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTimeField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTime(), typeInfo);
+ }
+ else if (value.IsDatetime)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDatetimeField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDatetime(), typeInfo);
+ }
+ else if (value.IsDuration)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDurationField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDuration(), typeInfo);
+ }
+ else if (value.IsList)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionListField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickList(), typeInfo);
+ }
+ else if (value.IsEstimate)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionEstimateField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEstimate(), typeInfo);
+ }
+ else if (value.IsForecast)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionForecastField).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickForecast(), typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs
new file mode 100644
index 000000000..136f12523
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class OpenResponsesResultVariant2AccessProgramsCyberJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber 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.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs
new file mode 100644
index 000000000..6d5177492
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class OpenResponsesResultVariant2AccessProgramsCyberNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber? 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.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber? 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.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs
new file mode 100644
index 000000000..a8f5a0c01
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs
@@ -0,0 +1,116 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public class PublicZdrEndpointJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.PublicZdrEndpoint 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();
+
+ global::OpenRouter.PublicEndpoint? publicEndpoint = default;
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicEndpoint), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicEndpoint).Name}");
+ publicEndpoint = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
+ {
+ // Legacy enum converters signal an incompatible JSON token with this exception.
+ }
+
+ global::OpenRouter.PublicZdrEndpointVariant2? publicZdrEndpointVariant2 = default;
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicZdrEndpointVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicZdrEndpointVariant2).Name}");
+ publicZdrEndpointVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
+ {
+ // Legacy enum converters signal an incompatible JSON token with this exception.
+ }
+ var __value = new global::OpenRouter.PublicZdrEndpoint(
+ publicEndpoint,
+
+ publicZdrEndpointVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.PublicZdrEndpoint 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.");
+
+
+ writer.WriteStartObject();
+ var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal);
+ if (value.IsPublicEndpoint)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicEndpoint), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicEndpoint).Name}");
+ var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPublicEndpoint(), typeInfo);
+ if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
+ {
+ throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
+ }
+
+ foreach (var __property in __element0.EnumerateObject())
+ {
+ if (__writtenPropertyNames.Add(__property.Name))
+ {
+ __property.WriteTo(writer);
+ }
+ }
+ }
+ if (value.IsPublicZdrEndpointVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicZdrEndpointVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicZdrEndpointVariant2).Name}");
+ var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPublicZdrEndpointVariant2(), typeInfo);
+ if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
+ {
+ throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
+ }
+
+ foreach (var __property in __element1.EnumerateObject())
+ {
+ if (__writtenPropertyNames.Add(__property.Name))
+ {
+ __property.WriteTo(writer);
+ }
+ }
+ }
+ writer.WriteEndObject();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs
new file mode 100644
index 000000000..d0beb27e2
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs
@@ -0,0 +1,48 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ResponsesRequestAccessProgramsCyberJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ResponsesRequestAccessProgramsCyber 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.ResponsesRequestAccessProgramsCyberExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ResponsesRequestAccessProgramsCyber);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ResponsesRequestAccessProgramsCyber value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::OpenRouter.ResponsesRequestAccessProgramsCyberExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs
new file mode 100644
index 000000000..a21846454
--- /dev/null
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs
@@ -0,0 +1,55 @@
+#nullable enable
+
+namespace OpenRouter.JsonConverters
+{
+ ///
+ public sealed class ResponsesRequestAccessProgramsCyberNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::OpenRouter.ResponsesRequestAccessProgramsCyber? 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.ResponsesRequestAccessProgramsCyberExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::OpenRouter.ResponsesRequestAccessProgramsCyber?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::OpenRouter.ResponsesRequestAccessProgramsCyber? 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.ResponsesRequestAccessProgramsCyberExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs
index 8d895a5c2..a6a912ff7 100644
--- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs
+++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs
@@ -1310,6 +1310,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventDebugTimings))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventDebugTimingsEvent), TypeInfoPropertyName = "DebugEventDebugTimingsEvent2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventType), TypeInfoPropertyName = "DebugEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Decisions))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfPercentileStatsObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileStats))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswer))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswerBox))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswerType), TypeInfoPropertyName = "DecisionsBoxAnswerType2")]
@@ -1336,7 +1339,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsRequestQuestionsDiscriminator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsRequestQuestionsDiscriminatorType), TypeInfoPropertyName = "DecisionsRequestQuestionsDiscriminatorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers), TypeInfoPropertyName = "Answers2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers), TypeInfoPropertyName = "Answers2_3")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsScoreAnswer))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponseAnswersDiscriminator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponseAnswersDiscriminatorType), TypeInfoPropertyName = "DecisionsResponseAnswersDiscriminatorType2")]
@@ -1381,6 +1384,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType), TypeInfoPropertyName = "EasyInputMessageType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EdgeNetworkTimeoutResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EdgeNetworkTimeoutResponseErrorData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Embeddings))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointInfo))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointsMetadata))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
@@ -1388,6 +1392,79 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ErrorEvent), TypeInfoPropertyName = "ErrorEvent2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExternalUser))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExternalUserResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAsset))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetFormat), TypeInfoPropertyName = "ExtractionAssetFormat2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetType), TypeInfoPropertyName = "ExtractionAssetType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerSource), TypeInfoPropertyName = "ExtractionDateAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerType), TypeInfoPropertyName = "ExtractionDateAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateFieldType), TypeInfoPropertyName = "ExtractionDateFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerSource), TypeInfoPropertyName = "ExtractionDatetimeAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerType), TypeInfoPropertyName = "ExtractionDatetimeAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeFieldType), TypeInfoPropertyName = "ExtractionDatetimeFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerSource), TypeInfoPropertyName = "ExtractionDurationAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerType), TypeInfoPropertyName = "ExtractionDurationAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationFieldType), TypeInfoPropertyName = "ExtractionDurationFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleString2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerSource), TypeInfoPropertyName = "ExtractionEstimateAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerType), TypeInfoPropertyName = "ExtractionEstimateAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldScale), TypeInfoPropertyName = "ExtractionEstimateFieldScale2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleExtractionEstimateFieldStepVariant2ExtractionEstimateFieldStepVariant32")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2), TypeInfoPropertyName = "ExtractionEstimateFieldStepVariant22")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3), TypeInfoPropertyName = "ExtractionEstimateFieldStepVariant32")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldType), TypeInfoPropertyName = "ExtractionEstimateFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerSource), TypeInfoPropertyName = "ExtractionForecastAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastStep))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerType), TypeInfoPropertyName = "ExtractionForecastAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldInterval), TypeInfoPropertyName = "ExtractionForecastFieldInterval2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldScale), TypeInfoPropertyName = "ExtractionForecastFieldScale2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleExtractionForecastFieldStepVariant2ExtractionForecastFieldStepVariant32")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2), TypeInfoPropertyName = "ExtractionForecastFieldStepVariant22")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3), TypeInfoPropertyName = "ExtractionForecastFieldStepVariant32")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldType), TypeInfoPropertyName = "ExtractionForecastFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerSource), TypeInfoPropertyName = "ExtractionListAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerType), TypeInfoPropertyName = "ExtractionListAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldItems), TypeInfoPropertyName = "ExtractionListFieldItems2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldType), TypeInfoPropertyName = "ExtractionListFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerSource), TypeInfoPropertyName = "ExtractionNumberAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerType), TypeInfoPropertyName = "ExtractionNumberAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberFieldType), TypeInfoPropertyName = "ExtractionNumberFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Fields), TypeInfoPropertyName = "Fields2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeField))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType), TypeInfoPropertyName = "ExtractionsRequestFieldsDiscriminatorType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers2), TypeInfoPropertyName = "Answers22")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswer))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType), TypeInfoPropertyName = "ExtractionsResponseAnswersDiscriminatorType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsUsage))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerSource), TypeInfoPropertyName = "ExtractionTextAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerType), TypeInfoPropertyName = "ExtractionTextAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextFieldType), TypeInfoPropertyName = "ExtractionTextFieldType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerSource), TypeInfoPropertyName = "ExtractionTimeAnswerSource2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerType), TypeInfoPropertyName = "ExtractionTimeAnswerType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeFieldType), TypeInfoPropertyName = "ExtractionTimeFieldType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailableToolCallStatus), TypeInfoPropertyName = "FailableToolCallStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailedEvent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailedEventType), TypeInfoPropertyName = "FailedEventType2")]
@@ -1458,83 +1535,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionAnalysisResultUniqueInsight))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisCompletedEvent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisCompletedEventType), TypeInfoPropertyName = "FusionCallAnalysisCompletedEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEventType), TypeInfoPropertyName = "FusionCallAnalysisInProgressEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEventType), TypeInfoPropertyName = "FusionCallCompletedEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEventType), TypeInfoPropertyName = "FusionCallInProgressEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEventType), TypeInfoPropertyName = "FusionCallPanelAddedEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEventType), TypeInfoPropertyName = "FusionCallPanelCompletedEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEventType), TypeInfoPropertyName = "FusionCallPanelDeltaEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEventType), TypeInfoPropertyName = "FusionCallPanelFailedEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEventType), TypeInfoPropertyName = "FusionCallPanelReasoningDeltaEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginId), TypeInfoPropertyName = "FusionPluginId2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginPreset), TypeInfoPropertyName = "FusionPluginPreset2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginTool))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?>, object>), TypeInfoPropertyName = "AnyOfStringDoubleBooleanIListAnyOfStringDoubleBooleanObject2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?>))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolOpenRouterType), TypeInfoPropertyName = "FusionServerToolOpenRouterType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoning))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoningEffort), TypeInfoPropertyName = "FusionServerToolConfigReasoningEffort2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigTool))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionSource))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentError))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfGenerationContentDataInputVariant1GenerationContentDataInputVariant22")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant1))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentErrorAttempt))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))]
- [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::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetGuardrailResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetVersionResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetDesignatedVersion))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimGroupMappingResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimSyncJobResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetToolResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServerToolDetails), TypeInfoPropertyName = "ServerToolDetails2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceBudgetResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWorkspaceBudgetObject2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudget))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringDoubleIListObject2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageEndpoint))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntry))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf, object>), TypeInfoPropertyName = "AllOfDictionaryStringCapabilityDescriptorObject2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallCompletedEvent), TypeInfoPropertyName = "ImageGenCallCompletedEvent2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallCompleted))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallGeneratingEvent), TypeInfoPropertyName = "ImageGenCallGeneratingEvent2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallGenerating))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallInProgressEvent), TypeInfoPropertyName = "ImageGenCallInProgressEvent2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallInProgress))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallPartialImageEvent), TypeInfoPropertyName = "ImageGenCallPartialImageEvent2")]
internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -1630,10 +1630,88 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEventType), TypeInfoPropertyName = "FusionCallAnalysisInProgressEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEventType), TypeInfoPropertyName = "FusionCallCompletedEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEventType), TypeInfoPropertyName = "FusionCallInProgressEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEventType), TypeInfoPropertyName = "FusionCallPanelAddedEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEventType), TypeInfoPropertyName = "FusionCallPanelCompletedEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEventType), TypeInfoPropertyName = "FusionCallPanelDeltaEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEventType), TypeInfoPropertyName = "FusionCallPanelFailedEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEventType), TypeInfoPropertyName = "FusionCallPanelReasoningDeltaEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginId), TypeInfoPropertyName = "FusionPluginId2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginPreset), TypeInfoPropertyName = "FusionPluginPreset2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginTool))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?>, object>), TypeInfoPropertyName = "AnyOfStringDoubleBooleanIListAnyOfStringDoubleBooleanObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?>))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolOpenRouterType), TypeInfoPropertyName = "FusionServerToolOpenRouterType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoning))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoningEffort), TypeInfoPropertyName = "FusionServerToolConfigReasoningEffort2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigTool))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionSource))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponseErrorData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentError))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfGenerationContentDataInputVariant1GenerationContentDataInputVariant22")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentErrorAttempt))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))]
+ [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::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetGuardrailResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetVersionResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetDesignatedVersion))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimGroupMappingResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimSyncJobResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetToolResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServerToolDetails), TypeInfoPropertyName = "ServerToolDetails2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceBudgetResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWorkspaceBudgetObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudget))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponseErrorData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringDoubleIListObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageEndpoint))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntry))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf, object>), TypeInfoPropertyName = "AllOfDictionaryStringCapabilityDescriptorObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallCompletedEvent), TypeInfoPropertyName = "ImageGenCallCompletedEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallCompleted))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallGeneratingEvent), TypeInfoPropertyName = "ImageGenCallGeneratingEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallGenerating))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallInProgressEvent), TypeInfoPropertyName = "ImageGenCallInProgressEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallInProgress))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallPartialImageEvent), TypeInfoPropertyName = "ImageGenCallPartialImageEvent2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallPartialImage))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCompletedEvent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCompletedEventType), TypeInfoPropertyName = "ImageGenCompletedEventType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsage))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGeneration))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferences))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfProviderOptionsObject2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOptions))]
@@ -1973,84 +2051,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant2Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant2Type2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant3))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant3Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant3Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1InputSchema))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1Type), TypeInfoPropertyName = "MessagesRequestToolVariant1Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Name), TypeInfoPropertyName = "MessagesRequestToolVariant2Name2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Type), TypeInfoPropertyName = "MessagesRequestToolVariant2Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Name), TypeInfoPropertyName = "MessagesRequestToolVariant3Name2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Type), TypeInfoPropertyName = "MessagesRequestToolVariant3Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Name), TypeInfoPropertyName = "MessagesRequestToolVariant4Name2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Type), TypeInfoPropertyName = "MessagesRequestToolVariant4Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Name), TypeInfoPropertyName = "MessagesRequestToolVariant5Name2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Type), TypeInfoPropertyName = "MessagesRequestToolVariant5Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Name), TypeInfoPropertyName = "MessagesRequestToolVariant6Name2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Type), TypeInfoPropertyName = "MessagesRequestToolVariant6Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerTool))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant13))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult), TypeInfoPropertyName = "MessagesResult2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagement))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesResultVariant2Usage2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2Usage))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType), TypeInfoPropertyName = "MessagesSearchModelsServerToolType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFile))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFileType), TypeInfoPropertyName = "MessagesShellToolResultBlockFileType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockType), TypeInfoPropertyName = "MessagesShellToolResultBlockType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessage))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageProvider), TypeInfoPropertyName = "MessagesStartEventMessageProvider2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageRole), TypeInfoPropertyName = "MessagesStartEventMessageRole2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageType), TypeInfoPropertyName = "MessagesStartEventMessageType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesStartEventMessageUsage2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageUsage))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventType), TypeInfoPropertyName = "MessagesStartEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEvent))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEventType), TypeInfoPropertyName = "MessagesStopEventType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEvents), TypeInfoPropertyName = "MessagesStreamEvents2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminator))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminatorType), TypeInfoPropertyName = "MessagesStreamEventsDiscriminatorType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamingResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant1Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant2Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant3Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockType), TypeInfoPropertyName = "MessagesToolAdditionBlockType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesToolRemovalBlockToolVariant1MessagesToolRemovalBlockToolVariant2MessagesToolRemovalBlockToolVariant32")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant1Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant2Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3Type2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockType), TypeInfoPropertyName = "MessagesToolRemovalBlockType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel), TypeInfoPropertyName = "MetadataLevel2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Model))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelAliasTarget))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelBenchmarks))]
- [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.PublicPricing))]
- [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")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TopProviderInfo))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfReasoningEffortObject2")]
internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -2146,28 +2146,107 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponse))]
- [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.ModerationPluginId), TypeInfoPropertyName = "ModerationPluginId2")]
- [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.NamespaceFunctionToolAllowedCaller), TypeInfoPropertyName = "NamespaceFunctionToolAllowedCaller2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType), TypeInfoPropertyName = "NamespaceFunctionToolType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfNamespaceFunctionToolCustomTool2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType), TypeInfoPropertyName = "NamespaceToolType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponseError), TypeInfoPropertyName = "OAuthErrorResponseError2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwks))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKey))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1InputSchema))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1Type), TypeInfoPropertyName = "MessagesRequestToolVariant1Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Name), TypeInfoPropertyName = "MessagesRequestToolVariant2Name2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Type), TypeInfoPropertyName = "MessagesRequestToolVariant2Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Name), TypeInfoPropertyName = "MessagesRequestToolVariant3Name2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Type), TypeInfoPropertyName = "MessagesRequestToolVariant3Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Name), TypeInfoPropertyName = "MessagesRequestToolVariant4Name2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Type), TypeInfoPropertyName = "MessagesRequestToolVariant4Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Name), TypeInfoPropertyName = "MessagesRequestToolVariant5Name2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Type), TypeInfoPropertyName = "MessagesRequestToolVariant5Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Name), TypeInfoPropertyName = "MessagesRequestToolVariant6Name2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Type), TypeInfoPropertyName = "MessagesRequestToolVariant6Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerTool))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant13))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult), TypeInfoPropertyName = "MessagesResult2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagement))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesResultVariant2Usage2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2Usage))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType), TypeInfoPropertyName = "MessagesSearchModelsServerToolType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFile))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFileType), TypeInfoPropertyName = "MessagesShellToolResultBlockFileType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockType), TypeInfoPropertyName = "MessagesShellToolResultBlockType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessage))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageProvider), TypeInfoPropertyName = "MessagesStartEventMessageProvider2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageRole), TypeInfoPropertyName = "MessagesStartEventMessageRole2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageType), TypeInfoPropertyName = "MessagesStartEventMessageType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesStartEventMessageUsage2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageUsage))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventType), TypeInfoPropertyName = "MessagesStartEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEvent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEventType), TypeInfoPropertyName = "MessagesStopEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEvents), TypeInfoPropertyName = "MessagesStreamEvents2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminatorType), TypeInfoPropertyName = "MessagesStreamEventsDiscriminatorType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamingResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant1Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant2Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant3Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockType), TypeInfoPropertyName = "MessagesToolAdditionBlockType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesToolRemovalBlockToolVariant1MessagesToolRemovalBlockToolVariant2MessagesToolRemovalBlockToolVariant32")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant1Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant2Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3Type2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockType), TypeInfoPropertyName = "MessagesToolRemovalBlockType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel), TypeInfoPropertyName = "MetadataLevel2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Model))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelAliasTarget))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelBenchmarks))]
+ [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.PublicPricing))]
+ [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")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TopProviderInfo))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfReasoningEffortObject2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponse))]
+ [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.ModerationPluginId), TypeInfoPropertyName = "ModerationPluginId2")]
+ [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.NamespaceFunctionToolAllowedCaller), TypeInfoPropertyName = "NamespaceFunctionToolAllowedCaller2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType), TypeInfoPropertyName = "NamespaceFunctionToolType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfNamespaceFunctionToolCustomTool2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType), TypeInfoPropertyName = "NamespaceToolType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NativeTools))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponseErrorData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponseError), TypeInfoPropertyName = "OAuthErrorResponseError2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwks))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKey))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyAlg), TypeInfoPropertyName = "OAuthJwksKeyAlg2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyCrv), TypeInfoPropertyName = "OAuthJwksKeyCrv2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyKty), TypeInfoPropertyName = "OAuthJwksKeyKty2")]
@@ -2318,6 +2397,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesTopLogprobs))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2AccessPrograms))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber), TypeInfoPropertyName = "OpenResponsesResultVariant2AccessProgramsCyber2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItems), TypeInfoPropertyName = "OutputItems2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfig), TypeInfoPropertyName = "TextExtendedConfig2")]
@@ -2480,87 +2561,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemMatche))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemType), TypeInfoPropertyName = "OutputToolSearchServerToolItemType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebFetchServerToolItemType), TypeInfoPropertyName = "OutputWebFetchServerToolItemType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemAction))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSource))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSourceType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionSourceType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemType), TypeInfoPropertyName = "OutputWebSearchServerToolItemType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginId), TypeInfoPropertyName = "ParetoRouterPluginId2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginPriceSource), TypeInfoPropertyName = "ParetoRouterPluginPriceSource2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine), TypeInfoPropertyName = "PDFParserEngine2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant1), TypeInfoPropertyName = "PDFParserEngineVariant12")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant2), TypeInfoPropertyName = "PDFParserEngineVariant22")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileLatencyCutoffs))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileStats))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileThroughputCutoffs))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PipelineStageType), TypeInfoPropertyName = "PipelineStageType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListPredictionContentText2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentText))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionType), TypeInfoPropertyName = "PredictionType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentTextType), TypeInfoPropertyName = "PredictionContentTextType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency), TypeInfoPropertyName = "PreferredMaxLatency2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput), TypeInfoPropertyName = "PreferredMinThroughput2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetStatus), TypeInfoPropertyName = "PresetStatus2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetWithDesignatedVersionVariant2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerToolType), TypeInfoPropertyName = "Preview20250311WebSearchServerToolType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation))]
- [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.PricingOverride))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverrideUtcDay), TypeInfoPropertyName = "PricingOverrideUtcDay2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpoint))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettings))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointStatus), TypeInfoPropertyName = "PrivateEndpointStatus2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheck))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheckReason), TypeInfoPropertyName = "PrivateEndpointCheckReason2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointParameterCheck))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointQuantization), TypeInfoPropertyName = "PrivateEndpointQuantization2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointReasoningReturnMechanism), TypeInfoPropertyName = "PrivateEndpointReasoningReturnMechanism2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsCompletions))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsExcludedParameter), TypeInfoPropertyName = "PrivateEndpointSettingsExcludedParameter2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsInputs))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsReasoning))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsToolChoice))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointValidation))]
- [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.PrivateEndpointValidationResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProvider))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProviderDataPolicy))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpointMode), TypeInfoPropertyName = "PromptCacheBreakpointMode2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptionsMode), TypeInfoPropertyName = "PromptCacheOptionsMode2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponseErrorData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection), TypeInfoPropertyName = "ProviderPreferencesDataCollection2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesMaxPrice))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization), TypeInfoPropertyName = "Quantization2")]
- [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.ProviderSortConfigBy), TypeInfoPropertyName = "ProviderSortConfigBy2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition), TypeInfoPropertyName = "ProviderSortConfigPartition2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointNativeTools2))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkload))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfPercentileStatsObject2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration))]
internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -2656,10 +2656,87 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPricing))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemAction))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList