diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs index 8b6d4700..a6e4437a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs @@ -27,11 +27,11 @@ public partial class ApiKeysClient }; partial void PrepareCreateKeysArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.ApiKeysCreateKeysRequest request); + global::OpenRouter.CreateKeysRequest request); partial void PrepareCreateKeysRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.ApiKeysCreateKeysRequest request); + global::OpenRouter.CreateKeysRequest request); partial void ProcessCreateKeysResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateKeysResponseContent( /// public async global::System.Threading.Tasks.Task CreateKeysAsync( - global::OpenRouter.ApiKeysCreateKeysRequest request, + global::OpenRouter.CreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateKeysResponseContent( /// public async global::System.Threading.Tasks.Task> CreateKeysAsResponseAsync( - global::OpenRouter.ApiKeysCreateKeysRequest request, + global::OpenRouter.CreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,7 +657,7 @@ partial void ProcessCreateKeysResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.ApiKeysCreateKeysRequest + var __request = new global::OpenRouter.CreateKeysRequest { CreatorUserId = creatorUserId, ExpiresAt = expiresAt, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs index 82d33b61..93a1ec25 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs @@ -28,12 +28,12 @@ public partial class ApiKeysClient partial void PrepareUpdateKeysArguments( global::System.Net.Http.HttpClient httpClient, ref string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request); + global::OpenRouter.UpdateKeysRequest request); partial void PrepareUpdateKeysRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request); + global::OpenRouter.UpdateKeysRequest request); partial void ProcessUpdateKeysResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -55,7 +55,7 @@ partial void ProcessUpdateKeysResponseContent( public async global::System.Threading.Tasks.Task UpdateKeysAsync( string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request, + global::OpenRouter.UpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -81,7 +81,7 @@ partial void ProcessUpdateKeysResponseContent( public async global::System.Threading.Tasks.Task> UpdateKeysAsResponseAsync( string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request, + global::OpenRouter.UpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -660,7 +660,7 @@ partial void ProcessUpdateKeysResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.ApiKeysUpdateKeysRequest + var __request = new global::OpenRouter.UpdateKeysRequest { Disabled = disabled, IncludeByokInLimit = includeByokInLimit, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs index 0e89b59e..757f86b7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs @@ -27,11 +27,11 @@ public partial class BetaAnalyticsClient }; partial void PrepareQueryAnalyticsArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request); + global::OpenRouter.QueryAnalyticsRequest request); partial void PrepareQueryAnalyticsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request); + global::OpenRouter.QueryAnalyticsRequest request); partial void ProcessQueryAnalyticsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessQueryAnalyticsResponseContent( /// public async global::System.Threading.Tasks.Task QueryAnalyticsAsync( - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, + global::OpenRouter.QueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessQueryAnalyticsResponseContent( /// public async global::System.Threading.Tasks.Task> QueryAnalyticsAsResponseAsync( - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, + global::OpenRouter.QueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -659,7 +659,7 @@ partial void ProcessQueryAnalyticsResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest + var __request = new global::OpenRouter.QueryAnalyticsRequest { ClassifierDimensions = classifierDimensions, ClassifierFilters = classifierFilters, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs index c70e018f..879f8835 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs @@ -27,11 +27,11 @@ public partial class EmbeddingsClient }; partial void PrepareCreateEmbeddingsArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request); + global::OpenRouter.CreateEmbeddingsRequest request); partial void PrepareCreateEmbeddingsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request); + global::OpenRouter.CreateEmbeddingsRequest request); partial void ProcessCreateEmbeddingsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateEmbeddingsResponseContent( /// public async global::System.Threading.Tasks.Task CreateEmbeddingsAsync( - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, + global::OpenRouter.CreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateEmbeddingsResponseContent( /// public async global::System.Threading.Tasks.Task> CreateEmbeddingsAsResponseAsync( - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, + global::OpenRouter.CreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ partial void ProcessCreateEmbeddingsResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.EmbeddingsCreateEmbeddingsRequest + var __request = new global::OpenRouter.CreateEmbeddingsRequest { Dimensions = dimensions, EncodingFormat = encodingFormat, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs index 8dce490a..8e94b3a4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs @@ -28,12 +28,12 @@ public partial class FilesClient partial void PrepareUploadFileArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid? workspaceId, - global::OpenRouter.FilesUploadFileRequest request); + global::OpenRouter.UploadFileRequest request); partial void PrepareUploadFileRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid? workspaceId, - global::OpenRouter.FilesUploadFileRequest request); + global::OpenRouter.UploadFileRequest request); partial void ProcessUploadFileResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -54,7 +54,7 @@ partial void ProcessUploadFileResponseContent( /// public async global::System.Threading.Tasks.Task UploadFileAsync( - global::OpenRouter.FilesUploadFileRequest request, + global::OpenRouter.UploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -80,7 +80,7 @@ partial void ProcessUploadFileResponseContent( /// public async global::System.Threading.Tasks.Task> UploadFileAsResponseAsync( - global::OpenRouter.FilesUploadFileRequest request, + global::OpenRouter.UploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -720,7 +720,7 @@ request.Filename is null global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.FilesUploadFileRequest + var __request = new global::OpenRouter.UploadFileRequest { File = file, Filename = filename, @@ -754,7 +754,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::OpenRouter.FilesUploadFileRequest + var request = new global::OpenRouter.UploadFileRequest { File = global::System.Array.Empty(), Filename = filename, @@ -1388,7 +1388,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::OpenRouter.FilesUploadFileRequest + var request = new global::OpenRouter.UploadFileRequest { File = global::System.Array.Empty(), Filename = filename, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs index 55e2b69f..34230d7b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs @@ -14,7 +14,7 @@ public partial interface IApiKeysClient /// global::System.Threading.Tasks.Task CreateKeysAsync( - global::OpenRouter.ApiKeysCreateKeysRequest request, + global::OpenRouter.CreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IApiKeysClient /// global::System.Threading.Tasks.Task> CreateKeysAsResponseAsync( - global::OpenRouter.ApiKeysCreateKeysRequest request, + global::OpenRouter.CreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs index 8a7ca32e..a1208130 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs @@ -16,7 +16,7 @@ public partial interface IApiKeysClient global::System.Threading.Tasks.Task UpdateKeysAsync( string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request, + global::OpenRouter.UpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -31,7 +31,7 @@ public partial interface IApiKeysClient global::System.Threading.Tasks.Task> UpdateKeysAsResponseAsync( string hash, - global::OpenRouter.ApiKeysUpdateKeysRequest request, + global::OpenRouter.UpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs index a1713acf..fb9ab50b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs @@ -14,7 +14,7 @@ public partial interface IBetaAnalyticsClient /// global::System.Threading.Tasks.Task QueryAnalyticsAsync( - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, + global::OpenRouter.QueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IBetaAnalyticsClient /// global::System.Threading.Tasks.Task> QueryAnalyticsAsResponseAsync( - global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, + global::OpenRouter.QueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs index ec9125b2..096bd865 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs @@ -14,7 +14,7 @@ public partial interface IEmbeddingsClient /// global::System.Threading.Tasks.Task CreateEmbeddingsAsync( - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, + global::OpenRouter.CreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IEmbeddingsClient /// global::System.Threading.Tasks.Task> CreateEmbeddingsAsResponseAsync( - global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, + global::OpenRouter.CreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs index 85aed20a..1f09e687 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs @@ -15,7 +15,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task UploadFileAsync( - global::OpenRouter.FilesUploadFileRequest request, + global::OpenRouter.UploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -30,7 +30,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task> UploadFileAsResponseAsync( - global::OpenRouter.FilesUploadFileRequest request, + global::OpenRouter.UploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs index 9ad40744..1d0af937 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs @@ -14,7 +14,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task CreateAuthKeysCodeAsync( - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, + global::OpenRouter.CreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task> CreateAuthKeysCodeAsResponseAsync( - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, + global::OpenRouter.CreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs index 740b907b..72013d85 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs @@ -14,7 +14,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task> ExchangeAuthCodeForAPIKeyAsResponseAsync( - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs index d219b543..c8cb6216 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs @@ -14,7 +14,7 @@ public partial interface IRerankClient /// global::System.Threading.Tasks.Task CreateRerankAsync( - global::OpenRouter.RerankCreateRerankRequest request, + global::OpenRouter.CreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IRerankClient /// global::System.Threading.Tasks.Task> CreateRerankAsResponseAsync( - global::OpenRouter.RerankCreateRerankRequest request, + global::OpenRouter.CreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index a61e90b5..c2c4a5b8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1935,16 +1935,16 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FilesUploadFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiKeysCreateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiKeysUpdateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankCreateRerankRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel?), TypeInfoPropertyName = "NullableMetadataLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlTtl?), TypeInfoPropertyName = "NullableAnthropicCacheControlTtl2")] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 943396d2..7b2e1b53 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -7561,15 +7561,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? Type1882 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? Type1882 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeRequest? Type1883 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1883 { get; set; } /// /// /// - public global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? Type1884 { get; set; } + public global::OpenRouter.QueryAnalyticsRequest? Type1884 { get; set; } /// /// /// @@ -7577,11 +7577,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? Type1886 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type1886 { get; set; } /// /// /// - public global::OpenRouter.FilesUploadFileRequest? Type1887 { get; set; } + public global::OpenRouter.UploadFileRequest? Type1887 { get; set; } /// /// /// @@ -7589,15 +7589,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ApiKeysCreateKeysRequest? Type1889 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type1889 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysRequest? Type1890 { get; set; } + public global::OpenRouter.UpdateKeysRequest? Type1890 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankRequest? Type1891 { get; set; } + public global::OpenRouter.CreateRerankRequest? Type1891 { get; set; } /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs deleted file mode 100644 index 2d2acf08..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class BetaAnalyticsQueryAnalyticsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest), - jsonSerializerContext) as global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs index 412e4cb8..5f9f6a9e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class RerankCreateRerankRequest + public sealed partial class CreateAuthKeysCodeRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.RerankCreateRerankRequest? FromJson( + public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.RerankCreateRerankRequest), - jsonSerializerContext) as global::OpenRouter.RerankCreateRerankRequest; + typeof(global::OpenRouter.CreateAuthKeysCodeRequest), + jsonSerializerContext) as global::OpenRouter.CreateAuthKeysCodeRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.RerankCreateRerankRequest? FromJson( + public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.RerankCreateRerankRequest? FromJson( + public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.RerankCreateRerankRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.RerankCreateRerankRequest; + typeof(global::OpenRouter.CreateAuthKeysCodeRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateAuthKeysCodeRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs similarity index 93% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs index 1a06161e..637edd4a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class OAuthCreateAuthKeysCodeRequest + public sealed partial class CreateAuthKeysCodeRequest { /// /// The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools. @@ -66,7 +66,7 @@ public sealed partial class OAuthCreateAuthKeysCodeRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools. @@ -95,7 +95,7 @@ public sealed partial class OAuthCreateAuthKeysCodeRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public OAuthCreateAuthKeysCodeRequest( + public CreateAuthKeysCodeRequest( string callbackUrl, string? codeChallenge, global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod, @@ -116,9 +116,9 @@ public OAuthCreateAuthKeysCodeRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public OAuthCreateAuthKeysCodeRequest() + public CreateAuthKeysCodeRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs index e757ba3a..188b37d7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ApiKeysCreateKeysRequest + public sealed partial class CreateEmbeddingsRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( + public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApiKeysCreateKeysRequest), - jsonSerializerContext) as global::OpenRouter.ApiKeysCreateKeysRequest; + typeof(global::OpenRouter.CreateEmbeddingsRequest), + jsonSerializerContext) as global::OpenRouter.CreateEmbeddingsRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( + public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( + public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ApiKeysCreateKeysRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApiKeysCreateKeysRequest; + typeof(global::OpenRouter.CreateEmbeddingsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateEmbeddingsRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs similarity index 92% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs index fa996ea1..a19ac264 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class EmbeddingsCreateEmbeddingsRequest + public sealed partial class CreateEmbeddingsRequest { /// /// The number of dimensions for the output embeddings @@ -61,7 +61,7 @@ public sealed partial class EmbeddingsCreateEmbeddingsRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Text, token, or multimodal input(s) to embed @@ -87,7 +87,7 @@ public sealed partial class EmbeddingsCreateEmbeddingsRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public EmbeddingsCreateEmbeddingsRequest( + public CreateEmbeddingsRequest( global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput input, string model, int? dimensions, @@ -106,9 +106,9 @@ public EmbeddingsCreateEmbeddingsRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EmbeddingsCreateEmbeddingsRequest() + public CreateEmbeddingsRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs index 03e446a7..e9547eab 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class FilesUploadFileRequest + public sealed partial class CreateKeysRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.FilesUploadFileRequest? FromJson( + public static global::OpenRouter.CreateKeysRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.FilesUploadFileRequest), - jsonSerializerContext) as global::OpenRouter.FilesUploadFileRequest; + typeof(global::OpenRouter.CreateKeysRequest), + jsonSerializerContext) as global::OpenRouter.CreateKeysRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.FilesUploadFileRequest? FromJson( + public static global::OpenRouter.CreateKeysRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.FilesUploadFileRequest? FromJson( + public static global::OpenRouter.CreateKeysRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.FilesUploadFileRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.FilesUploadFileRequest; + typeof(global::OpenRouter.CreateKeysRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateKeysRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs similarity index 93% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs index ee2fb60f..deeba92a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ApiKeysCreateKeysRequest + public sealed partial class CreateKeysRequest { /// /// Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. @@ -59,7 +59,7 @@ public sealed partial class ApiKeysCreateKeysRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Name for the new API key @@ -85,7 +85,7 @@ public sealed partial class ApiKeysCreateKeysRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApiKeysCreateKeysRequest( + public CreateKeysRequest( string name, string? creatorUserId, global::System.DateTime? expiresAt, @@ -104,9 +104,9 @@ public ApiKeysCreateKeysRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApiKeysCreateKeysRequest() + public CreateKeysRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs index 56b129d2..21294712 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ApiKeysUpdateKeysRequest + public sealed partial class CreateRerankRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( + public static global::OpenRouter.CreateRerankRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ApiKeysUpdateKeysRequest), - jsonSerializerContext) as global::OpenRouter.ApiKeysUpdateKeysRequest; + typeof(global::OpenRouter.CreateRerankRequest), + jsonSerializerContext) as global::OpenRouter.CreateRerankRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( + public static global::OpenRouter.CreateRerankRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( + public static global::OpenRouter.CreateRerankRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ApiKeysUpdateKeysRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApiKeysUpdateKeysRequest; + typeof(global::OpenRouter.CreateRerankRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateRerankRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs similarity index 91% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs index 75323bdc..a38b87b2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class RerankCreateRerankRequest + public sealed partial class CreateRerankRequest { /// /// The list of documents to rerank. Documents may be plain strings, or structured objects with `text` and/or `image` for multimodal models. @@ -48,7 +48,7 @@ public sealed partial class RerankCreateRerankRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The list of documents to rerank. Documents may be plain strings, or structured objects with `text` and/or `image` for multimodal models. @@ -68,7 +68,7 @@ public sealed partial class RerankCreateRerankRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RerankCreateRerankRequest( + public CreateRerankRequest( global::System.Collections.Generic.IList documents, string model, string query, @@ -83,9 +83,9 @@ public RerankCreateRerankRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RerankCreateRerankRequest() + public CreateRerankRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs deleted file mode 100644 index 0669a5b6..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class EmbeddingsCreateEmbeddingsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest), - jsonSerializerContext) as global::OpenRouter.EmbeddingsCreateEmbeddingsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsCreateEmbeddingsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.Json.g.cs index a281c116..f5b49a8a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class OAuthCreateAuthKeysCodeRequest + public sealed partial class ExchangeAuthCodeForAPIKeyRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest), - jsonSerializerContext) as global::OpenRouter.OAuthCreateAuthKeysCodeRequest; + typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest), + jsonSerializerContext) as global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OAuthCreateAuthKeysCodeRequest; + typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.g.cs index e57e6b08..02213341 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForAPIKeyRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest + public sealed partial class ExchangeAuthCodeForAPIKeyRequest { /// /// The authorization code received from the OAuth redirect @@ -35,7 +35,7 @@ public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The authorization code received from the OAuth redirect @@ -49,7 +49,7 @@ public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public OAuthExchangeAuthCodeForAPIKeyRequest( + public ExchangeAuthCodeForAPIKeyRequest( string code, global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod, string? codeVerifier) @@ -60,9 +60,9 @@ public OAuthExchangeAuthCodeForAPIKeyRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public OAuthExchangeAuthCodeForAPIKeyRequest() + public ExchangeAuthCodeForAPIKeyRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs deleted file mode 100644 index 45c5a1d8..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest), - jsonSerializerContext) as global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs new file mode 100644 index 00000000..afe95995 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class QueryAnalyticsRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.QueryAnalyticsRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.QueryAnalyticsRequest), + jsonSerializerContext) as global::OpenRouter.QueryAnalyticsRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.QueryAnalyticsRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.QueryAnalyticsRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.QueryAnalyticsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.QueryAnalyticsRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs similarity index 94% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs index a74fd930..148d3448 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class BetaAnalyticsQueryAnalyticsRequest + public sealed partial class QueryAnalyticsRequest { /// /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. @@ -76,7 +76,7 @@ public sealed partial class BetaAnalyticsQueryAnalyticsRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -101,7 +101,7 @@ public sealed partial class BetaAnalyticsQueryAnalyticsRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BetaAnalyticsQueryAnalyticsRequest( + public QueryAnalyticsRequest( global::System.Collections.Generic.IList metrics, global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions, global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters, @@ -126,9 +126,9 @@ public BetaAnalyticsQueryAnalyticsRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BetaAnalyticsQueryAnalyticsRequest() + public QueryAnalyticsRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs new file mode 100644 index 00000000..3a3d213b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateKeysRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateKeysRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateKeysRequest), + jsonSerializerContext) as global::OpenRouter.UpdateKeysRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.UpdateKeysRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateKeysRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateKeysRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateKeysRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs similarity index 90% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs index 948df54a..59ecb4bf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ApiKeysUpdateKeysRequest + public sealed partial class UpdateKeysRequest { /// /// Whether to disable the API key @@ -46,7 +46,7 @@ public sealed partial class ApiKeysUpdateKeysRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Whether to disable the API key @@ -66,7 +66,7 @@ public sealed partial class ApiKeysUpdateKeysRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ApiKeysUpdateKeysRequest( + public UpdateKeysRequest( bool? disabled, bool? includeByokInLimit, double? limit, @@ -81,9 +81,9 @@ public ApiKeysUpdateKeysRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ApiKeysUpdateKeysRequest() + public UpdateKeysRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs new file mode 100644 index 00000000..cbe8f051 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UploadFileRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UploadFileRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UploadFileRequest), + jsonSerializerContext) as global::OpenRouter.UploadFileRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.UploadFileRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UploadFileRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UploadFileRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UploadFileRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs index 2560c9dc..da845d3b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class FilesUploadFileRequest + public sealed partial class UploadFileRequest { /// /// @@ -29,14 +29,14 @@ public sealed partial class FilesUploadFileRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public FilesUploadFileRequest( + public UploadFileRequest( byte[] file, string filename) { @@ -45,9 +45,9 @@ public FilesUploadFileRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public FilesUploadFileRequest() + public UploadFileRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs index 3f271c31..b7b59b61 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs @@ -27,11 +27,11 @@ public partial class OAuthClient }; partial void PrepareCreateAuthKeysCodeArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request); + global::OpenRouter.CreateAuthKeysCodeRequest request); partial void PrepareCreateAuthKeysCodeRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request); + global::OpenRouter.CreateAuthKeysCodeRequest request); partial void ProcessCreateAuthKeysCodeResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( /// public async global::System.Threading.Tasks.Task CreateAuthKeysCodeAsync( - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, + global::OpenRouter.CreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( /// public async global::System.Threading.Tasks.Task> CreateAuthKeysCodeAsResponseAsync( - global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, + global::OpenRouter.CreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -661,7 +661,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.OAuthCreateAuthKeysCodeRequest + var __request = new global::OpenRouter.CreateAuthKeysCodeRequest { CallbackUrl = callbackUrl, CodeChallenge = codeChallenge, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs index c32d95b2..6c47b806 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs @@ -27,11 +27,11 @@ public partial class OAuthClient }; partial void PrepareExchangeAuthCodeForAPIKeyArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request); + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request); partial void PrepareExchangeAuthCodeForAPIKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request); + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request); partial void ProcessExchangeAuthCodeForAPIKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessExchangeAuthCodeForAPIKeyResponseContent( /// public async global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessExchangeAuthCodeForAPIKeyResponseContent( /// public async global::System.Threading.Tasks.Task> ExchangeAuthCodeForAPIKeyAsResponseAsync( - global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, + global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -567,7 +567,7 @@ partial void ProcessExchangeAuthCodeForAPIKeyResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest + var __request = new global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest { Code = code, CodeChallengeMethod = codeChallengeMethod, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs index 9a91ec65..4d97a8e8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs @@ -27,11 +27,11 @@ public partial class RerankClient }; partial void PrepareCreateRerankArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.RerankCreateRerankRequest request); + global::OpenRouter.CreateRerankRequest request); partial void PrepareCreateRerankRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.RerankCreateRerankRequest request); + global::OpenRouter.CreateRerankRequest request); partial void ProcessCreateRerankResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateRerankResponseContent( /// public async global::System.Threading.Tasks.Task CreateRerankAsync( - global::OpenRouter.RerankCreateRerankRequest request, + global::OpenRouter.CreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateRerankResponseContent( /// public async global::System.Threading.Tasks.Task> CreateRerankAsResponseAsync( - global::OpenRouter.RerankCreateRerankRequest request, + global::OpenRouter.CreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -760,7 +760,7 @@ partial void ProcessCreateRerankResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.RerankCreateRerankRequest + var __request = new global::OpenRouter.CreateRerankRequest { Documents = documents, Model = model,