From 2d914e44210fb9fd30c00b7253cd179417761a5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 18 Apr 2026 21:42:25 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ntentApplicationJsonSchemaDataApiType.g.cs | 6 ++++ ...ContentApplicationJsonSchemaDataItems.g.cs | 12 +++++++ ...onsesContentApplicationJsonSchemaData.g.cs | 12 +++++++ ...onsesContentApplicationJsonSchemaData.g.cs | 12 +++++++ ...onsesContentApplicationJsonSchemaData.g.cs | 12 +++++++ .../OpenRouter.Models.OutputModality.g.cs | 6 ++++ src/libs/OpenRouter/openapi.yaml | 32 ++++++++++++++++--- 7 files changed, 87 insertions(+), 5 deletions(-) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs index ba8a678b..2d4d7c86 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationGetResponsesContentApplicationJsonSchemaDataApiType.g.cs @@ -23,6 +23,10 @@ public enum GenerationGetResponsesContentApplicationJsonSchemaDataApiType /// /// /// + Tts, + /// + /// + /// Video, } @@ -41,6 +45,7 @@ public static string ToValueString(this GenerationGetResponsesContentApplication GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Completions => "completions", GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Embeddings => "embeddings", GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Rerank => "rerank", + GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Tts => "tts", GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Video => "video", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -55,6 +60,7 @@ public static string ToValueString(this GenerationGetResponsesContentApplication "completions" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Completions, "embeddings" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Embeddings, "rerank" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Rerank, + "tts" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Tts, "video" => GenerationGetResponsesContentApplicationJsonSchemaDataApiType.Video, _ => null, }; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysGetResponsesContentApplicationJsonSchemaDataItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysGetResponsesContentApplicationJsonSchemaDataItems.g.cs index 8cd04d8c..f44abfd8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysGetResponsesContentApplicationJsonSchemaDataItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysGetResponsesContentApplicationJsonSchemaDataItems.g.cs @@ -142,6 +142,13 @@ public sealed partial class KeysGetResponsesContentApplicationJsonSchemaDataItem [global::System.Text.Json.Serialization.JsonRequired] public required double UsageWeekly { get; set; } + /// + /// The workspace ID this API key belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -193,6 +200,9 @@ public sealed partial class KeysGetResponsesContentApplicationJsonSchemaDataItem /// /// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) /// + /// + /// The workspace ID this API key belongs to. + /// /// /// The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. /// @@ -229,6 +239,7 @@ public KeysGetResponsesContentApplicationJsonSchemaDataItems( double usageDaily, double usageMonthly, double usageWeekly, + string workspaceId, string? creatorUserId, global::System.DateTime? expiresAt, double? limit, @@ -256,6 +267,7 @@ public KeysGetResponsesContentApplicationJsonSchemaDataItems( this.UsageDaily = usageDaily; this.UsageMonthly = usageMonthly; this.UsageWeekly = usageWeekly; + this.WorkspaceId = workspaceId ?? throw new global::System.ArgumentNullException(nameof(workspaceId)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashGetResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashGetResponsesContentApplicationJsonSchemaData.g.cs index 739ce5ae..148d355e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashGetResponsesContentApplicationJsonSchemaData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashGetResponsesContentApplicationJsonSchemaData.g.cs @@ -142,6 +142,13 @@ public sealed partial class KeysHashGetResponsesContentApplicationJsonSchemaData [global::System.Text.Json.Serialization.JsonRequired] public required double UsageWeekly { get; set; } + /// + /// The workspace ID this API key belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -193,6 +200,9 @@ public sealed partial class KeysHashGetResponsesContentApplicationJsonSchemaData /// /// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) /// + /// + /// The workspace ID this API key belongs to. + /// /// /// The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. /// @@ -229,6 +239,7 @@ public KeysHashGetResponsesContentApplicationJsonSchemaData( double usageDaily, double usageMonthly, double usageWeekly, + string workspaceId, string? creatorUserId, global::System.DateTime? expiresAt, double? limit, @@ -256,6 +267,7 @@ public KeysHashGetResponsesContentApplicationJsonSchemaData( this.UsageDaily = usageDaily; this.UsageMonthly = usageMonthly; this.UsageWeekly = usageWeekly; + this.WorkspaceId = workspaceId ?? throw new global::System.ArgumentNullException(nameof(workspaceId)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashPatchResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashPatchResponsesContentApplicationJsonSchemaData.g.cs index 1670c566..b7ea1bc1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashPatchResponsesContentApplicationJsonSchemaData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysHashPatchResponsesContentApplicationJsonSchemaData.g.cs @@ -142,6 +142,13 @@ public sealed partial class KeysHashPatchResponsesContentApplicationJsonSchemaDa [global::System.Text.Json.Serialization.JsonRequired] public required double UsageWeekly { get; set; } + /// + /// The workspace ID this API key belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -193,6 +200,9 @@ public sealed partial class KeysHashPatchResponsesContentApplicationJsonSchemaDa /// /// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) /// + /// + /// The workspace ID this API key belongs to. + /// /// /// The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. /// @@ -229,6 +239,7 @@ public KeysHashPatchResponsesContentApplicationJsonSchemaData( double usageDaily, double usageMonthly, double usageWeekly, + string workspaceId, string? creatorUserId, global::System.DateTime? expiresAt, double? limit, @@ -256,6 +267,7 @@ public KeysHashPatchResponsesContentApplicationJsonSchemaData( this.UsageDaily = usageDaily; this.UsageMonthly = usageMonthly; this.UsageWeekly = usageWeekly; + this.WorkspaceId = workspaceId ?? throw new global::System.ArgumentNullException(nameof(workspaceId)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysPostResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysPostResponsesContentApplicationJsonSchemaData.g.cs index 5fad4340..b03358c6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysPostResponsesContentApplicationJsonSchemaData.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.KeysPostResponsesContentApplicationJsonSchemaData.g.cs @@ -142,6 +142,13 @@ public sealed partial class KeysPostResponsesContentApplicationJsonSchemaData [global::System.Text.Json.Serialization.JsonRequired] public required double UsageWeekly { get; set; } + /// + /// The workspace ID this API key belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -193,6 +200,9 @@ public sealed partial class KeysPostResponsesContentApplicationJsonSchemaData /// /// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday) /// + /// + /// The workspace ID this API key belongs to. + /// /// /// The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. /// @@ -229,6 +239,7 @@ public KeysPostResponsesContentApplicationJsonSchemaData( double usageDaily, double usageMonthly, double usageWeekly, + string workspaceId, string? creatorUserId, global::System.DateTime? expiresAt, double? limit, @@ -256,6 +267,7 @@ public KeysPostResponsesContentApplicationJsonSchemaData( this.UsageDaily = usageDaily; this.UsageMonthly = usageMonthly; this.UsageWeekly = usageWeekly; + this.WorkspaceId = workspaceId ?? throw new global::System.ArgumentNullException(nameof(workspaceId)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputModality.g.cs index d3746b54..2abf6ec1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputModality.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OutputModality.g.cs @@ -31,6 +31,10 @@ public enum OutputModality /// /// /// + Tts, + /// + /// + /// Video, } @@ -51,6 +55,7 @@ public static string ToValueString(this OutputModality value) OutputModality.Image => "image", OutputModality.Rerank => "rerank", OutputModality.Text => "text", + OutputModality.Tts => "tts", OutputModality.Video => "video", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -67,6 +72,7 @@ public static string ToValueString(this OutputModality value) "image" => OutputModality.Image, "rerank" => OutputModality.Rerank, "text" => OutputModality.Text, + "tts" => OutputModality.Tts, "video" => OutputModality.Video, _ => null, }; diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index adfa5ab5..bc2090cc 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -12624,7 +12624,8 @@ "embeddings", "audio", "video", - "rerank" + "rerank", + "tts" ], "title": "OutputModality" }, @@ -13530,6 +13531,7 @@ "completions", "embeddings", "rerank", + "tts", "video" ], "description": "Type of API used for the generation", @@ -15164,6 +15166,10 @@ "type": "number", "format": "double", "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ @@ -15185,7 +15191,8 @@ "usage", "usage_daily", "usage_monthly", - "usage_weekly" + "usage_weekly", + "workspace_id" ], "title": "KeysGetResponsesContentApplicationJsonSchemaDataItems" }, @@ -15326,6 +15333,10 @@ "type": "number", "format": "double", "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ @@ -15347,7 +15358,8 @@ "usage", "usage_daily", "usage_monthly", - "usage_weekly" + "usage_weekly", + "workspace_id" ], "description": "The created API key information", "title": "KeysPostResponsesContentApplicationJsonSchemaData" @@ -15481,6 +15493,10 @@ "type": "number", "format": "double", "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ @@ -15502,7 +15518,8 @@ "usage", "usage_daily", "usage_monthly", - "usage_weekly" + "usage_weekly", + "workspace_id" ], "description": "The API key information", "title": "KeysHashGetResponsesContentApplicationJsonSchemaData" @@ -15657,6 +15674,10 @@ "type": "number", "format": "double", "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ @@ -15678,7 +15699,8 @@ "usage", "usage_daily", "usage_monthly", - "usage_weekly" + "usage_weekly", + "workspace_id" ], "description": "The updated API key information", "title": "KeysHashPatchResponsesContentApplicationJsonSchemaData"