Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public enum GenerationGetResponsesContentApplicationJsonSchemaDataApiType
/// <summary>
///
/// </summary>
Tts,
/// <summary>
///
/// </summary>
Video,
}

Expand All @@ -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),
};
Expand All @@ -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,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ public sealed partial class KeysGetResponsesContentApplicationJsonSchemaDataItem
[global::System.Text.Json.Serialization.JsonRequired]
public required double UsageWeekly { get; set; }

/// <summary>
/// The workspace ID this API key belongs to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string WorkspaceId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -193,6 +200,9 @@ public sealed partial class KeysGetResponsesContentApplicationJsonSchemaDataItem
/// <param name="usageWeekly">
/// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)
/// </param>
/// <param name="workspaceId">
/// The workspace ID this API key belongs to.
/// </param>
/// <param name="creatorUserId">
/// 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.
/// </param>
Expand Down Expand Up @@ -229,6 +239,7 @@ public KeysGetResponsesContentApplicationJsonSchemaDataItems(
double usageDaily,
double usageMonthly,
double usageWeekly,
string workspaceId,
string? creatorUserId,
global::System.DateTime? expiresAt,
double? limit,
Expand Down Expand Up @@ -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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ public sealed partial class KeysHashGetResponsesContentApplicationJsonSchemaData
[global::System.Text.Json.Serialization.JsonRequired]
public required double UsageWeekly { get; set; }

/// <summary>
/// The workspace ID this API key belongs to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string WorkspaceId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -193,6 +200,9 @@ public sealed partial class KeysHashGetResponsesContentApplicationJsonSchemaData
/// <param name="usageWeekly">
/// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)
/// </param>
/// <param name="workspaceId">
/// The workspace ID this API key belongs to.
/// </param>
/// <param name="creatorUserId">
/// 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.
/// </param>
Expand Down Expand Up @@ -229,6 +239,7 @@ public KeysHashGetResponsesContentApplicationJsonSchemaData(
double usageDaily,
double usageMonthly,
double usageWeekly,
string workspaceId,
string? creatorUserId,
global::System.DateTime? expiresAt,
double? limit,
Expand Down Expand Up @@ -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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ public sealed partial class KeysHashPatchResponsesContentApplicationJsonSchemaDa
[global::System.Text.Json.Serialization.JsonRequired]
public required double UsageWeekly { get; set; }

/// <summary>
/// The workspace ID this API key belongs to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string WorkspaceId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -193,6 +200,9 @@ public sealed partial class KeysHashPatchResponsesContentApplicationJsonSchemaDa
/// <param name="usageWeekly">
/// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)
/// </param>
/// <param name="workspaceId">
/// The workspace ID this API key belongs to.
/// </param>
/// <param name="creatorUserId">
/// 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.
/// </param>
Expand Down Expand Up @@ -229,6 +239,7 @@ public KeysHashPatchResponsesContentApplicationJsonSchemaData(
double usageDaily,
double usageMonthly,
double usageWeekly,
string workspaceId,
string? creatorUserId,
global::System.DateTime? expiresAt,
double? limit,
Expand Down Expand Up @@ -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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ public sealed partial class KeysPostResponsesContentApplicationJsonSchemaData
[global::System.Text.Json.Serialization.JsonRequired]
public required double UsageWeekly { get; set; }

/// <summary>
/// The workspace ID this API key belongs to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string WorkspaceId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -193,6 +200,9 @@ public sealed partial class KeysPostResponsesContentApplicationJsonSchemaData
/// <param name="usageWeekly">
/// OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)
/// </param>
/// <param name="workspaceId">
/// The workspace ID this API key belongs to.
/// </param>
/// <param name="creatorUserId">
/// 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.
/// </param>
Expand Down Expand Up @@ -229,6 +239,7 @@ public KeysPostResponsesContentApplicationJsonSchemaData(
double usageDaily,
double usageMonthly,
double usageWeekly,
string workspaceId,
string? creatorUserId,
global::System.DateTime? expiresAt,
double? limit,
Expand Down Expand Up @@ -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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public enum OutputModality
/// <summary>
///
/// </summary>
Tts,
/// <summary>
///
/// </summary>
Video,
}

Expand All @@ -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),
};
Expand All @@ -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,
};
Expand Down
32 changes: 27 additions & 5 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12624,7 +12624,8 @@
"embeddings",
"audio",
"video",
"rerank"
"rerank",
"tts"
],
"title": "OutputModality"
},
Expand Down Expand Up @@ -13530,6 +13531,7 @@
"completions",
"embeddings",
"rerank",
"tts",
"video"
],
"description": "Type of API used for the generation",
Expand Down Expand Up @@ -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": [
Expand All @@ -15185,7 +15191,8 @@
"usage",
"usage_daily",
"usage_monthly",
"usage_weekly"
"usage_weekly",
"workspace_id"
],
"title": "KeysGetResponsesContentApplicationJsonSchemaDataItems"
},
Expand Down Expand Up @@ -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": [
Expand All @@ -15347,7 +15358,8 @@
"usage",
"usage_daily",
"usage_monthly",
"usage_weekly"
"usage_weekly",
"workspace_id"
],
"description": "The created API key information",
"title": "KeysPostResponsesContentApplicationJsonSchemaData"
Expand Down Expand Up @@ -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": [
Expand All @@ -15502,7 +15518,8 @@
"usage",
"usage_daily",
"usage_monthly",
"usage_weekly"
"usage_weekly",
"workspace_id"
],
"description": "The API key information",
"title": "KeysHashGetResponsesContentApplicationJsonSchemaData"
Expand Down Expand Up @@ -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": [
Expand All @@ -15678,7 +15699,8 @@
"usage",
"usage_daily",
"usage_monthly",
"usage_weekly"
"usage_weekly",
"workspace_id"
],
"description": "The updated API key information",
"title": "KeysHashPatchResponsesContentApplicationJsonSchemaData"
Expand Down