From ed9bcc5d4038add2500bfc29649d316a95e62ebc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 23 Jun 2026 22:18:54 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../OpenRouter.Models.BYOKProviderSlug.g.cs | 6 + ...uter.Models.ByokGetParametersProvider.g.cs | 6 + ...ImageGenerationRequestProviderOptions.g.cs | 9 ++ ...equestProviderOptionsTenstorrent.Json.g.cs | 141 ++++++++++++++++++ ...tionRequestProviderOptionsTenstorrent.g.cs | 19 +++ ...questProviderOptionsTenstorrent2.Json.g.cs | 141 ++++++++++++++++++ ...ionRequestProviderOptionsTenstorrent2.g.cs | 19 +++ .../OpenRouter.Models.ProviderName.g.cs | 6 + .../OpenRouter.Models.ProviderOptions.g.cs | 9 ++ ...odels.ProviderOptionsTenstorrent.Json.g.cs | 141 ++++++++++++++++++ ...ter.Models.ProviderOptionsTenstorrent.g.cs | 19 +++ ...dels.ProviderOptionsTenstorrent2.Json.g.cs | 141 ++++++++++++++++++ ...er.Models.ProviderOptionsTenstorrent2.g.cs | 19 +++ ...r.Models.ProviderResponseProviderName.g.cs | 6 + ...VideoGenerationRequestProviderOptions.g.cs | 9 ++ ...equestProviderOptionsTenstorrent.Json.g.cs | 141 ++++++++++++++++++ ...tionRequestProviderOptionsTenstorrent.g.cs | 19 +++ ...questProviderOptionsTenstorrent2.Json.g.cs | 141 ++++++++++++++++++ ...ionRequestProviderOptionsTenstorrent2.g.cs | 19 +++ src/libs/OpenRouter/openapi.yaml | 22 +++ 20 files changed, 1033 insertions(+) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs index 58a7e02a..ed2d933d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BYOKProviderSlug.g.cs @@ -311,6 +311,10 @@ public enum BYOKProviderSlug /// /// /// + Tenstorrent, + /// + /// + /// Together, /// /// @@ -429,6 +433,7 @@ public static string ToValueString(this BYOKProviderSlug value) BYOKProviderSlug.Stepfun => "stepfun", BYOKProviderSlug.Streamlake => "streamlake", BYOKProviderSlug.Switchpoint => "switchpoint", + BYOKProviderSlug.Tenstorrent => "tenstorrent", BYOKProviderSlug.Together => "together", BYOKProviderSlug.Upstage => "upstage", BYOKProviderSlug.Venice => "venice", @@ -522,6 +527,7 @@ public static string ToValueString(this BYOKProviderSlug value) "stepfun" => BYOKProviderSlug.Stepfun, "streamlake" => BYOKProviderSlug.Streamlake, "switchpoint" => BYOKProviderSlug.Switchpoint, + "tenstorrent" => BYOKProviderSlug.Tenstorrent, "together" => BYOKProviderSlug.Together, "upstage" => BYOKProviderSlug.Upstage, "venice" => BYOKProviderSlug.Venice, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs index 338a4b53..d9e71d2f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ByokGetParametersProvider.g.cs @@ -311,6 +311,10 @@ public enum ByokGetParametersProvider /// /// /// + Tenstorrent, + /// + /// + /// Together, /// /// @@ -429,6 +433,7 @@ public static string ToValueString(this ByokGetParametersProvider value) ByokGetParametersProvider.Stepfun => "stepfun", ByokGetParametersProvider.Streamlake => "streamlake", ByokGetParametersProvider.Switchpoint => "switchpoint", + ByokGetParametersProvider.Tenstorrent => "tenstorrent", ByokGetParametersProvider.Together => "together", ByokGetParametersProvider.Upstage => "upstage", ByokGetParametersProvider.Venice => "venice", @@ -522,6 +527,7 @@ public static string ToValueString(this ByokGetParametersProvider value) "stepfun" => ByokGetParametersProvider.Stepfun, "streamlake" => ByokGetParametersProvider.Streamlake, "switchpoint" => ByokGetParametersProvider.Switchpoint, + "tenstorrent" => ByokGetParametersProvider.Tenstorrent, "together" => ByokGetParametersProvider.Together, "upstage" => ByokGetParametersProvider.Upstage, "venice" => ByokGetParametersProvider.Venice, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs index 89cf4930..290327ab 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs @@ -638,6 +638,12 @@ public sealed partial class ImageGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("targon")] public object? Targon { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenstorrent")] + public object? Tenstorrent { get; set; } + /// /// /// @@ -812,6 +818,7 @@ public sealed partial class ImageGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -931,6 +938,7 @@ public ImageGenerationRequestProviderOptions( object? streamlake, object? switchpoint, object? targon, + object? tenstorrent, object? together, object? togetherLite, object? ubicloud, @@ -1047,6 +1055,7 @@ public ImageGenerationRequestProviderOptions( this.Streamlake = streamlake; this.Switchpoint = switchpoint; this.Targon = targon; + this.Tenstorrent = tenstorrent; this.Together = together; this.TogetherLite = togetherLite; this.Ubicloud = ubicloud; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs new file mode 100644 index 00000000..283aa0b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs new file mode 100644 index 00000000..06f35495 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs new file mode 100644 index 00000000..6d8e0cbf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs new file mode 100644 index 00000000..61e141aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTenstorrent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsTenstorrent2 + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs index 6fb11545..4f9046fa 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderName.g.cs @@ -323,6 +323,10 @@ public enum ProviderName /// /// /// + Tenstorrent, + /// + /// + /// Together, /// /// @@ -444,6 +448,7 @@ public static string ToValueString(this ProviderName value) ProviderName.StepFun => "StepFun", ProviderName.StreamLake => "StreamLake", ProviderName.Switchpoint => "Switchpoint", + ProviderName.Tenstorrent => "Tenstorrent", ProviderName.Together => "Together", ProviderName.Upstage => "Upstage", ProviderName.Venice => "Venice", @@ -540,6 +545,7 @@ public static string ToValueString(this ProviderName value) "StepFun" => ProviderName.StepFun, "StreamLake" => ProviderName.StreamLake, "Switchpoint" => ProviderName.Switchpoint, + "Tenstorrent" => ProviderName.Tenstorrent, "Together" => ProviderName.Together, "Upstage" => ProviderName.Upstage, "Venice" => ProviderName.Venice, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs index 406f16cb..2136986d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs @@ -638,6 +638,12 @@ public sealed partial class ProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("targon")] public object? Targon { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenstorrent")] + public object? Tenstorrent { get; set; } + /// /// /// @@ -812,6 +818,7 @@ public sealed partial class ProviderOptions /// /// /// + /// /// /// /// @@ -931,6 +938,7 @@ public ProviderOptions( object? streamlake, object? switchpoint, object? targon, + object? tenstorrent, object? together, object? togetherLite, object? ubicloud, @@ -1047,6 +1055,7 @@ public ProviderOptions( this.Streamlake = streamlake; this.Switchpoint = switchpoint; this.Targon = targon; + this.Tenstorrent = tenstorrent; this.Together = together; this.TogetherLite = togetherLite; this.Ubicloud = ubicloud; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.Json.g.cs new file mode 100644 index 00000000..4baf2be4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsTenstorrent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsTenstorrent), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTenstorrent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ProviderOptionsTenstorrent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.g.cs new file mode 100644 index 00000000..6a921d56 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ProviderOptionsTenstorrent + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.Json.g.cs new file mode 100644 index 00000000..35da4474 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ProviderOptionsTenstorrent2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ProviderOptionsTenstorrent2), + jsonSerializerContext) as global::OpenRouter.ProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ProviderOptionsTenstorrent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.ProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.ProviderOptionsTenstorrent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.g.cs new file mode 100644 index 00000000..5b7f88d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptionsTenstorrent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ProviderOptionsTenstorrent2 + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs index b9f20ef5..dd6263d8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderResponseProviderName.g.cs @@ -431,6 +431,10 @@ public enum ProviderResponseProviderName /// /// /// + Tenstorrent, + /// + /// + /// Together, /// /// @@ -587,6 +591,7 @@ public static string ToValueString(this ProviderResponseProviderName value) ProviderResponseProviderName.StreamLake => "StreamLake", ProviderResponseProviderName.Switchpoint => "Switchpoint", ProviderResponseProviderName.Targon => "Targon", + ProviderResponseProviderName.Tenstorrent => "Tenstorrent", ProviderResponseProviderName.Together => "Together", ProviderResponseProviderName.Together2 => "Together 2", ProviderResponseProviderName.Ubicloud => "Ubicloud", @@ -712,6 +717,7 @@ public static string ToValueString(this ProviderResponseProviderName value) "StreamLake" => ProviderResponseProviderName.StreamLake, "Switchpoint" => ProviderResponseProviderName.Switchpoint, "Targon" => ProviderResponseProviderName.Targon, + "Tenstorrent" => ProviderResponseProviderName.Tenstorrent, "Together" => ProviderResponseProviderName.Together, "Together 2" => ProviderResponseProviderName.Together2, "Ubicloud" => ProviderResponseProviderName.Ubicloud, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs index c733a520..b17b1d3f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptions.g.cs @@ -638,6 +638,12 @@ public sealed partial class VideoGenerationRequestProviderOptions [global::System.Text.Json.Serialization.JsonPropertyName("targon")] public object? Targon { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenstorrent")] + public object? Tenstorrent { get; set; } + /// /// /// @@ -812,6 +818,7 @@ public sealed partial class VideoGenerationRequestProviderOptions /// /// /// + /// /// /// /// @@ -931,6 +938,7 @@ public VideoGenerationRequestProviderOptions( object? streamlake, object? switchpoint, object? targon, + object? tenstorrent, object? together, object? togetherLite, object? ubicloud, @@ -1047,6 +1055,7 @@ public VideoGenerationRequestProviderOptions( this.Streamlake = streamlake; this.Switchpoint = switchpoint; this.Targon = targon; + this.Tenstorrent = tenstorrent; this.Together = together; this.TogetherLite = togetherLite; this.Ubicloud = ubicloud; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.Json.g.cs new file mode 100644 index 00000000..7b1cbf3a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsTenstorrent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.g.cs new file mode 100644 index 00000000..0d623c66 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGenerationRequestProviderOptionsTenstorrent + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.Json.g.cs new file mode 100644 index 00000000..a65bb5ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationRequestProviderOptionsTenstorrent2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2), + jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsTenstorrent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.g.cs new file mode 100644 index 00000000..93bc0f0b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationRequestProviderOptionsTenstorrent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class VideoGenerationRequestProviderOptionsTenstorrent2 + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 0b58b98b..73fc9404 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -11373,6 +11373,7 @@ "Stealth", "StreamLake", "Switchpoint", + "Tenstorrent", "Together", "Upstage", "Venice", @@ -18912,6 +18913,12 @@ "description": "Any type" } }, + "tenstorrent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "together": { "type": "object", "additionalProperties": { @@ -20455,6 +20462,12 @@ "description": "Any type" } }, + "tenstorrent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "together": { "type": "object", "additionalProperties": { @@ -21507,6 +21520,7 @@ "stepfun", "streamlake", "switchpoint", + "tenstorrent", "together", "upstage", "venice", @@ -21597,6 +21611,7 @@ "stepfun", "streamlake", "switchpoint", + "tenstorrent", "together", "upstage", "venice", @@ -26514,6 +26529,7 @@ "Stealth", "StreamLake", "Switchpoint", + "Tenstorrent", "Together", "Upstage", "Venice", @@ -42227,6 +42243,12 @@ "description": "Any type" } }, + "tenstorrent": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, "together": { "type": "object", "additionalProperties": {