diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageDatasetsClient.GetAppRankings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageDatasetsClient.GetAppRankings.g.cs new file mode 100644 index 00000000..d3cb6271 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageDatasetsClient.GetAppRankings.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageDatasetsClient + { + /// + /// Top apps by token usage
+ /// Returns the top public apps on OpenRouter ranked by token usage inside the requested
+ /// date window, matching the public apps marketplace on openrouter.ai/apps. Token totals
+ /// are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and
+ /// traffic from related app aliases is merged into the canonical visible app.
+ /// `sort=popular` (default) ranks by total token volume inside the window.
+ /// `sort=trending` ranks by absolute excess token growth: window volume minus the average
+ /// volume of the three equal-length periods immediately preceding the window. Apps with
+ /// no excess growth are omitted, so `trending` may return fewer than `limit` rows.
+ /// Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory`
+ /// (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —
+ /// `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.
+ /// Authenticate with any valid OpenRouter API key (same key used for inference).
+ /// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
+ /// When republishing or quoting this dataset, OpenRouter must be cited as:
+ /// "Source: OpenRouter (openrouter.ai/apps), as of {as_of}."
+ /// Token counts come from each upstream provider's own tokenizer, so a token attributed
+ /// to one app is not directly comparable to a token attributed to another app whose
+ /// traffic flows through a different provider. + ///
+ /// + /// Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group. + /// + /// + /// Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent. + /// + /// + /// `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
+ /// Default Value: popular + /// + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: 0 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetAppRankingsAsync( + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort = default, + string? startDate = default, + string? endDate = default, + int? limit = default, + int? offset = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Top apps by token usage
+ /// Returns the top public apps on OpenRouter ranked by token usage inside the requested
+ /// date window, matching the public apps marketplace on openrouter.ai/apps. Token totals
+ /// are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and
+ /// traffic from related app aliases is merged into the canonical visible app.
+ /// `sort=popular` (default) ranks by total token volume inside the window.
+ /// `sort=trending` ranks by absolute excess token growth: window volume minus the average
+ /// volume of the three equal-length periods immediately preceding the window. Apps with
+ /// no excess growth are omitted, so `trending` may return fewer than `limit` rows.
+ /// Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory`
+ /// (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —
+ /// `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.
+ /// Authenticate with any valid OpenRouter API key (same key used for inference).
+ /// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
+ /// When republishing or quoting this dataset, OpenRouter must be cited as:
+ /// "Source: OpenRouter (openrouter.ai/apps), as of {as_of}."
+ /// Token counts come from each upstream provider's own tokenizer, so a token attributed
+ /// to one app is not directly comparable to a token attributed to another app whose
+ /// traffic flows through a different provider. + ///
+ /// + /// Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group. + /// + /// + /// Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent. + /// + /// + /// `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
+ /// Default Value: popular + /// + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: 0 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetAppRankingsAsResponseAsync( + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort = default, + string? startDate = default, + string? endDate = default, + int? limit = default, + int? offset = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageModelsClient.GetModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageModelsClient.GetModels.g.cs index e31e007b..65515181 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageModelsClient.GetModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageModelsClient.GetModels.g.cs @@ -12,6 +12,9 @@ public partial interface ISubpackageModelsClient /// /// /// + /// + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -21,6 +24,7 @@ public partial interface ISubpackageModelsClient global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, + global::OpenRouter.ModelsGetParametersSort? sort = default, string? useRss = default, string? useRssChatLinks = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -33,6 +37,9 @@ public partial interface ISubpackageModelsClient /// /// /// + /// + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -42,6 +49,7 @@ public partial interface ISubpackageModelsClient global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, + global::OpenRouter.ModelsGetParametersSort? sort = default, string? useRss = default, string? useRssChatLinks = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPreset.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPreset.g.cs new file mode 100644 index 00000000..b53fb92a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPreset.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackagePresetsClient + { + /// + /// Get a preset
+ /// Retrieves a preset by its slug with its currently designated version inline. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetPresetAsync( + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get a preset
+ /// Retrieves a preset by its slug with its currently designated version inline. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetPresetAsResponseAsync( + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPresetVersion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPresetVersion.g.cs new file mode 100644 index 00000000..5fabfc01 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.GetPresetVersion.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackagePresetsClient + { + /// + /// Get a specific version of a preset
+ /// Retrieves a specific version of a preset by its slug and version number. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetPresetVersionAsync( + string slug, + string version, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get a specific version of a preset
+ /// Retrieves a specific version of a preset by its slug and version number. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetPresetVersionAsResponseAsync( + string slug, + string version, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresetVersions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresetVersions.g.cs new file mode 100644 index 00000000..13023b7b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresetVersions.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackagePresetsClient + { + /// + /// List versions of a preset
+ /// Lists all versions of a preset, ordered by version number ascending (oldest first). + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListPresetVersionsAsync( + string slug, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List versions of a preset
+ /// Lists all versions of a preset, ordered by version number ascending (oldest first). + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListPresetVersionsAsResponseAsync( + string slug, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresets.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresets.g.cs new file mode 100644 index 00000000..0a6a703a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.ListPresets.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackagePresetsClient + { + /// + /// List presets
+ /// Lists all presets for the authenticated user, ordered by most recently updated first. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListPresetsAsync( + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List presets
+ /// Lists all presets for the authenticated user, ordered by most recently updated first. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListPresetsAsResponseAsync( + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategory.g.cs new file mode 100644 index 00000000..b57630ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategory.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersCategory Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersCategoryExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersCategory); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersCategory value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersCategoryExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullable.g.cs new file mode 100644 index 00000000..8b9ce86b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersCategoryExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersCategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersCategory?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersCategoryExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSort.g.cs new file mode 100644 index 00000000..821c26ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSort.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersSortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersSort Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersSortExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersSort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersSort); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersSort value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersSortExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullable.g.cs new file mode 100644 index 00000000..3f5e3573 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersSortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersSort? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersSortExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersSort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersSort?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersSortExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategory.g.cs new file mode 100644 index 00000000..7ad58d7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategory.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersSubcategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersSubcategoryExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategoryExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullable.g.cs new file mode 100644 index 00000000..2d6d9ee8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.DatasetsAppRankingsGetParametersSubcategoryExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategoryExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSort.g.cs similarity index 64% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatus.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSort.g.cs index d4fc1466..10cccaee 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatus.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSort.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class PresetWithDesignatedVersionStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ModelsGetParametersSortJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.PresetWithDesignatedVersionStatus Read( + public override global::OpenRouter.ModelsGetParametersSort Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PresetWithDesignatedVersionStatusJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.PresetWithDesignatedVersionStatusExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ModelsGetParametersSortExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class PresetWithDesignatedVersionStatusJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.PresetWithDesignatedVersionStatus)numValue; + return (global::OpenRouter.ModelsGetParametersSort)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.PresetWithDesignatedVersionStatus); + return default(global::OpenRouter.ModelsGetParametersSort); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class PresetWithDesignatedVersionStatusJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.PresetWithDesignatedVersionStatus value, + global::OpenRouter.ModelsGetParametersSort value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.PresetWithDesignatedVersionStatusExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ModelsGetParametersSortExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSortNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSortNullable.g.cs new file mode 100644 index 00000000..e5ca36bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ModelsGetParametersSortNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ModelsGetParametersSortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ModelsGetParametersSort? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ModelsGetParametersSortExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ModelsGetParametersSort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ModelsGetParametersSort?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ModelsGetParametersSort? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ModelsGetParametersSortExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatus.g.cs new file mode 100644 index 00000000..971ca184 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class PresetStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PresetStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.PresetStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.PresetStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.PresetStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PresetStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.PresetStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatusNullable.g.cs similarity index 69% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatusNullable.g.cs index 0ffe71f6..17c19d6a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PresetStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class PresetWithDesignatedVersionStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class PresetStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.PresetWithDesignatedVersionStatus? Read( + public override global::OpenRouter.PresetStatus? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PresetWithDesignatedVersionStatusNullableJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.PresetWithDesignatedVersionStatusExtensions.ToEnum(stringValue); + return global::OpenRouter.PresetStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class PresetWithDesignatedVersionStatusNullableJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.PresetWithDesignatedVersionStatus)numValue; + return (global::OpenRouter.PresetStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.PresetWithDesignatedVersionStatus?); + return default(global::OpenRouter.PresetStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class PresetWithDesignatedVersionStatusNullableJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.PresetWithDesignatedVersionStatus? value, + global::OpenRouter.PresetStatus? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.PresetWithDesignatedVersionStatusExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.PresetStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index d54a69cf..f1599e95 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1365,6 +1365,18 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter), typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), @@ -2073,6 +2085,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), @@ -2401,9 +2417,9 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter), @@ -4666,6 +4682,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter), typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), @@ -5374,6 +5402,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), @@ -5702,9 +5734,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter), @@ -6520,9 +6552,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetCreditsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersCategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSubcategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSort), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion), TypeInfoPropertyName = "RankingsDailyMetaVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat2")] @@ -6598,12 +6636,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion), TypeInfoPropertyName = "GenerationResponseDataDataRegion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName), TypeInfoPropertyName = "ProviderResponseProviderName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfGenerationResponseDataApiTypeObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput0))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput1))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7967,6 +7999,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter), typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), @@ -8675,6 +8719,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), @@ -9003,9 +9051,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter), @@ -9405,6 +9453,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfGenerationResponseDataApiTypeObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInput), TypeInfoPropertyName = "GenerationContentDataInput2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))] @@ -9816,6 +9870,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponseType), TypeInfoPropertyName = "MessagesErrorResponseType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersCategory), TypeInfoPropertyName = "ModelsGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersSort), TypeInfoPropertyName = "ModelsGetParametersSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig))] @@ -9898,13 +9953,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant7Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant8Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -11268,6 +11316,18 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter), typeof(global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter), @@ -11976,6 +12036,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ModelsGetParametersSortNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter), @@ -12304,9 +12368,9 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter), - typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.PresetStatusNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter), @@ -12706,6 +12770,13 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant10Type2")] @@ -12817,10 +12888,17 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationListOrganizationMembersResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetStatus), TypeInfoPropertyName = "PresetStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListPresetsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetDesignatedVersion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetWithDesignatedVersionStatus), TypeInfoPropertyName = "PresetWithDesignatedVersionStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetWithDesignatedVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreatePresetFromInferenceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListPresetVersionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetVersionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems), TypeInfoPropertyName = "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters), TypeInfoPropertyName = "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems))] @@ -12989,6 +13067,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -13036,6 +13115,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -13776,6 +13857,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ChatFinishReasonEnumNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatResultObjectJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ChatResultObjectNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersCategoryNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSubcategoryNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.DatasetsAppRankingsGetParametersSortNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RankingsDailyMetaVersionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RankingsDailyMetaVersionNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormatJsonConverter()); @@ -14130,6 +14217,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersCategoryJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersCategoryNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersSortJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersSortNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsLogicNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldJsonConverter()); @@ -14294,8 +14383,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PresetStatusJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PresetStatusNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 864f44f1..6eb8a4e6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -3688,3179 +3688,3235 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.RankingsDailyItem? Type915 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Type915 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMetaVersion? Type916 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Type916 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMeta? Type917 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSort? Type917 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyResponse? Type918 { get; set; } + public global::OpenRouter.AppRankingsItem? Type918 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type919 { get; set; } + public global::OpenRouter.RankingsDailyMetaVersion? Type919 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type920 { get; set; } + public global::OpenRouter.RankingsDailyMeta? Type920 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type921 { get; set; } + public global::OpenRouter.AppRankingsResponse? Type921 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type922 { get; set; } + public global::System.Collections.Generic.IList? Type922 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type923 { get; set; } + public global::OpenRouter.RankingsDailyItem? Type923 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type924 { get; set; } + public global::OpenRouter.RankingsDailyResponse? Type924 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type925 { get; set; } + public global::System.Collections.Generic.IList? Type925 { get; set; } /// /// /// - public global::OpenRouter.MultimodalMedia? Type926 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type926 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudioType? Type927 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type927 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudio? Type928 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type928 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideoType? Type929 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type929 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideo? Type930 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type930 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFileType? Type931 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type931 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFile? Type932 { get; set; } + public global::OpenRouter.MultimodalMedia? Type932 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type933 { get; set; } + public global::OpenRouter.ContentPartInputAudioType? Type933 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type934 { get; set; } + public global::OpenRouter.ContentPartInputAudio? Type934 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type935 { get; set; } + public global::OpenRouter.ContentPartInputVideoType? Type935 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type936 { get; set; } + public global::OpenRouter.ContentPartInputVideo? Type936 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type937 { get; set; } + public global::OpenRouter.ContentPartInputFileType? Type937 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type938 { get; set; } + public global::OpenRouter.ContentPartInputFile? Type938 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type939 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type939 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type940 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type940 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type941 { get; set; } + public global::System.Collections.Generic.IList? Type941 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type942 { get; set; } + public global::System.Collections.Generic.IList? Type942 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type943 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type943 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type944 { get; set; } + public global::System.Collections.Generic.IList? Type944 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type945 { get; set; } + public global::System.Collections.Generic.IList>? Type945 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type946 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type946 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type947 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type947 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type948 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type948 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type949 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type949 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type950 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type950 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type951 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type951 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type952 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type952 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type953 { get; set; } + public global::OpenRouter.OneOf? Type953 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type954 { get; set; } + public global::System.Collections.Generic.IList? Type954 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type955 { get; set; } + public global::System.Collections.Generic.IList? Type955 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type956 { get; set; } + public global::System.Collections.Generic.IList? Type956 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type957 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type957 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type958 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type958 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type959 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type959 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type960 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type960 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type961 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type961 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type962 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type962 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type963 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type963 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type964 { get; set; } + public global::System.Collections.Generic.IList? Type964 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type965 { get; set; } + public global::OpenRouter.InputModality? Type965 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type966 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type966 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type967 { get; set; } + public global::OpenRouter.OutputModality? Type967 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type968 { get; set; } + public global::OpenRouter.ModelGroup? Type968 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type969 { get; set; } + public global::OpenRouter.ModelArchitecture? Type969 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type970 { get; set; } + public global::System.Collections.Generic.IList? Type970 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type971 { get; set; } + public global::OpenRouter.OneOf? Type971 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type972 { get; set; } + public global::System.Collections.Generic.IList? Type972 { get; set; } /// /// /// - public global::OpenRouter.Model? Type973 { get; set; } + public global::OpenRouter.DefaultParameters? Type973 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type974 { get; set; } + public global::OpenRouter.ModelLinks? Type974 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type975 { get; set; } + public global::OpenRouter.PerRequestLimits? Type975 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type976 { get; set; } + public global::OpenRouter.PublicPricing? Type976 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type977 { get; set; } + public global::OpenRouter.Parameter? Type977 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type978 { get; set; } + public global::OpenRouter.TopProviderInfo? Type978 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type979 { get; set; } + public global::OpenRouter.Model? Type979 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type980 { get; set; } + public global::System.Collections.Generic.IList? Type980 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type982 { get; set; } + public global::OpenRouter.ModelsListResponse? Type982 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type983 { get; set; } + public global::OpenRouter.PercentileStats? Type983 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type984 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type984 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type985 { get; set; } + public global::OpenRouter.EndpointStatus? Type985 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type986 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type986 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type987 { get; set; } + public global::OpenRouter.PublicEndpoint? Type987 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type988 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type988 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type989 { get; set; } + public global::System.Collections.Generic.IList? Type989 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataDataRegion? Type990 { get; set; } + public global::OpenRouter.InstructType2? Type990 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type991 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type991 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type992 { get; set; } + public global::OpenRouter.OneOf? Type992 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type993 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type993 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type994 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type994 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type995 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type995 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type996 { get; set; } + public global::OpenRouter.GenerationResponseDataDataRegion? Type996 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type997 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type997 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type998 { get; set; } + public global::OpenRouter.ProviderResponse? Type998 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type999 { get; set; } + public global::OpenRouter.GenerationResponseData? Type999 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type1000 { get; set; } + public global::OpenRouter.OneOf? Type1000 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type1001 { get; set; } + public global::System.Collections.Generic.IList? Type1001 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type1002 { get; set; } + public global::OpenRouter.GenerationResponse? Type1002 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type1003 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type1003 { get; set; } /// /// /// - public global::OpenRouter.PromptInjectionScanScope? Type1004 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type1004 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type1005 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type1005 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type1006 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type1006 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type1007 { get; set; } + public global::OpenRouter.GenerationContentData? Type1007 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type1008 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type1008 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type1009 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type1009 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type1010 { get; set; } + public global::OpenRouter.PromptInjectionScanScope? Type1010 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1011 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type1011 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1012 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type1012 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type1013 { get; set; } + public global::OpenRouter.ContentFilterAction? Type1013 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1014 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type1014 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1015 { get; set; } + public global::OpenRouter.GuardrailInterval? Type1015 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type1016 { get; set; } + public global::OpenRouter.Guardrail? Type1016 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1017 { get; set; } + public global::System.Collections.Generic.IList? Type1017 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type1018 { get; set; } + public global::System.Collections.Generic.IList? Type1018 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type1019 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type1019 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type1020 { get; set; } + public global::System.Collections.Generic.IList? Type1020 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type1021 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1021 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type1022 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type1022 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type1023 { get; set; } + public global::System.Collections.Generic.IList? Type1023 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type1024 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type1024 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type1025 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type1025 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type1026 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type1026 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type1027 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type1027 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1028 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type1028 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type1029 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type1029 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type1030 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type1030 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type1031 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type1031 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type1032 { get; set; } + public global::OpenRouter.KeyAssignment? Type1032 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type1033 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type1033 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type1034 { get; set; } + public global::System.Collections.Generic.IList? Type1034 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1035 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type1035 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type1036 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type1036 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type1037 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type1037 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type1038 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type1038 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type1039 { get; set; } + public global::OpenRouter.MemberAssignment? Type1039 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1040 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type1040 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1041 { get; set; } + public global::System.Collections.Generic.IList? Type1041 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1042 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type1042 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1043 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type1043 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type1044 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type1044 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1045 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type1045 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1046 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1046 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1047 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1047 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1048 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1048 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1049 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1049 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type1050 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type1050 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1051 { get; set; } + public global::System.Collections.Generic.IList? Type1051 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1052 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1052 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1053 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1053 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1054 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1054 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1055 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1055 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1056 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type1056 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1057 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1057 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type1058 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1058 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type1059 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1059 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1060 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1060 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1061 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1061 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1062 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1062 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1063 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1063 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1064 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type1064 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1065 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type1065 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1066 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1066 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1067 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1067 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1068 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1068 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type1069 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1069 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type1070 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1070 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1071 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1071 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1072 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1072 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1073 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1073 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1074 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1074 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1075 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type1075 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1076 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type1076 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type1077 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1077 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1078 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1078 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1079 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1079 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1080 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1080 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1081 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1081 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type1082 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1082 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1083 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type1083 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1084 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1084 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1085 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1085 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1086 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1086 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1087 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1087 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1088 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type1088 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1089 { get; set; } + public global::System.Collections.Generic.IList? Type1089 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1090 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1090 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1091 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1091 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1092 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1092 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1093 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1093 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1094 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1094 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1095 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1095 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1096 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1096 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type1097 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1097 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type1098 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1098 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1099 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1099 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type1100 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1100 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type1101 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1101 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type1102 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1102 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1103 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type1103 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1104 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type1104 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1105 { get; set; } + public global::System.Collections.Generic.IList? Type1105 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1106 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type1106 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1107 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type1107 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type1108 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type1108 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type1109 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1109 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1110 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1110 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1111 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1111 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type1112 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1112 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type1113 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1113 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1114 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type1114 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type1115 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type1115 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type1116 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1116 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1117 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1117 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1118 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type1118 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1119 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type1119 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1120 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1120 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1121 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type1121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1122 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type1122 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1123 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1123 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1124 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1124 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1125 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1125 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type1126 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1126 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type1127 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1127 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1128 { get; set; } + public global::System.Collections.Generic.IList? Type1128 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type1129 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1129 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type1130 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1130 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1131 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1131 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1132 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type1132 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1133 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type1133 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1134 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1134 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1135 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type1135 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1136 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type1136 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1137 { get; set; } + public global::OpenRouter.OneOf? Type1137 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type1138 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1139 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1139 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1140 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1141 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1141 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1142 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1142 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1143 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1143 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1144 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1144 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1145 { get; set; } + public global::System.Collections.Generic.IList? Type1145 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1146 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1146 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1147 { get; set; } + public global::System.Collections.Generic.IList? Type1147 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1148 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1148 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1149 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1149 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1150 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1150 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1151 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1151 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1152 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1153 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1153 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1154 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1154 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1155 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1155 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1156 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1156 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1157 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1157 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1158 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1158 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1159 { get; set; } + public global::System.Collections.Generic.IList? Type1159 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1160 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1160 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1161 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1161 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1162 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1162 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1163 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1163 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1164 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1165 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1165 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1166 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1166 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1167 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1167 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1168 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1168 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1169 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1169 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1170 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1170 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1171 { get; set; } + public global::System.Collections.Generic.IList? Type1171 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1172 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1172 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1173 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1173 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1174 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1174 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1175 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1175 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1176 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1176 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1177 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1177 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1178 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1178 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1179 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1179 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1180 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1180 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1181 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1181 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1182 { get; set; } + public global::OpenRouter.OneOf? Type1182 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1183 { get; set; } + public global::OpenRouter.OneOf? Type1183 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1184 { get; set; } + public global::OpenRouter.OneOf? Type1184 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1185 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1185 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1186 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1186 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1187 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1187 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1188 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1188 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1189 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1189 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1190 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1190 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1191 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1191 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1192 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1192 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1193 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1193 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1194 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1194 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1195 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1195 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1196 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1196 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1197 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1197 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type1198 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1198 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1199 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1199 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1200 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1200 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1201 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1201 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1202 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1202 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1203 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1203 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1204 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type1204 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1205 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1205 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1206 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1206 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1207 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1207 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1208 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1208 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1209 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1209 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1210 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1210 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1211 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1211 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1212 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1212 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1213 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1213 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1214 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1214 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1215 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1215 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1216 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1216 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1217 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1217 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1218 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1218 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1219 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1219 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1220 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1220 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1221 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1221 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1222 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1222 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1223 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1223 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1224 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1224 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1225 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1225 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1226 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1226 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1227 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1227 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1228 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1228 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1229 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1229 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1230 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1230 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1231 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1232 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1232 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1233 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1233 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1234 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1234 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1235 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1235 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1236 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1236 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1237 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1237 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1238 { get; set; } + public global::System.Collections.Generic.IList? Type1238 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1239 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1239 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1240 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1240 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems12? Type1241 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1241 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1242 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1242 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1243 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1243 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1244 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1245 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1246 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1247 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems12? Type1247 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1248 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1248 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1249 { get; set; } + public global::OpenRouter.MessagesRequest? Type1249 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1250 { get; set; } + public global::OpenRouter.OneOf? Type1250 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1251 { get; set; } + public global::System.Collections.Generic.IList? Type1251 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1252 { get; set; } + public global::System.Collections.Generic.IList? Type1252 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1253 { get; set; } + public global::System.Collections.Generic.IList? Type1253 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1254 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1254 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1255 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1256 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1256 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1257 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1257 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1258 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1258 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1259 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1259 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1260 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1260 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1261 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1261 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1262 { get; set; } + public global::System.Collections.Generic.IList? Type1262 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1263 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1263 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1264 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1264 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1265 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1265 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1266 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1266 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1267 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1268 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1268 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1269 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1269 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1270 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1270 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1271 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1271 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1272 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1272 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1273 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1273 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1274 { get; set; } + public global::System.Collections.Generic.IList? Type1274 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1275 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1275 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1276 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1276 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1277 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1277 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1278 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1278 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1279 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1279 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1280 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1280 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1281 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1281 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1282 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1282 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1283 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1283 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1284 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1284 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1285 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1285 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1286 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1286 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1287 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1287 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1288 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1288 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1289 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1289 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1290 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1290 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1291 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1291 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1292 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1292 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1293 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1293 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1294 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1294 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1295 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1295 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1296 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1296 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1297 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1297 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1298 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1298 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1299 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1299 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1300 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1300 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1301 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1301 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1302 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1302 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1303 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1303 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1304 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1304 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1305 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1305 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1306 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1306 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1307 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1307 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1308 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1308 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1309 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1309 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1310 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1310 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1311 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1311 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1312 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1312 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1313 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1313 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1314 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1314 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1315 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1316 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1316 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1317 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1317 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1318 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1318 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1319 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1319 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1320 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1320 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1321 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1321 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1322 { get; set; } + public global::System.Collections.Generic.IList? Type1322 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1323 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1323 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1324 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1324 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1325 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1325 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1326 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1326 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1327 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1327 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1328 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1328 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1329 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1329 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1330 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1330 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1331 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1331 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1332 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1332 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1333 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1333 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1334 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1334 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1335 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1335 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1336 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1336 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1337 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1337 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1338 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1338 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1339 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1339 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1340 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1340 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1341 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1342 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1342 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1343 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1343 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1344 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1344 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1345 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1345 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1346 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1346 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1347 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1347 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1348 { get; set; } + public global::System.Collections.Generic.IList? Type1348 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1349 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1349 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1350 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1350 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1351 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1351 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1352 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1352 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1353 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1353 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1354 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1354 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1355 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1355 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1356 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1356 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1357 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1357 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1358 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1358 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1359 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1359 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1360 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1360 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1361 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1361 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1362 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1363 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1363 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1364 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1364 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1365 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1365 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1366 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1366 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1367 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1367 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1368 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1368 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1369 { get; set; } + public global::System.Collections.Generic.IList? Type1369 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1370 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1370 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1371 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1371 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1372 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1372 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1373 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1373 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1374 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1374 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1375 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1375 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1376 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1376 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1377 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1377 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1378 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1378 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1379 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1379 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1380 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1380 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1381 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1381 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1382 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1382 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1383 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1383 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1384 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1384 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1385 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1385 { get; set; } /// /// /// - public global::OpenRouter.AnthropicOutputTokensDetails? Type1386 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1386 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1387 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1387 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1388 { get; set; } + public global::OpenRouter.OneOf? Type1388 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type1389 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1389 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1390 { get; set; } + public global::OpenRouter.MessagesResultType? Type1390 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type1391 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type1391 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type1392 { get; set; } + public global::OpenRouter.AnthropicOutputTokensDetails? Type1392 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type1393 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1393 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1394 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1394 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1395 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type1395 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type1396 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1396 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type1397 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type1397 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1398 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type1398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1399 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type1399 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1400 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1400 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1401 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1402 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type1402 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1403 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type1403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1404 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1404 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1405 { get; set; } + public global::System.Collections.Generic.IList? Type1405 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1406 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1406 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1407 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1407 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1408 { get; set; } + public global::System.Collections.Generic.IList? Type1408 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1409 { get; set; } + public global::OpenRouter.MessagesResult? Type1409 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1410 { get; set; } + public global::System.Collections.Generic.IList? Type1410 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1411 { get; set; } + public global::OpenRouter.OneOf? Type1411 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1412 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1412 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1413 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1413 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1414 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1414 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1415 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1415 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1416 { get; set; } + public global::OpenRouter.ModelsGetParametersSort? Type1416 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1417 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1417 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1418 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1419 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1419 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfig? Type1420 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1421 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1421 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1422 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1422 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1423 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1423 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1424 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1424 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1425 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1425 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1426 { get; set; } + public global::System.Collections.Generic.IList? Type1426 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1427 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1427 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1428 { get; set; } + public global::System.Collections.Generic.IList? Type1428 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1429 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1429 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1430 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1430 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1431 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1431 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1432 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1432 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1433 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1433 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1434 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1434 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1435 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1435 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1436 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1436 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1437 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1437 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1438 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1438 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1439 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1439 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestination? Type1440 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1440 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1? Type1441 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1441 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1442 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1442 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2? Type1443 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1443 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1444 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1444 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3? Type1445 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1445 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1446 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1446 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4? Type1447 { get; set; } + public global::OpenRouter.ObservabilityDestination? Type1447 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1448 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1? Type1448 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5? Type1449 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1449 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1450 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2? Type1450 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6? Type1451 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1451 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1452 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3? Type1452 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7? Type1453 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1453 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1454 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4? Type1454 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8? Type1455 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1455 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1456 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5? Type1456 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9? Type1457 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1457 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1458 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6? Type1458 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10? Type1459 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1459 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1460 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7? Type1460 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11? Type1461 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1461 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1462 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8? Type1462 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12? Type1463 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1463 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1464 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9? Type1464 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13? Type1465 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1465 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1466 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10? Type1466 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14? Type1467 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1467 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1468 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11? Type1468 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15? Type1469 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1469 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1470 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12? Type1470 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16? Type1471 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1471 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1472 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13? Type1472 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17? Type1473 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1473 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1474 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14? Type1474 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1475 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1475 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1476 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15? Type1476 { get; set; } /// /// /// - public global::OpenRouter.ListObservabilityDestinationsResponse? Type1477 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1478 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16? Type1478 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1479 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1479 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequest? Type1480 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17? Type1480 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1481 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1481 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1482 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1482 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1483 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1483 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1484 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1484 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1485 { get; set; } + public global::System.Collections.Generic.IList? Type1485 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1486 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1486 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1487 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequest? Type1487 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1488 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1488 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1489 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1489 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1490 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1490 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1491 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1491 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1492 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1492 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1493 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1493 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1494 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1494 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1495 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1495 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1496 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1496 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1497 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1497 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1498 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1498 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1499 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1499 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1500 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1500 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1501 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1501 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1502 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1502 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1503 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1503 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1504 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1504 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1505 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1505 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1506 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1506 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1507 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1507 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1508 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1508 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1509 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1509 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1510 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1510 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1511 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1511 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1512 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1512 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1513 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1513 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1514 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1514 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1515 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1515 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1516 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1516 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1517 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1517 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponse? Type1518 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1518 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseData? Type1519 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1519 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1520 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1520 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1521 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1521 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1522 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1522 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1523 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1523 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1524 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1524 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1525 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponse? Type1525 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1526 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseData? Type1526 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1527 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1527 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1528 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1528 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1529 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1529 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1530 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1530 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1531 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1531 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1532 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1532 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1533 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1533 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1534 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1534 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1535 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1535 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1536 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1536 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1537 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1537 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1538 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1538 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1539 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1539 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1540 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1540 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1541 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1541 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1542 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1542 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1543 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1543 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1544 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1544 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1545 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1545 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1546 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1546 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1547 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1547 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1548 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1548 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1549 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1549 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1550 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1550 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1551 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1551 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1552 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1552 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1553 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1553 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1554 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1554 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1555 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1555 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponse? Type1556 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1556 { get; set; } /// /// /// - public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1557 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1557 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1558 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1558 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1559 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1559 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1560 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1560 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1561 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1561 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1562 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1562 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1563 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponse? Type1563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1564 { get; set; } + public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1564 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1565 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1565 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1566 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1566 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1567 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1567 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1568 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1568 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1569 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1569 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1570 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1570 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1571 { get; set; } + public global::System.Collections.Generic.IList? Type1571 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1572 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1572 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1573 { get; set; } + public global::System.Collections.Generic.IList? Type1573 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1574 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1574 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1575 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1575 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1576 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1576 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1577 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1577 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1578 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1578 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1579 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1579 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1580 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1580 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1581 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1581 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1582 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1582 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1583 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1583 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1584 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1584 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1585 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1585 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1586 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1586 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1587 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1587 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1588 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1588 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1589 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1589 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1590 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1590 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1591 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1591 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1592 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1592 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1593 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1593 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1594 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1594 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1595 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1595 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1596 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1596 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1597 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1597 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1598 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1598 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1599 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1599 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1600 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1600 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1601 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1601 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1602 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1602 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1603 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1603 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1604 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1604 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1605 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1605 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1606 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1606 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1607 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1607 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1608 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1608 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1609 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1609 { get; set; } /// /// /// - public global::OpenRouter.PresetDesignatedVersion? Type1610 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1610 { get; set; } /// /// /// - public global::OpenRouter.PresetWithDesignatedVersionStatus? Type1611 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1611 { get; set; } /// /// /// - public global::OpenRouter.PresetWithDesignatedVersion? Type1612 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1612 { get; set; } /// /// /// - public global::OpenRouter.CreatePresetFromInferenceResponse? Type1613 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1613 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1614 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1614 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1615 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1615 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1616 { get; set; } + public global::System.Collections.Generic.IList? Type1616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1617 { get; set; } + public global::OpenRouter.PresetStatus? Type1617 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1618 { get; set; } + public global::OpenRouter.Preset? Type1618 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1619 { get; set; } + public global::OpenRouter.ListPresetsResponse? Type1619 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1620 { get; set; } + public global::System.Collections.Generic.IList? Type1620 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1621 { get; set; } + public global::OpenRouter.PresetDesignatedVersion? Type1621 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1622 { get; set; } + public global::OpenRouter.PresetWithDesignatedVersion? Type1622 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1623 { get; set; } + public global::OpenRouter.GetPresetResponse? Type1623 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1624 { get; set; } + public global::OpenRouter.CreatePresetFromInferenceResponse? Type1624 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1625 { get; set; } + public global::OpenRouter.ListPresetVersionsResponse? Type1625 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1626 { get; set; } + public global::System.Collections.Generic.IList? Type1626 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1627 { get; set; } + public global::OpenRouter.GetPresetVersionResponse? Type1627 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1628 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1628 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1629 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1629 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1630 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1630 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1631 { get; set; } + public global::System.Collections.Generic.IList? Type1631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1632 { get; set; } + public global::OpenRouter.OneOf? Type1632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1633 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type1633 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1634 { get; set; } + public global::System.Collections.Generic.IList? Type1634 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1635 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1635 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1636 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1636 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1637 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1638 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1638 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1639 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1639 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1640 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1640 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1641 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1641 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1642 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1642 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1643 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1643 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1644 { get; set; } + public global::OpenRouter.OneOf? Type1644 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type1645 { get; set; } + public global::System.Collections.Generic.IList? Type1645 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1646 { get; set; } + public global::System.Collections.Generic.IList? Type1646 { get; set; } /// /// /// - public global::OpenRouter.InputReference? Type1647 { get; set; } + public global::System.Collections.Generic.IList? Type1647 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1? Type1648 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1648 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1Type? Type1649 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1649 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2? Type1650 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1650 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2Type? Type1651 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type1651 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3? Type1652 { get; set; } + public global::System.Collections.Generic.IList? Type1652 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3Type? Type1653 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1653 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminator? Type1654 { get; set; } + public global::OpenRouter.FrameImageImageUrl? Type1654 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorType? Type1655 { get; set; } + public global::OpenRouter.FrameImageType? Type1655 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1656 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1656 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1657 { get; set; } + public global::OpenRouter.FrameImage? Type1657 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1658 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1658 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1659 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type1659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1660 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1660 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1661 { get; set; } + public global::OpenRouter.InputReference? Type1661 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1662 { get; set; } + public global::OpenRouter.InputReferenceVariant1? Type1662 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1663 { get; set; } + public global::OpenRouter.InputReferenceVariant1Type? Type1663 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1664 { get; set; } + public global::OpenRouter.InputReferenceVariant2? Type1664 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1665 { get; set; } + public global::OpenRouter.InputReferenceVariant2Type? Type1665 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1666 { get; set; } + public global::OpenRouter.InputReferenceVariant3? Type1666 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1667 { get; set; } + public global::OpenRouter.InputReferenceVariant3Type? Type1667 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1668 { get; set; } + public global::OpenRouter.InputReferenceDiscriminator? Type1668 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1669 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorType? Type1669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1670 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1671 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1671 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1672 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1673 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1673 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1674 { get; set; } + public global::System.Collections.Generic.IList? Type1674 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1675 { get; set; } + public global::System.Collections.Generic.IList? Type1675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1676 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1676 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1677 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1677 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1678 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1679 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1679 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1680 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1680 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1681 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1681 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1682 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1682 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1683 { get; set; } + public global::OpenRouter.VideoModel? Type1683 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1684 { get; set; } + public global::System.Collections.Generic.IList? Type1684 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1685 { get; set; } + public global::System.Collections.Generic.IList? Type1685 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1686 { get; set; } + public global::System.Collections.Generic.IList? Type1686 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1687 { get; set; } + public global::System.Collections.Generic.IList? Type1687 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1688 { get; set; } + public global::System.Collections.Generic.IList? Type1688 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1689 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1689 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1690 { get; set; } + public global::System.Collections.Generic.IList? Type1690 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1691 { get; set; } + public global::OpenRouter.Workspace? Type1691 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1692 { get; set; } + public global::OpenRouter.ListWorkspacesResponse? Type1692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1693 { get; set; } + public global::System.Collections.Generic.IList? Type1693 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1694 { get; set; } + public global::OpenRouter.CreateWorkspaceRequest? Type1694 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1695 { get; set; } + public global::OpenRouter.CreateWorkspaceResponseData? Type1695 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1696 { get; set; } + public global::OpenRouter.CreateWorkspaceResponse? Type1696 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1697 { get; set; } + public global::OpenRouter.GetWorkspaceResponseData? Type1697 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1698 { get; set; } + public global::OpenRouter.GetWorkspaceResponse? Type1698 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequest? Type1699 { get; set; } + public global::OpenRouter.DeleteWorkspaceResponse? Type1699 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1700 { get; set; } + public global::OpenRouter.UpdateWorkspaceRequest? Type1700 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1701 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponseData? Type1701 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1702 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponse? Type1702 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1703 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1703 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1704 { get; set; } + public global::OpenRouter.WorkspaceMemberRole? Type1704 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1705 { get; set; } + public global::OpenRouter.WorkspaceMember? Type1705 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1706 { get; set; } + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1707 { get; set; } + public global::System.Collections.Generic.IList? Type1707 { get; set; } /// /// /// - public byte[]? Type1708 { get; set; } + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1708 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1709 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1710 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1711 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1712 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsRequest? Type1713 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1714 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1715 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1716 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1717 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1718 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1719 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1720 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1721 { get; set; } + /// + /// + /// + public byte[]? Type1722 { get; set; } /// /// @@ -7157,262 +7213,274 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType74 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType75 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List>? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.Json.g.cs new file mode 100644 index 00000000..40fd64f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AppRankingsItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AppRankingsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AppRankingsItem), + jsonSerializerContext) as global::OpenRouter.AppRankingsItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.AppRankingsItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.AppRankingsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AppRankingsItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.g.cs new file mode 100644 index 00000000..f7cde3d0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsItem.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AppRankingsItem + { + /// + /// Stable numeric identifier of the app on OpenRouter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("app_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AppId { get; set; } + + /// + /// Public display name of the app. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("app_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AppName { get; set; } + + /// + /// 1-based position of the app within this response, per the requested `sort`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rank")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Rank { get; set; } + + /// + /// Number of requests attributed to the app inside the date window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_requests")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalRequests { get; set; } + + /// + /// Sum of `prompt_tokens + completion_tokens` attributed to the app inside the date window, returned as a decimal string so 64-bit values are not truncated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TotalTokens { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Stable numeric identifier of the app on OpenRouter. + /// + /// + /// Public display name of the app. + /// + /// + /// 1-based position of the app within this response, per the requested `sort`. + /// + /// + /// Number of requests attributed to the app inside the date window. + /// + /// + /// Sum of `prompt_tokens + completion_tokens` attributed to the app inside the date window, returned as a decimal string so 64-bit values are not truncated. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AppRankingsItem( + int appId, + string appName, + int rank, + int totalRequests, + string totalTokens) + { + this.AppId = appId; + this.AppName = appName ?? throw new global::System.ArgumentNullException(nameof(appName)); + this.Rank = rank; + this.TotalRequests = totalRequests; + this.TotalTokens = totalTokens ?? throw new global::System.ArgumentNullException(nameof(totalTokens)); + } + + /// + /// Initializes a new instance of the class. + /// + public AppRankingsItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.Json.g.cs new file mode 100644 index 00000000..7a8fb427 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class AppRankingsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.AppRankingsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.AppRankingsResponse), + jsonSerializerContext) as global::OpenRouter.AppRankingsResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.AppRankingsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.AppRankingsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.AppRankingsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.g.cs new file mode 100644 index 00000000..429b15ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.AppRankingsResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class AppRankingsResponse + { + /// + /// Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.RankingsDailyMeta Meta { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AppRankingsResponse( + global::System.Collections.Generic.IList data, + global::OpenRouter.RankingsDailyMeta meta) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Meta = meta ?? throw new global::System.ArgumentNullException(nameof(meta)); + } + + /// + /// Initializes a new instance of the class. + /// + public AppRankingsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersCategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersCategory.g.cs new file mode 100644 index 00000000..6e0c4daf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersCategory.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group. + /// + public enum DatasetsAppRankingsGetParametersCategory + { + /// + /// + /// + Coding, + /// + /// + /// + Creative, + /// + /// + /// + Entertainment, + /// + /// + /// + Productivity, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsAppRankingsGetParametersCategoryExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsAppRankingsGetParametersCategory value) + { + return value switch + { + DatasetsAppRankingsGetParametersCategory.Coding => "coding", + DatasetsAppRankingsGetParametersCategory.Creative => "creative", + DatasetsAppRankingsGetParametersCategory.Entertainment => "entertainment", + DatasetsAppRankingsGetParametersCategory.Productivity => "productivity", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsAppRankingsGetParametersCategory? ToEnum(string value) + { + return value switch + { + "coding" => DatasetsAppRankingsGetParametersCategory.Coding, + "creative" => DatasetsAppRankingsGetParametersCategory.Creative, + "entertainment" => DatasetsAppRankingsGetParametersCategory.Entertainment, + "productivity" => DatasetsAppRankingsGetParametersCategory.Productivity, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSort.g.cs new file mode 100644 index 00000000..4fa8b825 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSort.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
+ /// Default Value: popular + ///
+ public enum DatasetsAppRankingsGetParametersSort + { + /// + /// window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results. + /// + Popular, + /// + /// window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results. + /// + Trending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsAppRankingsGetParametersSortExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsAppRankingsGetParametersSort value) + { + return value switch + { + DatasetsAppRankingsGetParametersSort.Popular => "popular", + DatasetsAppRankingsGetParametersSort.Trending => "trending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsAppRankingsGetParametersSort? ToEnum(string value) + { + return value switch + { + "popular" => DatasetsAppRankingsGetParametersSort.Popular, + "trending" => DatasetsAppRankingsGetParametersSort.Trending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSubcategory.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSubcategory.g.cs new file mode 100644 index 00000000..051efd5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DatasetsAppRankingsGetParametersSubcategory.g.cs @@ -0,0 +1,129 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent. + /// + public enum DatasetsAppRankingsGetParametersSubcategory + { + /// + /// + /// + AudioGen, + /// + /// + /// + CliAgent, + /// + /// + /// + CloudAgent, + /// + /// + /// + CreativeWriting, + /// + /// + /// + Game, + /// + /// + /// + GeneralChat, + /// + /// + /// + IdeExtension, + /// + /// + /// + ImageGen, + /// + /// + /// + Legal, + /// + /// + /// + NativeAppBuilder, + /// + /// + /// + PersonalAgent, + /// + /// + /// + ProgrammingApp, + /// + /// + /// + Roleplay, + /// + /// + /// + VideoGen, + /// + /// + /// + WritingAssistant, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DatasetsAppRankingsGetParametersSubcategoryExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DatasetsAppRankingsGetParametersSubcategory value) + { + return value switch + { + DatasetsAppRankingsGetParametersSubcategory.AudioGen => "audio-gen", + DatasetsAppRankingsGetParametersSubcategory.CliAgent => "cli-agent", + DatasetsAppRankingsGetParametersSubcategory.CloudAgent => "cloud-agent", + DatasetsAppRankingsGetParametersSubcategory.CreativeWriting => "creative-writing", + DatasetsAppRankingsGetParametersSubcategory.Game => "game", + DatasetsAppRankingsGetParametersSubcategory.GeneralChat => "general-chat", + DatasetsAppRankingsGetParametersSubcategory.IdeExtension => "ide-extension", + DatasetsAppRankingsGetParametersSubcategory.ImageGen => "image-gen", + DatasetsAppRankingsGetParametersSubcategory.Legal => "legal", + DatasetsAppRankingsGetParametersSubcategory.NativeAppBuilder => "native-app-builder", + DatasetsAppRankingsGetParametersSubcategory.PersonalAgent => "personal-agent", + DatasetsAppRankingsGetParametersSubcategory.ProgrammingApp => "programming-app", + DatasetsAppRankingsGetParametersSubcategory.Roleplay => "roleplay", + DatasetsAppRankingsGetParametersSubcategory.VideoGen => "video-gen", + DatasetsAppRankingsGetParametersSubcategory.WritingAssistant => "writing-assistant", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DatasetsAppRankingsGetParametersSubcategory? ToEnum(string value) + { + return value switch + { + "audio-gen" => DatasetsAppRankingsGetParametersSubcategory.AudioGen, + "cli-agent" => DatasetsAppRankingsGetParametersSubcategory.CliAgent, + "cloud-agent" => DatasetsAppRankingsGetParametersSubcategory.CloudAgent, + "creative-writing" => DatasetsAppRankingsGetParametersSubcategory.CreativeWriting, + "game" => DatasetsAppRankingsGetParametersSubcategory.Game, + "general-chat" => DatasetsAppRankingsGetParametersSubcategory.GeneralChat, + "ide-extension" => DatasetsAppRankingsGetParametersSubcategory.IdeExtension, + "image-gen" => DatasetsAppRankingsGetParametersSubcategory.ImageGen, + "legal" => DatasetsAppRankingsGetParametersSubcategory.Legal, + "native-app-builder" => DatasetsAppRankingsGetParametersSubcategory.NativeAppBuilder, + "personal-agent" => DatasetsAppRankingsGetParametersSubcategory.PersonalAgent, + "programming-app" => DatasetsAppRankingsGetParametersSubcategory.ProgrammingApp, + "roleplay" => DatasetsAppRankingsGetParametersSubcategory.Roleplay, + "video-gen" => DatasetsAppRankingsGetParametersSubcategory.VideoGen, + "writing-assistant" => DatasetsAppRankingsGetParametersSubcategory.WritingAssistant, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.Json.g.cs new file mode 100644 index 00000000..a2496295 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetPresetResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetPresetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetPresetResponse), + jsonSerializerContext) as global::OpenRouter.GetPresetResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.GetPresetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GetPresetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetPresetResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.g.cs new file mode 100644 index 00000000..cc755666 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A preset with its currently designated version. + /// + public sealed partial class GetPresetResponse + { + /// + /// A preset with its currently designated version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.PresetWithDesignatedVersion Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A preset with its currently designated version. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetPresetResponse( + global::OpenRouter.PresetWithDesignatedVersion data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetPresetResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.Json.g.cs new file mode 100644 index 00000000..436fce4b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class GetPresetVersionResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.GetPresetVersionResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.GetPresetVersionResponse), + jsonSerializerContext) as global::OpenRouter.GetPresetVersionResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.GetPresetVersionResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.GetPresetVersionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.GetPresetVersionResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.g.cs new file mode 100644 index 00000000..4dd72e6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetPresetVersionResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A single version of a preset. + /// + public sealed partial class GetPresetVersionResponse + { + /// + /// A specific version of a preset, containing config and optional system prompt. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.PresetDesignatedVersion Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A specific version of a preset, containing config and optional system prompt. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetPresetVersionResponse( + global::OpenRouter.PresetDesignatedVersion data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetPresetVersionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.Json.g.cs new file mode 100644 index 00000000..0d2edb17 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ListPresetVersionsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ListPresetVersionsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ListPresetVersionsResponse), + jsonSerializerContext) as global::OpenRouter.ListPresetVersionsResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ListPresetVersionsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ListPresetVersionsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ListPresetVersionsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.g.cs new file mode 100644 index 00000000..7d7b7fb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetVersionsResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A paginated list of preset versions. + /// + public sealed partial class ListPresetVersionsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListPresetVersionsResponse( + global::System.Collections.Generic.IList data, + int totalCount) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.TotalCount = totalCount; + } + + /// + /// Initializes a new instance of the class. + /// + public ListPresetVersionsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.Json.g.cs new file mode 100644 index 00000000..3e51771e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ListPresetsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ListPresetsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ListPresetsResponse), + jsonSerializerContext) as global::OpenRouter.ListPresetsResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ListPresetsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ListPresetsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ListPresetsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.g.cs new file mode 100644 index 00000000..7ce5047c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListPresetsResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A paginated list of presets. + /// + public sealed partial class ListPresetsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListPresetsResponse( + global::System.Collections.Generic.IList data, + int totalCount) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.TotalCount = totalCount; + } + + /// + /// Initializes a new instance of the class. + /// + public ListPresetsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs new file mode 100644 index 00000000..063cf549 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelsGetParametersSort.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + public enum ModelsGetParametersSort + { + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + ContextHighToLow, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + LatencyLowToHigh, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + MostPopular, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + Newest, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + PricingHighToLow, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + PricingLowToHigh, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + ThroughputHighToLow, + /// + /// pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// + TopWeekly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ModelsGetParametersSortExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ModelsGetParametersSort value) + { + return value switch + { + ModelsGetParametersSort.ContextHighToLow => "context-high-to-low", + ModelsGetParametersSort.LatencyLowToHigh => "latency-low-to-high", + ModelsGetParametersSort.MostPopular => "most-popular", + ModelsGetParametersSort.Newest => "newest", + ModelsGetParametersSort.PricingHighToLow => "pricing-high-to-low", + ModelsGetParametersSort.PricingLowToHigh => "pricing-low-to-high", + ModelsGetParametersSort.ThroughputHighToLow => "throughput-high-to-low", + ModelsGetParametersSort.TopWeekly => "top-weekly", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ModelsGetParametersSort? ToEnum(string value) + { + return value switch + { + "context-high-to-low" => ModelsGetParametersSort.ContextHighToLow, + "latency-low-to-high" => ModelsGetParametersSort.LatencyLowToHigh, + "most-popular" => ModelsGetParametersSort.MostPopular, + "newest" => ModelsGetParametersSort.Newest, + "pricing-high-to-low" => ModelsGetParametersSort.PricingHighToLow, + "pricing-low-to-high" => ModelsGetParametersSort.PricingLowToHigh, + "throughput-high-to-low" => ModelsGetParametersSort.ThroughputHighToLow, + "top-weekly" => ModelsGetParametersSort.TopWeekly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.Json.g.cs new file mode 100644 index 00000000..4014e1ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Preset + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Preset? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Preset), + jsonSerializerContext) as global::OpenRouter.Preset; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.Preset? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.Preset), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Preset; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.g.cs new file mode 100644 index 00000000..19509328 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Preset.g.cs @@ -0,0 +1,143 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A preset without version details. + /// + public sealed partial class Preset + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("creator_user_id")] + public string? CreatorUserId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("designated_version_id")] + public string? DesignatedVersionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// The status of a preset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.PresetStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_updated_at")] + public string? StatusUpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public string? WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// The status of a preset. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Preset( + string createdAt, + string id, + string name, + string slug, + global::OpenRouter.PresetStatus status, + string updatedAt, + string? creatorUserId, + string? description, + string? designatedVersionId, + string? statusUpdatedAt, + string? workspaceId) + { + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.CreatorUserId = creatorUserId; + this.Description = description; + this.DesignatedVersionId = designatedVersionId; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Status = status; + this.StatusUpdatedAt = statusUpdatedAt; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public Preset() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersionStatus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetStatus.g.cs similarity index 55% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersionStatus.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.PresetStatus.g.cs index 7702f6a4..2f89ddb2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersionStatus.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetStatus.g.cs @@ -4,9 +4,9 @@ namespace OpenRouter { /// - /// + /// The status of a preset. /// - public enum PresetWithDesignatedVersionStatus + public enum PresetStatus { /// /// @@ -25,31 +25,31 @@ public enum PresetWithDesignatedVersionStatus /// /// Enum extensions to do fast conversions without the reflection. /// - public static class PresetWithDesignatedVersionStatusExtensions + public static class PresetStatusExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this PresetWithDesignatedVersionStatus value) + public static string ToValueString(this PresetStatus value) { return value switch { - PresetWithDesignatedVersionStatus.Active => "active", - PresetWithDesignatedVersionStatus.Archived => "archived", - PresetWithDesignatedVersionStatus.Disabled => "disabled", + PresetStatus.Active => "active", + PresetStatus.Archived => "archived", + PresetStatus.Disabled => "disabled", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static PresetWithDesignatedVersionStatus? ToEnum(string value) + public static PresetStatus? ToEnum(string value) { return value switch { - "active" => PresetWithDesignatedVersionStatus.Active, - "archived" => PresetWithDesignatedVersionStatus.Archived, - "disabled" => PresetWithDesignatedVersionStatus.Disabled, + "active" => PresetStatus.Active, + "archived" => PresetStatus.Archived, + "disabled" => PresetStatus.Disabled, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersion.g.cs index ff43f235..ccf8f3a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersion.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PresetWithDesignatedVersion.g.cs @@ -27,13 +27,6 @@ public sealed partial class PresetWithDesignatedVersion [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } - /// - /// A specific version of a preset, containing config and optional system prompt. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("designated_version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.PresetDesignatedVersion DesignatedVersion { get; set; } - /// /// /// @@ -62,12 +55,12 @@ public sealed partial class PresetWithDesignatedVersion public required string Slug { get; set; } /// - /// + /// The status of a preset. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PresetWithDesignatedVersionStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.PresetStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.PresetWithDesignatedVersionStatus Status { get; set; } + public required global::OpenRouter.PresetStatus Status { get; set; } /// /// @@ -88,6 +81,13 @@ public sealed partial class PresetWithDesignatedVersion [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] public string? WorkspaceId { get; set; } + /// + /// A specific version of a preset, containing config and optional system prompt. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("designated_version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.PresetDesignatedVersion DesignatedVersion { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -98,14 +98,16 @@ public sealed partial class PresetWithDesignatedVersion /// Initializes a new instance of the class. /// /// - /// - /// A specific version of a preset, containing config and optional system prompt. - /// /// /// /// - /// + /// + /// The status of a preset. + /// /// + /// + /// A specific version of a preset, containing config and optional system prompt. + /// /// /// /// @@ -116,12 +118,12 @@ public sealed partial class PresetWithDesignatedVersion #endif public PresetWithDesignatedVersion( string createdAt, - global::OpenRouter.PresetDesignatedVersion designatedVersion, string id, string name, string slug, - global::OpenRouter.PresetWithDesignatedVersionStatus status, + global::OpenRouter.PresetStatus status, string updatedAt, + global::OpenRouter.PresetDesignatedVersion designatedVersion, string? creatorUserId, string? description, string? designatedVersionId, @@ -131,7 +133,6 @@ public PresetWithDesignatedVersion( this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); this.CreatorUserId = creatorUserId; this.Description = description; - this.DesignatedVersion = designatedVersion ?? throw new global::System.ArgumentNullException(nameof(designatedVersion)); this.DesignatedVersionId = designatedVersionId; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); @@ -140,6 +141,7 @@ public PresetWithDesignatedVersion( this.StatusUpdatedAt = statusUpdatedAt; this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); this.WorkspaceId = workspaceId; + this.DesignatedVersion = designatedVersion ?? throw new global::System.ArgumentNullException(nameof(designatedVersion)); } /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageDatasetsClient.GetAppRankings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageDatasetsClient.GetAppRankings.g.cs new file mode 100644 index 00000000..1cd95a61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageDatasetsClient.GetAppRankings.g.cs @@ -0,0 +1,693 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageDatasetsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetAppRankingsSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetAppRankingsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_GetAppRankingsSecurityRequirement0, + }; + partial void PrepareGetAppRankingsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category, + ref global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory, + ref global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort, + ref string? startDate, + ref string? endDate, + ref int? limit, + ref int? offset); + partial void PrepareGetAppRankingsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort, + string? startDate, + string? endDate, + int? limit, + int? offset); + partial void ProcessGetAppRankingsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetAppRankingsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Top apps by token usage
+ /// Returns the top public apps on OpenRouter ranked by token usage inside the requested
+ /// date window, matching the public apps marketplace on openrouter.ai/apps. Token totals
+ /// are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and
+ /// traffic from related app aliases is merged into the canonical visible app.
+ /// `sort=popular` (default) ranks by total token volume inside the window.
+ /// `sort=trending` ranks by absolute excess token growth: window volume minus the average
+ /// volume of the three equal-length periods immediately preceding the window. Apps with
+ /// no excess growth are omitted, so `trending` may return fewer than `limit` rows.
+ /// Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory`
+ /// (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —
+ /// `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.
+ /// Authenticate with any valid OpenRouter API key (same key used for inference).
+ /// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
+ /// When republishing or quoting this dataset, OpenRouter must be cited as:
+ /// "Source: OpenRouter (openrouter.ai/apps), as of {as_of}."
+ /// Token counts come from each upstream provider's own tokenizer, so a token attributed
+ /// to one app is not directly comparable to a token attributed to another app whose
+ /// traffic flows through a different provider. + ///
+ /// + /// Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group. + /// + /// + /// Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent. + /// + /// + /// `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
+ /// Default Value: popular + /// + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: 0 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetAppRankingsAsync( + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort = default, + string? startDate = default, + string? endDate = default, + int? limit = default, + int? offset = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetAppRankingsAsResponseAsync( + category: category, + subcategory: subcategory, + sort: sort, + startDate: startDate, + endDate: endDate, + limit: limit, + offset: offset, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Top apps by token usage
+ /// Returns the top public apps on OpenRouter ranked by token usage inside the requested
+ /// date window, matching the public apps marketplace on openrouter.ai/apps. Token totals
+ /// are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and
+ /// traffic from related app aliases is merged into the canonical visible app.
+ /// `sort=popular` (default) ranks by total token volume inside the window.
+ /// `sort=trending` ranks by absolute excess token growth: window volume minus the average
+ /// volume of the three equal-length periods immediately preceding the window. Apps with
+ /// no excess growth are omitted, so `trending` may return fewer than `limit` rows.
+ /// Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory`
+ /// (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —
+ /// `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.
+ /// Authenticate with any valid OpenRouter API key (same key used for inference).
+ /// Rate-limited to 30 requests/minute per key and 500 requests/day per account.
+ /// When republishing or quoting this dataset, OpenRouter must be cited as:
+ /// "Source: OpenRouter (openrouter.ai/apps), as of {as_of}."
+ /// Token counts come from each upstream provider's own tokenizer, so a token attributed
+ /// to one app is not directly comparable to a token attributed to another app whose
+ /// traffic flows through a different provider. + ///
+ /// + /// Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group. + /// + /// + /// Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent. + /// + /// + /// `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
+ /// Default Value: popular + /// + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: 0 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetAppRankingsAsResponseAsync( + global::OpenRouter.DatasetsAppRankingsGetParametersCategory? category = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? subcategory = default, + global::OpenRouter.DatasetsAppRankingsGetParametersSort? sort = default, + string? startDate = default, + string? endDate = default, + int? limit = default, + int? offset = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetAppRankingsArguments( + httpClient: HttpClient, + category: ref category, + subcategory: ref subcategory, + sort: ref sort, + startDate: ref startDate, + endDate: ref endDate, + limit: ref limit, + offset: ref offset); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetAppRankingsSecurityRequirements, + operationName: "GetAppRankingsAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/datasets/app-rankings", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("category", category?.ToValueString()) + .AddOptionalParameter("subcategory", subcategory?.ToValueString()) + .AddOptionalParameter("sort", sort?.ToValueString()) + .AddOptionalParameter("start_date", startDate) + .AddOptionalParameter("end_date", endDate) + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("offset", offset?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetAppRankingsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + category: category, + subcategory: subcategory, + sort: sort, + startDate: startDate, + endDate: endDate, + limit: limit, + offset: offset); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetAppRankings", + methodName: "GetAppRankingsAsync", + pathTemplate: "\"/datasets/app-rankings\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetAppRankings", + methodName: "GetAppRankingsAsync", + pathTemplate: "\"/datasets/app-rankings\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetAppRankings", + methodName: "GetAppRankingsAsync", + pathTemplate: "\"/datasets/app-rankings\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetAppRankingsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetAppRankings", + methodName: "GetAppRankingsAsync", + pathTemplate: "\"/datasets/app-rankings\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetAppRankings", + methodName: "GetAppRankingsAsync", + pathTemplate: "\"/datasets/app-rankings\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetAppRankingsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.AppRankingsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.AppRankingsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageModelsClient.GetModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageModelsClient.GetModels.g.cs index 836bb178..91241dbe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageModelsClient.GetModels.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageModelsClient.GetModels.g.cs @@ -30,6 +30,7 @@ partial void PrepareGetModelsArguments( ref global::OpenRouter.ModelsGetParametersCategory? category, ref string? supportedParameters, ref string? outputModalities, + ref global::OpenRouter.ModelsGetParametersSort? sort, ref string? useRss, ref string? useRssChatLinks); partial void PrepareGetModelsRequest( @@ -38,6 +39,7 @@ partial void PrepareGetModelsRequest( global::OpenRouter.ModelsGetParametersCategory? category, string? supportedParameters, string? outputModalities, + global::OpenRouter.ModelsGetParametersSort? sort, string? useRss, string? useRssChatLinks); partial void ProcessGetModelsResponse( @@ -57,6 +59,9 @@ partial void ProcessGetModelsResponseContent( /// /// /// + /// + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,6 +71,7 @@ partial void ProcessGetModelsResponseContent( global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, + global::OpenRouter.ModelsGetParametersSort? sort = default, string? useRss = default, string? useRssChatLinks = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -75,6 +81,7 @@ partial void ProcessGetModelsResponseContent( category: category, supportedParameters: supportedParameters, outputModalities: outputModalities, + sort: sort, useRss: useRss, useRssChatLinks: useRssChatLinks, requestOptions: requestOptions, @@ -91,6 +98,9 @@ partial void ProcessGetModelsResponseContent( /// /// /// + /// + /// Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved. + /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -100,6 +110,7 @@ partial void ProcessGetModelsResponseContent( global::OpenRouter.ModelsGetParametersCategory? category = default, string? supportedParameters = default, string? outputModalities = default, + global::OpenRouter.ModelsGetParametersSort? sort = default, string? useRss = default, string? useRssChatLinks = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -112,6 +123,7 @@ partial void ProcessGetModelsResponseContent( category: ref category, supportedParameters: ref supportedParameters, outputModalities: ref outputModalities, + sort: ref sort, useRss: ref useRss, useRssChatLinks: ref useRssChatLinks); @@ -145,6 +157,7 @@ partial void ProcessGetModelsResponseContent( .AddOptionalParameter("category", category?.ToValueString()) .AddOptionalParameter("supported_parameters", supportedParameters) .AddOptionalParameter("output_modalities", outputModalities) + .AddOptionalParameter("sort", sort?.ToValueString()) .AddOptionalParameter("use_rss", useRss) .AddOptionalParameter("use_rss_chat_links", useRssChatLinks) ; @@ -191,6 +204,7 @@ partial void ProcessGetModelsResponseContent( category: category, supportedParameters: supportedParameters, outputModalities: outputModalities, + sort: sort, useRss: useRss, useRssChatLinks: useRssChatLinks); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPreset.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPreset.g.cs new file mode 100644 index 00000000..16e68b63 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPreset.g.cs @@ -0,0 +1,574 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackagePresetsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetPresetSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetPresetSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_GetPresetSecurityRequirement0, + }; + partial void PrepareGetPresetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string slug); + partial void PrepareGetPresetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string slug); + partial void ProcessGetPresetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetPresetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a preset
+ /// Retrieves a preset by its slug with its currently designated version inline. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetPresetAsync( + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetPresetAsResponseAsync( + slug: slug, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get a preset
+ /// Retrieves a preset by its slug with its currently designated version inline. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetPresetAsResponseAsync( + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetPresetArguments( + httpClient: HttpClient, + slug: ref slug); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetPresetSecurityRequirements, + operationName: "GetPresetAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/presets/{slug}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetPresetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + slug: slug!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPreset", + methodName: "GetPresetAsync", + pathTemplate: "$\"/presets/{slug}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPreset", + methodName: "GetPresetAsync", + pathTemplate: "$\"/presets/{slug}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPreset", + methodName: "GetPresetAsync", + pathTemplate: "$\"/presets/{slug}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetPresetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPreset", + methodName: "GetPresetAsync", + pathTemplate: "$\"/presets/{slug}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPreset", + methodName: "GetPresetAsync", + pathTemplate: "$\"/presets/{slug}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetPresetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.GetPresetResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.GetPresetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPresetVersion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPresetVersion.g.cs new file mode 100644 index 00000000..15c39ae2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.GetPresetVersion.g.cs @@ -0,0 +1,583 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackagePresetsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetPresetVersionSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetPresetVersionSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_GetPresetVersionSecurityRequirement0, + }; + partial void PrepareGetPresetVersionArguments( + global::System.Net.Http.HttpClient httpClient, + ref string slug, + ref string version); + partial void PrepareGetPresetVersionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string slug, + string version); + partial void ProcessGetPresetVersionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetPresetVersionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a specific version of a preset
+ /// Retrieves a specific version of a preset by its slug and version number. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetPresetVersionAsync( + string slug, + string version, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetPresetVersionAsResponseAsync( + slug: slug, + version: version, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get a specific version of a preset
+ /// Retrieves a specific version of a preset by its slug and version number. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetPresetVersionAsResponseAsync( + string slug, + string version, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetPresetVersionArguments( + httpClient: HttpClient, + slug: ref slug, + version: ref version); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetPresetVersionSecurityRequirements, + operationName: "GetPresetVersionAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/presets/{slug}/versions/{version}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetPresetVersionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + slug: slug!, + version: version!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPresetVersion", + methodName: "GetPresetVersionAsync", + pathTemplate: "$\"/presets/{slug}/versions/{version}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPresetVersion", + methodName: "GetPresetVersionAsync", + pathTemplate: "$\"/presets/{slug}/versions/{version}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPresetVersion", + methodName: "GetPresetVersionAsync", + pathTemplate: "$\"/presets/{slug}/versions/{version}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetPresetVersionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPresetVersion", + methodName: "GetPresetVersionAsync", + pathTemplate: "$\"/presets/{slug}/versions/{version}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPresetVersion", + methodName: "GetPresetVersionAsync", + pathTemplate: "$\"/presets/{slug}/versions/{version}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetPresetVersionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.GetPresetVersionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.GetPresetVersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresetVersions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresetVersions.g.cs new file mode 100644 index 00000000..e906f26b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresetVersions.g.cs @@ -0,0 +1,596 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackagePresetsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListPresetVersionsSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListPresetVersionsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListPresetVersionsSecurityRequirement0, + }; + partial void PrepareListPresetVersionsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string slug, + ref int? offset, + ref int? limit); + partial void PrepareListPresetVersionsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string slug, + int? offset, + int? limit); + partial void ProcessListPresetVersionsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListPresetVersionsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List versions of a preset
+ /// Lists all versions of a preset, ordered by version number ascending (oldest first). + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListPresetVersionsAsync( + string slug, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListPresetVersionsAsResponseAsync( + slug: slug, + offset: offset, + limit: limit, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List versions of a preset
+ /// Lists all versions of a preset, ordered by version number ascending (oldest first). + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListPresetVersionsAsResponseAsync( + string slug, + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListPresetVersionsArguments( + httpClient: HttpClient, + slug: ref slug, + offset: ref offset, + limit: ref limit); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListPresetVersionsSecurityRequirements, + operationName: "ListPresetVersionsAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/presets/{slug}/versions", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListPresetVersionsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + slug: slug!, + offset: offset, + limit: limit); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresetVersions", + methodName: "ListPresetVersionsAsync", + pathTemplate: "$\"/presets/{slug}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresetVersions", + methodName: "ListPresetVersionsAsync", + pathTemplate: "$\"/presets/{slug}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresetVersions", + methodName: "ListPresetVersionsAsync", + pathTemplate: "$\"/presets/{slug}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListPresetVersionsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresetVersions", + methodName: "ListPresetVersionsAsync", + pathTemplate: "$\"/presets/{slug}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresetVersions", + methodName: "ListPresetVersionsAsync", + pathTemplate: "$\"/presets/{slug}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListPresetVersionsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ListPresetVersionsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.ListPresetVersionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresets.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresets.g.cs new file mode 100644 index 00000000..78a8c74b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.ListPresets.g.cs @@ -0,0 +1,550 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackagePresetsClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListPresetsSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListPresetsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListPresetsSecurityRequirement0, + }; + partial void PrepareListPresetsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? offset, + ref int? limit); + partial void PrepareListPresetsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? offset, + int? limit); + partial void ProcessListPresetsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListPresetsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List presets
+ /// Lists all presets for the authenticated user, ordered by most recently updated first. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListPresetsAsync( + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListPresetsAsResponseAsync( + offset: offset, + limit: limit, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List presets
+ /// Lists all presets for the authenticated user, ordered by most recently updated first. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListPresetsAsResponseAsync( + int? offset = default, + int? limit = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListPresetsArguments( + httpClient: HttpClient, + offset: ref offset, + limit: ref limit); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListPresetsSecurityRequirements, + operationName: "ListPresetsAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/presets", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("offset", offset?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListPresetsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + offset: offset, + limit: limit); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresets", + methodName: "ListPresetsAsync", + pathTemplate: "\"/presets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresets", + methodName: "ListPresetsAsync", + pathTemplate: "\"/presets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresets", + methodName: "ListPresetsAsync", + pathTemplate: "\"/presets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListPresetsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresets", + methodName: "ListPresetsAsync", + pathTemplate: "\"/presets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListPresets", + methodName: "ListPresetsAsync", + pathTemplate: "\"/presets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListPresetsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ListPresetsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.ListPresetsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 012bdc45..29fa61e3 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -1439,6 +1439,135 @@ } } }, + "/datasets/app-rankings": { + "get": { + "operationId": "get-app-rankings", + "summary": "Top apps by token usage", + "description": "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.", + "tags": [ + "subpackage_datasets" + ], + "parameters": [ + { + "name": "category", + "in": "query", + "description": "Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsAppRankingsGetParametersCategory" + } + }, + { + "name": "subcategory", + "in": "query", + "description": "Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsAppRankingsGetParametersSubcategory" + } + }, + { + "name": "sort", + "in": "query", + "description": "`popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.", + "required": false, + "schema": { + "$ref": "#/components/schemas/DatasetsAppRankingsGetParametersSort" + } + }, + { + "name": "start_date", + "in": "query", + "description": "Start of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to 30 days before `end_date`. The dataset begins at 2025-01-01; earlier values are clamped forward to that floor and the resolved value is echoed in `meta.start_date`.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "end_date", + "in": "query", + "description": "End of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to the most recent completed UTC day. Must be on or after 2025-01-01; earlier values are rejected with a 400.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of apps to return (1-100). Defaults to 50.", + "required": false, + "schema": { + "type": "integer", + "default": 50 + } + }, + { + "name": "offset", + "in": "query", + "description": "Number of ranked apps to skip before the first returned row (0-100). Defaults to 0. `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.", + "required": false, + "schema": { + "type": "integer", + "default": 0 + } + } + ], + "responses": { + "200": { + "description": "Apps ranked per the requested `sort`, re-numbered 1..N. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppRankingsResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests - Rate limit exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TooManyRequestsResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, "/datasets/rankings-daily": { "get": { "operationId": "get-rankings-daily", @@ -3623,6 +3752,15 @@ "type": "string" } }, + { + "name": "sort", + "in": "query", + "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved.", + "required": false, + "schema": { + "$ref": "#/components/schemas/ModelsGetParametersSort" + } + }, { "name": "use_rss", "in": "query", @@ -4222,32 +4360,41 @@ } } }, - "/presets/{slug}/chat/completions": { - "post": { - "operationId": "create-presets-chat-completions", - "summary": "Create a preset from a chat-completions request body", - "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", + "/presets": { + "get": { + "operationId": "list-presets", + "summary": "List presets", + "description": "Lists all presets for the authenticated user, ordered by most recently updated first.", "tags": [ "subpackage_presets" ], "parameters": [ { - "name": "slug", - "in": "path", - "description": "URL-safe slug identifying the preset. Created if it does not exist.", - "required": true, + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination", + "required": false, "schema": { - "type": "string" + "type": "integer" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 100)", + "required": false, + "schema": { + "type": "integer" } } ], "responses": { "200": { - "description": "Preset created or updated successfully.", + "description": "Paginated list of presets.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreatePresetFromInferenceResponse" + "$ref": "#/components/schemas/ListPresetsResponse" } } } @@ -4272,32 +4419,75 @@ } } }, - "403": { - "description": "Forbidden - Authentication successful but insufficient permissions", + "500": { + "description": "Internal Server Error - Unexpected server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ForbiddenResponse" + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/presets/{slug}": { + "get": { + "operationId": "get-preset", + "summary": "Get a preset", + "description": "Retrieves a preset by its slug with its currently designated version inline.", + "tags": [ + "subpackage_presets" + ], + "parameters": [ + { + "name": "slug", + "in": "path", + "description": "URL-safe slug identifying the preset.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Preset with its designated version.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPresetResponse" } } } }, - "404": { - "description": "Not Found - Resource does not exist", + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotFoundResponse" + "$ref": "#/components/schemas/BadRequestResponse" } } } }, - "409": { - "description": "Conflict - Resource conflict or concurrent modification", + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConflictResponse" + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" } } } @@ -4312,22 +4502,13 @@ } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChatRequest" - } - } - } } } }, - "/presets/{slug}/messages": { + "/presets/{slug}/chat/completions": { "post": { - "operationId": "create-presets-messages", - "summary": "Create a preset from a messages request body", + "operationId": "create-presets-chat-completions", + "summary": "Create a preset from a chat-completions request body", "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ "subpackage_presets" @@ -4419,17 +4600,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MessagesRequest" + "$ref": "#/components/schemas/ChatRequest" } } } } } }, - "/presets/{slug}/responses": { + "/presets/{slug}/messages": { "post": { - "operationId": "create-presets-responses", - "summary": "Create a preset from a responses request body", + "operationId": "create-presets-messages", + "summary": "Create a preset from a messages request body", "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ "subpackage_presets" @@ -4521,61 +4702,336 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ResponsesRequest" + "$ref": "#/components/schemas/MessagesRequest" } } } } } }, - "/providers": { - "get": { - "operationId": "list-providers", - "summary": "List all providers", + "/presets/{slug}/responses": { + "post": { + "operationId": "create-presets-responses", + "summary": "Create a preset from a responses request body", + "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ - "subpackage_providers" + "subpackage_presets" ], - "parameters": [], - "responses": { - "200": { - "description": "Returns a list of providers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Providers_listProviders_Response_200" - } - } - } - }, - "500": { - "description": "Internal Server Error - Unexpected server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InternalServerResponse" - } - } + "parameters": [ + { + "name": "slug", + "in": "path", + "description": "URL-safe slug identifying the preset. Created if it does not exist.", + "required": true, + "schema": { + "type": "string" } } - } - } - }, - "/rerank": { - "post": { - "operationId": "create-rerank", - "summary": "Submit a rerank request", - "description": "Submits a rerank request to the rerank router", - "tags": [ - "subpackage_rerank" ], - "parameters": [], "responses": { "200": { - "description": "Rerank response", + "description": "Preset created or updated successfully.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Rerank_createRerank_Response_200" + "$ref": "#/components/schemas/CreatePresetFromInferenceResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "403": { + "description": "Forbidden - Authentication successful but insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "409": { + "description": "Conflict - Resource conflict or concurrent modification", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConflictResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResponsesRequest" + } + } + } + } + } + }, + "/presets/{slug}/versions": { + "get": { + "operationId": "list-preset-versions", + "summary": "List versions of a preset", + "description": "Lists all versions of a preset, ordered by version number ascending (oldest first).", + "tags": [ + "subpackage_presets" + ], + "parameters": [ + { + "name": "slug", + "in": "path", + "description": "URL-safe slug identifying the preset.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "Number of records to skip for pagination", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of records to return (max 100)", + "required": false, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Paginated list of preset versions.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListPresetVersionsResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/presets/{slug}/versions/{version}": { + "get": { + "operationId": "get-preset-version", + "summary": "Get a specific version of a preset", + "description": "Retrieves a specific version of a preset by its slug and version number.", + "tags": [ + "subpackage_presets" + ], + "parameters": [ + { + "name": "slug", + "in": "path", + "description": "URL-safe slug identifying the preset.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "version", + "in": "path", + "description": "Version number of the preset.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "The requested preset version.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPresetVersionResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/providers": { + "get": { + "operationId": "list-providers", + "summary": "List all providers", + "tags": [ + "subpackage_providers" + ], + "parameters": [], + "responses": { + "200": { + "description": "Returns a list of providers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Providers_listProviders_Response_200" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/rerank": { + "post": { + "operationId": "create-rerank", + "summary": "Submit a rerank request", + "description": "Submits a rerank request to the rerank router", + "tags": [ + "subpackage_rerank" + ], + "parameters": [], + "responses": { + "200": { + "description": "Rerank response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Rerank_createRerank_Response_200" } } } @@ -20379,28 +20835,81 @@ "description": "Total credits purchased and used", "title": "Credits_getCredits_Response_200" }, - "RankingsDailyItem": { + "DatasetsAppRankingsGetParametersCategory": { + "type": "string", + "enum": [ + "coding", + "creative", + "productivity", + "entertainment" + ], + "description": "Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.", + "title": "DatasetsAppRankingsGetParametersCategory" + }, + "DatasetsAppRankingsGetParametersSubcategory": { + "type": "string", + "enum": [ + "cli-agent", + "ide-extension", + "cloud-agent", + "programming-app", + "native-app-builder", + "creative-writing", + "video-gen", + "image-gen", + "audio-gen", + "roleplay", + "game", + "writing-assistant", + "general-chat", + "personal-agent", + "legal" + ], + "description": "Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.", + "title": "DatasetsAppRankingsGetParametersSubcategory" + }, + "DatasetsAppRankingsGetParametersSort": { + "type": "string", + "enum": [ + "popular", + "trending" + ], + "default": "popular", + "description": "`popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.", + "title": "DatasetsAppRankingsGetParametersSort" + }, + "AppRankingsItem": { "type": "object", "properties": { - "date": { - "type": "string", - "description": "UTC calendar date the row is aggregated over (YYYY-MM-DD)." + "app_id": { + "type": "integer", + "description": "Stable numeric identifier of the app on OpenRouter." }, - "model_permaslug": { + "app_name": { "type": "string", - "description": "Model variant permaslug (e.g. `openai/gpt-4o-2024-05-13`, `openai/gpt-4o-2024-05-13:free`). Non-default variants include a `:variant` suffix and are ranked as their own entry. The reserved value `other` denotes the aggregated row covering every model outside the daily top 50 for that date — always sorted last within its date." + "description": "Public display name of the app." + }, + "rank": { + "type": "integer", + "description": "1-based position of the app within this response, per the requested `sort`." + }, + "total_requests": { + "type": "integer", + "description": "Number of requests attributed to the app inside the date window." }, "total_tokens": { "type": "string", - "description": "Sum of `prompt_tokens + completion_tokens` for the day, returned as a decimal string so 64-bit values are not truncated." + "description": "Sum of `prompt_tokens + completion_tokens` attributed to the app inside the date window, returned as a decimal string so 64-bit values are not truncated." } }, "required": [ - "date", - "model_permaslug", + "app_id", + "app_name", + "rank", + "total_requests", "total_tokens" ], - "title": "RankingsDailyItem" + "title": "AppRankingsItem" }, "RankingsDailyMetaVersion": { "type": "string", @@ -20438,6 +20947,49 @@ ], "title": "RankingsDailyMeta" }, + "AppRankingsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppRankingsItem" + }, + "description": "Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing." + }, + "meta": { + "$ref": "#/components/schemas/RankingsDailyMeta" + } + }, + "required": [ + "data", + "meta" + ], + "title": "AppRankingsResponse" + }, + "RankingsDailyItem": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "UTC calendar date the row is aggregated over (YYYY-MM-DD)." + }, + "model_permaslug": { + "type": "string", + "description": "Model variant permaslug (e.g. `openai/gpt-4o-2024-05-13`, `openai/gpt-4o-2024-05-13:free`). Non-default variants include a `:variant` suffix and are ranked as their own entry. The reserved value `other` denotes the aggregated row covering every model outside the daily top 50 for that date — always sorted last within its date." + }, + "total_tokens": { + "type": "string", + "description": "Sum of `prompt_tokens + completion_tokens` for the day, returned as a decimal string so 64-bit values are not truncated." + } + }, + "required": [ + "date", + "model_permaslug", + "total_tokens" + ], + "title": "RankingsDailyItem" + }, "RankingsDailyResponse": { "type": "object", "properties": { @@ -29215,6 +29767,21 @@ "description": "Filter models by use case category", "title": "ModelsGetParametersCategory" }, + "ModelsGetParametersSort": { + "type": "string", + "enum": [ + "most-popular", + "newest", + "top-weekly", + "pricing-low-to-high", + "pricing-high-to-low", + "context-high-to-low", + "throughput-high-to-low", + "latency-low-to-high" + ], + "description": "Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date). When omitted, the existing default ordering is preserved.", + "title": "ModelsGetParametersSort" + }, "ModelsCountResponseData": { "type": "object", "properties": { @@ -35788,6 +36355,104 @@ ], "title": "Organization_listOrganizationMembers_Response_200" }, + "PresetStatus": { + "type": "string", + "enum": [ + "active", + "disabled", + "archived" + ], + "description": "The status of a preset.", + "title": "PresetStatus" + }, + "Preset": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "creator_user_id": { + "type": [ + "string", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "designated_version_id": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/PresetStatus" + }, + "status_updated_at": { + "type": [ + "string", + "null" + ] + }, + "updated_at": { + "type": "string" + }, + "workspace_id": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "created_at", + "creator_user_id", + "description", + "designated_version_id", + "id", + "name", + "slug", + "status", + "status_updated_at", + "updated_at", + "workspace_id" + ], + "description": "A preset without version details.", + "title": "Preset" + }, + "ListPresetsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Preset" + } + }, + "total_count": { + "type": "integer" + } + }, + "required": [ + "data", + "total_count" + ], + "description": "A paginated list of presets.", + "title": "ListPresetsResponse" + }, "PresetDesignatedVersion": { "type": "object", "properties": { @@ -35835,15 +36500,6 @@ "description": "A specific version of a preset, containing config and optional system prompt.", "title": "PresetDesignatedVersion" }, - "PresetWithDesignatedVersionStatus": { - "type": "string", - "enum": [ - "active", - "disabled", - "archived" - ], - "title": "PresetWithDesignatedVersionStatus" - }, "PresetWithDesignatedVersion": { "type": "object", "properties": { @@ -35862,9 +36518,6 @@ "null" ] }, - "designated_version": { - "$ref": "#/components/schemas/PresetDesignatedVersion" - }, "designated_version_id": { "type": [ "string", @@ -35881,7 +36534,7 @@ "type": "string" }, "status": { - "$ref": "#/components/schemas/PresetWithDesignatedVersionStatus" + "$ref": "#/components/schemas/PresetStatus" }, "status_updated_at": { "type": [ @@ -35897,13 +36550,15 @@ "string", "null" ] + }, + "designated_version": { + "$ref": "#/components/schemas/PresetDesignatedVersion" } }, "required": [ "created_at", "creator_user_id", "description", - "designated_version", "designated_version_id", "id", "name", @@ -35911,11 +36566,25 @@ "status", "status_updated_at", "updated_at", - "workspace_id" + "workspace_id", + "designated_version" ], "description": "A preset with its currently designated version.", "title": "PresetWithDesignatedVersion" }, + "GetPresetResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PresetWithDesignatedVersion" + } + }, + "required": [ + "data" + ], + "description": "A preset with its currently designated version.", + "title": "GetPresetResponse" + }, "CreatePresetFromInferenceResponse": { "type": "object", "properties": { @@ -35929,6 +36598,39 @@ "description": "Response containing the created preset with its designated version.", "title": "CreatePresetFromInferenceResponse" }, + "ListPresetVersionsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PresetDesignatedVersion" + } + }, + "total_count": { + "type": "integer" + } + }, + "required": [ + "data", + "total_count" + ], + "description": "A paginated list of preset versions.", + "title": "ListPresetVersionsResponse" + }, + "GetPresetVersionResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PresetDesignatedVersion" + } + }, + "required": [ + "data" + ], + "description": "A single version of a preset.", + "title": "GetPresetVersionResponse" + }, "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems": { "type": "string", "enum": [