From 40eb71ef500fb0b35088cb5b80a2db7d68c21924 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Jul 2026 21:58:24 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...eCreateGenerateVideoCommandApiCommand.g.cs | 45 +-- ...ay.GenerateClient.CreateGenerateVideo.g.cs | 7 +- ...y.IGenerateClient.CreateGenerateVideo.g.cs | 4 - ...onverters.CreateGenerateVideoResponse.g.cs | 72 ----- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 53 ---- ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 ---- ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 53 ---- ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 ---- ...seRoutingResolvedSettingsOptimizeFor.g.cs} | 14 +- ...gResolvedSettingsOptimizeForNullable.g.cs} | 14 +- .../Runway.JsonSerializerContext.g.cs | 93 ++---- .../Runway.JsonSerializerContextTypes.g.cs | 284 ++++++++--------- ...way.Models.CreateGenerateVideoRequest.g.cs | 13 +- ...dels.CreateGenerateVideoResponse.Json.g.cs | 6 +- ...ay.Models.CreateGenerateVideoResponse.g.cs | 300 ++---------------- ...ateGenerateVideoResponseDiscriminator.g.cs | 45 --- ...erateVideoResponseDiscriminatorDryRun.g.cs | 51 --- ...enerateVideoResponseRoutedVideoDryRun.g.cs | 69 ---- ...dVideoDryRunRoutingEstimatedCost.Json.g.cs | 141 -------- ...dVideoDryRunRoutingResolvedInput.Json.g.cs | 141 -------- ...deoDryRunRoutingResolvedSettings.Json.g.cs | 141 -------- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 57 ---- ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 -------- ...teVideoResponseRoutedVideoTaskCreated.g.cs | 69 ---- ...nseRoutedVideoTaskCreatedRouting.Json.g.cs | 141 -------- ...ResponseRoutedVideoTaskCreatedRouting.g.cs | 107 ------- ...oTaskCreatedRoutingEstimatedCost.Json.g.cs | 141 -------- ...dVideoTaskCreatedRoutingEstimatedCost.g.cs | 47 --- ...oTaskCreatedRoutingResolvedInput.Json.g.cs | 141 -------- ...dVideoTaskCreatedRoutingResolvedInput.g.cs | 71 ----- ...skCreatedRoutingResolvedSettings.Json.g.cs | 141 -------- ...deoTaskCreatedRoutingResolvedSettings.g.cs | 59 ---- ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 57 ---- ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 -------- ...edRoutingResolvedSettingsPriceCeiling.g.cs | 19 -- ...ateGenerateVideoResponseRouting.Json.g.cs} | 26 +- ...s.CreateGenerateVideoResponseRouting.g.cs} | 22 +- ...deoResponseRoutingEstimatedCost.Json.g.cs} | 26 +- ...ateVideoResponseRoutingEstimatedCost.g.cs} | 10 +- ...deoResponseRoutingResolvedInput.Json.g.cs} | 26 +- ...ateVideoResponseRoutingResolvedInput.g.cs} | 10 +- ...ResponseRoutingResolvedSettings.Json.g.cs} | 26 +- ...VideoResponseRoutingResolvedSettings.g.cs} | 16 +- ...nseRoutingResolvedSettingsOptimizeFor.g.cs | 57 ++++ ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 ++++++++ ...eRoutingResolvedSettingsPriceCeiling.g.cs} | 2 +- ...odels.CreateOrganizationUsageResponse.g.cs | 24 +- ...UsageResponseResultsByApiKeyItem.Json.g.cs | 141 ++++++++ ...ationUsageResponseResultsByApiKeyItem.g.cs | 55 ++++ ...nseResultsByApiKeyItemUsedCredit.Json.g.cs | 141 ++++++++ ...ResponseResultsByApiKeyItemUsedCredit.g.cs | 55 ++++ src/libs/Runway/openapi.json | 285 +++++++---------- 52 files changed, 1021 insertions(+), 3040 deletions(-) delete mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs => Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs} (72%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs => Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs} (74%) delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs} (91%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs => Runway.Models.CreateGenerateVideoResponseRouting.g.cs} (83%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs} (89%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs} (77%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs} (89%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs} (87%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs} (89%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs} (76%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs => Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs} (83%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.g.cs diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs index 191b145..a2a5fbe 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs @@ -21,32 +21,12 @@ internal static partial class GenerateCreateGenerateVideoCommandApiCommand Required = true, }; - private static Option DryRun { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--dry-run", - description: @"When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced."); - private static Option InputOption { get; } = new( name: @"--input") { Description = @"Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it.", Required = true, }; - private static Option RequestInput { get; } = new(@"--request-input") - { - Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", - }; - - private static Option RequestJson { get; } = new(@"--request-json") - { - Description = "Request body as JSON.", - Hidden = true, - }; - - private static Option RequestFile { get; } = new(@"--request-file") - { - Description = "Path to a JSON request file, or '-' for stdin.", - Hidden = true, - }; private static string FormatResponse(ParseResult parseResult, global::Runway.CreateGenerateVideoResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -74,36 +54,14 @@ public static Command Create() Start a video generation task using a saved Model Router config instead of naming a model."); command.Options.Add(XRunwayVersion); command.Options.Add(ConfigId); - command.Options.Add(DryRun); command.Options.Add(InputOption); - command.Options.Add(RequestInput); - command.Options.Add(RequestJson); - command.Options.Add(RequestFile); - command.Validators.Add(result => - { - var hasInput = result.GetResult(RequestInput) is not null; - var hasRequestJson = result.GetResult(RequestJson) is not null; - var hasRequestFile = result.GetResult(RequestFile) is not null; - var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); - if (specifiedCount > 1) - { - result.AddError(@"Specify at most one of --request-input, --request-json, or --request-file."); - } - }); + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( - parseResult, - RequestInput, - RequestJson, - RequestFile, - global::Runway.SourceGenerationContext.Default, - cancellationToken).ConfigureAwait(false); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var configId = parseResult.GetRequiredValue(ConfigId); - var dryRun = CliRuntime.WasSpecified(parseResult, DryRun) ? parseResult.GetValue(DryRun) : (__requestBase is { } __DryRunBaseValue ? __DryRunBaseValue.DryRun : default); var input = parseResult.GetRequiredValue(InputOption); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -111,7 +69,6 @@ await CliRuntime.RunAsync(async () => var response = await client.Generate.CreateGenerateVideoAsync( xRunwayVersion: xRunwayVersion, configId: configId, - dryRun: dryRun, input: input, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs index 630d79d..b8db5b6 100644 --- a/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs @@ -353,7 +353,7 @@ partial void ProcessCreateGenerateVideoResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // No model satisfies the config and request together. Returned identically for real and dry-run requests. + // No model satisfies the config and request together. if ((int)__response.StatusCode == 400) { string? __content_400 = null; @@ -533,9 +533,6 @@ partial void ProcessCreateGenerateVideoResponseContent( /// /// The slug of a saved Model Router config to route this request with. /// - /// - /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. - /// /// /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. /// @@ -546,14 +543,12 @@ partial void ProcessCreateGenerateVideoResponseContent( string configId, global::Runway.CreateGenerateVideoRequestInput input, string xRunwayVersion = "2024-11-06", - bool? dryRun = default, global::Runway.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Runway.CreateGenerateVideoRequest { ConfigId = configId, - DryRun = dryRun, Input = input, }; diff --git a/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs index c1fd2ae..1534653 100644 --- a/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs @@ -48,9 +48,6 @@ public partial interface IGenerateClient /// /// The slug of a saved Model Router config to route this request with. /// - /// - /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. - /// /// /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. /// @@ -61,7 +58,6 @@ public partial interface IGenerateClient string configId, global::Runway.CreateGenerateVideoRequestInput input, string xRunwayVersion = "2024-11-06", - bool? dryRun = default, global::Runway.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs deleted file mode 100644 index d0e9f74..0000000 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Runway.JsonConverters -{ - /// - public class CreateGenerateVideoResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Runway.CreateGenerateVideoResponse Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? @false = default; - if (discriminator?.DryRun == global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun.False) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated)}"); - @false = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? @true = default; - if (discriminator?.DryRun == global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun.True) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun)}"); - @true = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Runway.CreateGenerateVideoResponse( - discriminator?.DryRun, - @false, - - @true - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponse value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsFalse) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.False!, typeInfo); - } - else if (value.IsTrue) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.True!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index 975d2c0..0000000 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Runway.JsonConverters -{ - /// - public sealed class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor 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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs deleted file mode 100644 index d35495a..0000000 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Runway.JsonConverters -{ - /// - public sealed class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? 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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? 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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index 3e85357..0000000 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Runway.JsonConverters -{ - /// - public sealed class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor 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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs deleted file mode 100644 index 692c9e2..0000000 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Runway.JsonConverters -{ - /// - public sealed class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? 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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? 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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs similarity index 72% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs index c55fbd3..c5795e5 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun Read( + public override global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor 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 CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; + return (global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun); + return default(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun value, + global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs similarity index 74% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs index 743a07d..04dc360 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? Read( + public override global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? 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 CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonCo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonCo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; + return (global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun?); + return default(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonCo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? value, + global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? 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::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs index c173181..98c7bfa 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs @@ -705,17 +705,9 @@ namespace Runway typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), @@ -881,8 +873,6 @@ namespace Runway typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), - typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -2128,17 +2118,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), @@ -2304,8 +2286,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), - typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -2523,21 +2503,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse), TypeInfoPropertyName = "CreateGenerateVideoResponse2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun), TypeInfoPropertyName = "CreateGenerateVideoResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponsePipelineItem))] @@ -2560,6 +2531,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel), TypeInfoPropertyName = "CreateOrganizationUsageResponseResultUsedCreditModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseModel), TypeInfoPropertyName = "CreateOrganizationUsageResponseModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse))] @@ -2848,6 +2823,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableCreateAvatarsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemStatus?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDataItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1TranscriptItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfObjectStringObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1ToolType2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3551,17 +3531,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), @@ -3727,8 +3699,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), - typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -3771,11 +3741,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1TranscriptItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfObjectStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1ToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2TranscriptItemRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2ToolType2")] @@ -3812,10 +3777,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetRealtimeSessionsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponse?), TypeInfoPropertyName = "NullableGetTasksResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetTasksResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponsePipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponsePipelineItemFilter2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseEmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseEmptiedByItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel?), TypeInfoPropertyName = "NullableCreateOrganizationUsageResponseResultUsedCreditModel2")] @@ -3925,6 +3887,8 @@ internal sealed partial class SourceGenerationContextChunk1 : 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))] @@ -4320,12 +4284,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.GetRealtimeSessionsResponseDiscriminatorStatusNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemJsonConverter()); @@ -4408,7 +4368,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.Voice15JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.DataItem2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponse2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.PatchVoicesResponseJsonConverter()); diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs index 9be8c0e..b2be483 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs @@ -2724,515 +2724,495 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? Type674 { get; set; } + public global::Runway.CreateGenerateVideoResponseRouting? Type674 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? Type675 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? Type675 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? Type676 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? Type676 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? Type677 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? Type677 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? Type678 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? Type678 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? Type679 { get; set; } + public global::Runway.CreateGenerateVideoResponse2? Type679 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? Type680 { get; set; } + public global::System.Collections.Generic.IList? Type680 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? Type681 { get; set; } + public global::Runway.CreateGenerateVideoResponsePipelineItem? Type681 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? Type682 { get; set; } + public global::Runway.CreateGenerateVideoResponsePipelineItemFilter? Type682 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? Type684 { get; set; } + public global::Runway.CreateGenerateVideoResponseEmptiedByItem? Type684 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? Type685 { get; set; } + public global::Runway.CreateGenerateVideoResponse3? Type685 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseDiscriminator? Type686 { get; set; } + public global::Runway.GetOrganizationResponse? Type686 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? Type687 { get; set; } + public global::Runway.GetOrganizationResponseTier? Type687 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponse2? Type688 { get; set; } + public global::System.Collections.Generic.Dictionary? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::Runway.GetOrganizationResponseTierModels2? Type689 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponsePipelineItem? Type690 { get; set; } + public global::Runway.GetOrganizationResponseUsage? Type690 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponsePipelineItemFilter? Type691 { get; set; } + public global::System.Collections.Generic.Dictionary? Type691 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type692 { get; set; } + public global::Runway.GetOrganizationResponseUsageModels2? Type692 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseEmptiedByItem? Type693 { get; set; } + public global::Runway.CreateOrganizationUsageResponse? Type693 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponse3? Type694 { get; set; } + public global::System.Collections.Generic.IList? Type694 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponse? Type695 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResult? Type695 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTier? Type696 { get; set; } + public global::System.Collections.Generic.IList? Type696 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type697 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type697 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTierModels2? Type698 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type698 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsage? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type700 { get; set; } + public global::Runway.CreateOrganizationUsageResponseModel? Type700 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsageModels2? Type701 { get; set; } + public global::System.Collections.Generic.IList? Type701 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponse? Type702 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::System.Collections.Generic.IList? Type703 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResult? Type704 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? Type704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type705 { get; set; } + public global::Runway.CreateUploadsResponse? Type705 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type706 { get; set; } + public global::System.Collections.Generic.Dictionary? Type706 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type707 { get; set; } + public global::Runway.CreateUploadsResponse2? Type707 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type708 { get; set; } + public global::Runway.CreateRecipesAdLocalizationResponse? Type708 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseModel? Type709 { get; set; } + public global::Runway.CreateRecipesAdLocalizationResponse2? Type709 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse? Type710 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type711 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse2? Type711 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse2? Type712 { get; set; } + public global::Runway.CreateRecipesProductAdResponse? Type712 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse? Type713 { get; set; } + public global::Runway.CreateRecipesProductAdResponse2? Type713 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse2? Type714 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse? Type714 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse? Type715 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse2? Type715 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse2? Type716 { get; set; } + public global::Runway.CreateRecipesProductSwapResponse? Type716 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse? Type717 { get; set; } + public global::Runway.CreateRecipesProductSwapResponse2? Type717 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse2? Type718 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoResponse? Type718 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse? Type719 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoResponse2? Type719 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse2? Type720 { get; set; } + public global::Runway.CreateRecipesProductUgcResponse? Type720 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse? Type721 { get; set; } + public global::Runway.CreateRecipesProductUgcResponse2? Type721 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse2? Type722 { get; set; } + public global::Runway.GetRoutersResponse? Type722 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse? Type723 { get; set; } + public global::System.Collections.Generic.IList? Type723 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse2? Type724 { get; set; } + public global::Runway.GetRoutersResponseDataItem? Type724 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse? Type725 { get; set; } + public global::Runway.GetRoutersResponseDataItemSettings? Type725 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse2? Type726 { get; set; } + public global::Runway.GetRoutersResponseDataItemSettingsModels? Type726 { get; set; } /// /// /// - public global::Runway.GetRoutersResponse? Type727 { get; set; } + public global::Runway.GetRoutersResponseDataItemSettingsModelsMode? Type727 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type728 { get; set; } + public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? Type728 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItem? Type729 { get; set; } + public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? Type729 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettings? Type730 { get; set; } + public global::Runway.CreateRoutersResponse? Type730 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsModels? Type731 { get; set; } + public global::Runway.CreateRoutersResponseSettings? Type731 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsModelsMode? Type732 { get; set; } + public global::Runway.CreateRoutersResponseSettingsModels? Type732 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? Type733 { get; set; } + public global::Runway.CreateRoutersResponseSettingsModelsMode? Type733 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? Type734 { get; set; } + public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? Type734 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponse? Type735 { get; set; } + public global::Runway.CreateRoutersResponseSettingsOptimizeFor? Type735 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettings? Type736 { get; set; } + public global::Runway.GetRoutersResponse2? Type736 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsModels? Type737 { get; set; } + public global::Runway.GetRoutersResponseSettings? Type737 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsModelsMode? Type738 { get; set; } + public global::Runway.GetRoutersResponseSettingsModels? Type738 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? Type739 { get; set; } + public global::Runway.GetRoutersResponseSettingsModelsMode? Type739 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsOptimizeFor? Type740 { get; set; } + public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? Type740 { get; set; } /// /// /// - public global::Runway.GetRoutersResponse2? Type741 { get; set; } + public global::Runway.GetRoutersResponseSettingsOptimizeFor? Type741 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettings? Type742 { get; set; } + public global::Runway.PatchRoutersResponse? Type742 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsModels? Type743 { get; set; } + public global::Runway.PatchRoutersResponseSettings? Type743 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsModelsMode? Type744 { get; set; } + public global::Runway.PatchRoutersResponseSettingsModels? Type744 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? Type745 { get; set; } + public global::Runway.PatchRoutersResponseSettingsModelsMode? Type745 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsOptimizeFor? Type746 { get; set; } + public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? Type746 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponse? Type747 { get; set; } + public global::Runway.PatchRoutersResponseSettingsOptimizeFor? Type747 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettings? Type748 { get; set; } + public global::Runway.GetVoicesResponse? Type748 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsModels? Type749 { get; set; } + public global::System.Collections.Generic.IList? Type749 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsModelsMode? Type750 { get; set; } + public global::Runway.DataItem2? Type750 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? Type751 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type751 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsOptimizeFor? Type752 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceReady? Type752 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse? Type753 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::Runway.GetVoicesResponseDataItemDiscriminator? Type754 { get; set; } /// /// /// - public global::Runway.DataItem2? Type755 { get; set; } + public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type755 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type756 { get; set; } + public global::Runway.CreateVoicesResponse? Type756 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceReady? Type757 { get; set; } + public global::Runway.GetVoicesResponse2? Type757 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type758 { get; set; } + public global::Runway.GetVoicesResponseVoiceProcessing? Type758 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminator? Type759 { get; set; } + public global::Runway.GetVoicesResponseVoiceReady? Type759 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type760 { get; set; } + public global::Runway.GetVoicesResponseVoiceFailed? Type760 { get; set; } /// /// /// - public global::Runway.CreateVoicesResponse? Type761 { get; set; } + public global::Runway.GetVoicesResponseDiscriminator? Type761 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse2? Type762 { get; set; } + public global::Runway.GetVoicesResponseDiscriminatorStatus? Type762 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceProcessing? Type763 { get; set; } + public global::Runway.PatchVoicesResponse? Type763 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceReady? Type764 { get; set; } + public global::Runway.PatchVoicesResponseVoiceProcessing? Type764 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceFailed? Type765 { get; set; } + public global::Runway.PatchVoicesResponseVoiceReady? Type765 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminator? Type766 { get; set; } + public global::Runway.PatchVoicesResponseVoiceFailed? Type766 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminatorStatus? Type767 { get; set; } + public global::Runway.PatchVoicesResponseDiscriminator? Type767 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponse? Type768 { get; set; } + public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type768 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceProcessing? Type769 { get; set; } + public global::Runway.CreateVoicesPreviewResponse? Type769 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceReady? Type770 { get; set; } + public global::Runway.CreateWorkflowsResponse? Type770 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceFailed? Type771 { get; set; } + public global::Runway.CreateWorkflowsResponse2? Type771 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminator? Type772 { get; set; } + public global::Runway.GetWorkflowsResponse? Type772 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type773 { get; set; } + public global::Runway.GetWorkflowsResponseGraph? Type773 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewResponse? Type774 { get; set; } + public global::Runway.GetWorkflowsResponse2? Type774 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse? Type775 { get; set; } + public global::Runway.GetWorkflowsResponse3? Type775 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse2? Type776 { get; set; } + public global::System.Collections.Generic.IList? Type776 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse? Type777 { get; set; } + public global::Runway.GetWorkflowsResponseDataItem? Type777 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseGraph? Type778 { get; set; } + public global::System.Collections.Generic.IList? Type778 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse2? Type779 { get; set; } + public global::Runway.GetWorkflowsResponseDataItemVersion? Type779 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse3? Type780 { get; set; } + public global::Runway.GetWorkflowInvocationsResponse? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type781 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItem? Type782 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type783 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type783 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItemVersion? Type784 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type784 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse? Type785 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type785 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type786 { get; set; } + public global::System.Collections.Generic.Dictionary? Type786 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type787 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type787 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type788 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type788 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type789 { get; set; } + public global::System.Collections.Generic.Dictionary? Type789 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type790 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type790 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type791 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type791 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type792 { get; set; } + public global::System.Collections.Generic.Dictionary? Type792 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type793 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type793 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type794 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type794 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type795 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type795 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type796 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type797 { get; set; } - /// - /// - /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type798 { get; set; } - /// - /// - /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type799 { get; set; } - /// - /// - /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type800 { get; set; } - /// - /// - /// - public global::Runway.GetWorkflowInvocationsResponse2? Type801 { get; set; } + public global::Runway.GetWorkflowInvocationsResponse2? Type796 { get; set; } /// /// @@ -3593,22 +3573,30 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType90 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType93 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType95 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs index c3ebbbf..fe546d2 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs @@ -15,12 +15,6 @@ public sealed partial class CreateGenerateVideoRequest [global::System.Text.Json.Serialization.JsonRequired] public required string ConfigId { get; set; } - /// - /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] - public bool? DryRun { get; set; } - /// /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. /// @@ -43,19 +37,14 @@ public sealed partial class CreateGenerateVideoRequest /// /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. /// - /// - /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateGenerateVideoRequest( string configId, - global::Runway.CreateGenerateVideoRequestInput input, - bool? dryRun) + global::Runway.CreateGenerateVideoRequestInput input) { this.ConfigId = configId ?? throw new global::System.ArgumentNullException(nameof(configId)); - this.DryRun = dryRun; this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs index e2abf0c..db1f937 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public readonly partial struct CreateGenerateVideoResponse + public sealed partial class CreateGenerateVideoResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Runway.CreateGenerateVideoResponse), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse?; + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Runway.CreateGenerateVideoResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse?; + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs index b6fda2e..0a8952e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -7,297 +6,54 @@ namespace Runway /// /// /// - public readonly partial struct CreateGenerateVideoResponse : global::System.IEquatable + public sealed partial class CreateGenerateVideoResponse { /// - /// + /// The ID of the created task. Poll GET /v1/tasks/:id for the result. /// - public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? DryRun { get; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } /// - /// + /// Metadata describing which model the router selected and why. /// -#if NET6_0_OR_GREATER - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? False { get; init; } -#else - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? False { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(False))] -#endif - public bool IsFalse => False != null; - - /// - /// - /// - public bool TryPickFalse( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) - { - value = False; - return IsFalse; - } + [global::System.Text.Json.Serialization.JsonPropertyName("routing")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRouting Routing { get; set; } /// - /// + /// Additional properties that are not explicitly defined in the schema /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated PickFalse() => IsFalse - ? False! - : throw new global::System.InvalidOperationException($"Expected union variant 'False' but the value was {ToString()}."); + [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 NET6_0_OR_GREATER - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? True { get; init; } -#else - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? True { get; } + /// + /// The ID of the created task. Poll GET /v1/tasks/:id for the result. + /// + /// + /// Metadata describing which model the router selected and why. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(True))] -#endif - public bool IsTrue => True != null; - - /// - /// - /// - public bool TryPickTrue( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) - { - value = True; - return IsTrue; - } - - /// - /// - /// - public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun PickTrue() => IsTrue - ? True! - : throw new global::System.InvalidOperationException($"Expected union variant 'True' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated value) => new CreateGenerateVideoResponse((global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated?)value); - - /// - /// - /// - public static implicit operator global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated?(CreateGenerateVideoResponse @this) => @this.False; - - /// - /// - /// - public CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) - { - False = value; - } - - /// - /// - /// - public static CreateGenerateVideoResponse FromFalse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) => new CreateGenerateVideoResponse(value); - - /// - /// - /// - public static implicit operator CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun value) => new CreateGenerateVideoResponse((global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun?)value); - - /// - /// - /// - public static implicit operator global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun?(CreateGenerateVideoResponse @this) => @this.True; - - /// - /// - /// - public CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) - { - True = value; - } - - /// - /// - /// - public static CreateGenerateVideoResponse FromTrue(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) => new CreateGenerateVideoResponse(value); - - /// - /// - /// public CreateGenerateVideoResponse( - global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? dryRun, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? @false, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? @true - ) + global::System.Guid id, + global::Runway.CreateGenerateVideoResponseRouting routing) { - DryRun = dryRun; - - False = @false; - True = @true; + this.Id = id; + this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); } /// - /// - /// - public object? Object => - True as object ?? - False as object - ; - - /// - /// - /// - public override string? ToString() => - False?.ToString() ?? - True?.ToString() - ; - - /// - /// + /// Initializes a new instance of the class. /// - public bool Validate() + public CreateGenerateVideoResponse() { - return IsFalse && !IsTrue || !IsFalse && IsTrue; } - /// - /// - /// - public TResult? Match( - global::System.Func? @false = null, - global::System.Func? @true = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsFalse && @false != null) - { - return @false(False!); - } - else if (IsTrue && @true != null) - { - return @true(True!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? @false = null, - - global::System.Action? @true = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsFalse) - { - @false?.Invoke(False!); - } - else if (IsTrue) - { - @true?.Invoke(True!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? @false = null, - global::System.Action? @true = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsFalse) - { - @false?.Invoke(False!); - } - else if (IsTrue) - { - @true?.Invoke(True!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - False, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), - True, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(CreateGenerateVideoResponse other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(False, other.False) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(True, other.True) - ; - } - - /// - /// - /// - public static bool operator ==(CreateGenerateVideoResponse obj1, CreateGenerateVideoResponse obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(CreateGenerateVideoResponse obj1, CreateGenerateVideoResponse obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is CreateGenerateVideoResponse o && Equals(o); - } } -} +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs deleted file mode 100644 index c278a18..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public sealed partial class CreateGenerateVideoResponseDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter))] - public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? DryRun { 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 CreateGenerateVideoResponseDiscriminator( - global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? dryRun) - { - this.DryRun = dryRun; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs deleted file mode 100644 index 57ad4e3..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public enum CreateGenerateVideoResponseDiscriminatorDryRun - { - /// - /// - /// - False, - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateVideoResponseDiscriminatorDryRunExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateVideoResponseDiscriminatorDryRun value) - { - return value switch - { - CreateGenerateVideoResponseDiscriminatorDryRun.False => "False", - CreateGenerateVideoResponseDiscriminatorDryRun.True => "True", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateVideoResponseDiscriminatorDryRun? ToEnum(string value) - { - return value switch - { - "False" => CreateGenerateVideoResponseDiscriminatorDryRun.False, - "True" => CreateGenerateVideoResponseDiscriminatorDryRun.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs deleted file mode 100644 index 791dc58..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRun - { - /// - /// - /// - /// true - [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] - public bool DryRun { get; set; } = true; - - /// - /// Metadata describing which model the router selected and why. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("routing")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting Routing { 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. - /// - /// - /// Metadata describing which model the router selected and why. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoDryRun( - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting routing, - bool dryRun = true) - { - this.DryRun = dryRun; - this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoDryRun() - { - } - - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static CreateGenerateVideoResponseRoutedVideoDryRun FromRouting(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting routing) - { - return new CreateGenerateVideoResponseRoutedVideoDryRun - { - Routing = routing, - }; - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs deleted file mode 100644 index e1e24ce..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs deleted file mode 100644 index 7b0e6b2..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs deleted file mode 100644 index 18aab1d..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index 9c9173b..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - public enum CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor - { - /// - /// - /// - Cost, - /// - /// - /// - Latency, - /// - /// - /// - Quality, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor value) - { - return value switch - { - CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Cost => "cost", - CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Latency => "latency", - CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Quality => "quality", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? ToEnum(string value) - { - return value switch - { - "cost" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Cost, - "latency" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Latency, - "quality" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Quality, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs deleted file mode 100644 index 0ab7722..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs deleted file mode 100644 index 826d94f..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreated - { - /// - /// - /// - /// false - [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] - public bool DryRun { get; set; } = false; - - /// - /// The ID of the created task. Poll GET /v1/tasks/:id for the result. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// Metadata describing which model the router selected and why. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("routing")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting Routing { 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 ID of the created task. Poll GET /v1/tasks/:id for the result. - /// - /// - /// Metadata describing which model the router selected and why. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoTaskCreated( - global::System.Guid id, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting routing, - bool dryRun = false) - { - this.DryRun = dryRun; - this.Id = id; - this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoTaskCreated() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs deleted file mode 100644 index 4576718..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs deleted file mode 100644 index 90d2c05..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs +++ /dev/null @@ -1,107 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// Metadata describing which model the router selected and why. - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting - { - /// - /// The public name of the model the router selected. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Model { get; set; } - - /// - /// The provider of the selected model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Provider { get; set; } - - /// - /// The slug of the router config that was applied to this request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigId { get; set; } - - /// - /// The resolved config settings the router used for this request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings ResolvedSettings { get; set; } - - /// - /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolvedInput")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput ResolvedInput { get; set; } - - /// - /// Estimated cost, computed against current pricing. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost EstimatedCost { 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 public name of the model the router selected. - /// - /// - /// The provider of the selected model. - /// - /// - /// The slug of the router config that was applied to this request. - /// - /// - /// The resolved config settings the router used for this request. - /// - /// - /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. - /// - /// - /// Estimated cost, computed against current pricing. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting( - string model, - string provider, - string configId, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings resolvedSettings, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput resolvedInput, - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost estimatedCost) - { - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); - this.ConfigId = configId ?? throw new global::System.ArgumentNullException(nameof(configId)); - this.ResolvedSettings = resolvedSettings ?? throw new global::System.ArgumentNullException(nameof(resolvedSettings)); - this.ResolvedInput = resolvedInput ?? throw new global::System.ArgumentNullException(nameof(resolvedInput)); - this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs deleted file mode 100644 index fe3ca3d..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs deleted file mode 100644 index faaccf9..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// Estimated cost, computed against current pricing. - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost - { - /// - /// Estimated cost of the generation in credits. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("credits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Credits { 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. - /// - /// - /// Estimated cost of the generation in credits. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost( - double credits) - { - this.Credits = credits; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs deleted file mode 100644 index 4b9733f..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs deleted file mode 100644 index 7771d46..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput - { - /// - /// Duration in seconds used for routing display (request value or router default). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("duration")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double Duration { get; set; } - - /// - /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Ratio { get; set; } - - /// - /// Resolution tier from the request, or the router default when omitted. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Resolution { 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. - /// - /// - /// Duration in seconds used for routing display (request value or router default). - /// - /// - /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. - /// - /// - /// Resolution tier from the request, or the router default when omitted. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput( - double duration, - string ratio, - string resolution) - { - this.Duration = duration; - this.Ratio = ratio ?? throw new global::System.ArgumentNullException(nameof(ratio)); - this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs deleted file mode 100644 index 1bc600e..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs deleted file mode 100644 index 9668491..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The resolved config settings the router used for this request. - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings - { - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } - - /// - /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("priceCeiling")] - public double? PriceCeiling { 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 single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - /// - /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings( - global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor optimizeFor, - double? priceCeiling) - { - this.OptimizeFor = optimizeFor; - this.PriceCeiling = priceCeiling; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index f2b10b0..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - public enum CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor - { - /// - /// - /// - Cost, - /// - /// - /// - Latency, - /// - /// - /// - Quality, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor value) - { - return value switch - { - CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost => "cost", - CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency => "latency", - CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality => "quality", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? ToEnum(string value) - { - return value switch - { - "cost" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost, - "latency" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency, - "quality" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs deleted file mode 100644 index 7a85b45..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling - { - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( - string json) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Runway.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::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling; - } - - /// - /// 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::Runway.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::Runway.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs deleted file mode 100644 index 70bcef1..0000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. - /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling - { - - /// - /// 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/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs similarity index 91% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs index f07bf19..c6c122e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseDiscriminator + public sealed partial class CreateGenerateVideoResponseRouting { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseDiscriminator? FromJson( + public static global::Runway.CreateGenerateVideoResponseRouting? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseDiscriminator; + typeof(global::Runway.CreateGenerateVideoResponseRouting), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRouting; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseDiscriminator? FromJson( + public static global::Runway.CreateGenerateVideoResponseRouting? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Runway.CreateGenerateVideoResponseDiscriminator? FromJson( + public static global::Runway.CreateGenerateVideoResponseRouting? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseDiscriminator; + typeof(global::Runway.CreateGenerateVideoResponseRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRouting; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.g.cs similarity index 83% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.g.cs index c954510..f22ef99 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Metadata describing which model the router selected and why. /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting + public sealed partial class CreateGenerateVideoResponseRouting { /// /// The public name of the model the router selected. @@ -34,21 +34,21 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting /// [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings ResolvedSettings { get; set; } + public required global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings ResolvedSettings { get; set; } /// /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. /// [global::System.Text.Json.Serialization.JsonPropertyName("resolvedInput")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput ResolvedInput { get; set; } + public required global::Runway.CreateGenerateVideoResponseRoutingResolvedInput ResolvedInput { get; set; } /// /// Estimated cost, computed against current pricing. /// [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost EstimatedCost { get; set; } + public required global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost EstimatedCost { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,7 +57,7 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The public name of the model the router selected. @@ -80,13 +80,13 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutedVideoDryRunRouting( + public CreateGenerateVideoResponseRouting( string model, string provider, string configId, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings resolvedSettings, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput resolvedInput, - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost estimatedCost) + global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateVideoResponseRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost estimatedCost) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); @@ -97,9 +97,9 @@ public CreateGenerateVideoResponseRoutedVideoDryRunRouting( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutedVideoDryRunRouting() + public CreateGenerateVideoResponseRouting() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs index 47f6fe5..e9d78bc 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRun + public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun; + typeof(global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun; + typeof(global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs similarity index 77% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs index 0a3f72f..51a4880 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Estimated cost, computed against current pricing. /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost + public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost { /// /// Estimated cost of the generation in credits. @@ -22,7 +22,7 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingE public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Estimated cost of the generation in credits. @@ -30,16 +30,16 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingE #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost( + public CreateGenerateVideoResponseRoutingEstimatedCost( double credits) { this.Credits = credits; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost() + public CreateGenerateVideoResponseRoutingEstimatedCost() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs index 0220051..7fa6328 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreated + public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated; + typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedInput; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated; + typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedInput; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs similarity index 87% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs index 238e832..dfe2f57 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput + public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput { /// /// Duration in seconds used for routing display (request value or router default). @@ -36,7 +36,7 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingR public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Duration in seconds used for routing display (request value or router default). @@ -50,7 +50,7 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingR #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput( + public CreateGenerateVideoResponseRoutingResolvedInput( double duration, string ratio, string resolution) @@ -61,9 +61,9 @@ public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput() + public CreateGenerateVideoResponseRoutingResolvedInput() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs index 7ee1d13..2f29e9f 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting + public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting; + typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting; + typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs index 80affbb..9e4dfdd 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs @@ -6,15 +6,15 @@ namespace Runway /// /// The resolved config settings the router used for this request. /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings + public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings { /// /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. /// [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + public required global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } /// /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. @@ -29,7 +29,7 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingR public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. @@ -40,8 +40,8 @@ public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingR #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings( - global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor optimizeFor, + public CreateGenerateVideoResponseRoutingResolvedSettings( + global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor optimizeFor, double? priceCeiling) { this.OptimizeFor = optimizeFor; @@ -49,9 +49,9 @@ public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings() + public CreateGenerateVideoResponseRoutingResolvedSettings() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..f77ed97 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + public enum CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 0000000..18ce8bc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs similarity index 83% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs index 8040d10..50792fe 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. /// - public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling + public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling { /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponse.g.cs index 77fff3e..a851eca 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponse.g.cs @@ -22,6 +22,18 @@ public sealed partial class CreateOrganizationUsageResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Models { get; set; } + /// + /// Reserved for future use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKeys")] + public global::System.Collections.Generic.IList? ApiKeys { get; set; } + + /// + /// Reserved for future use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resultsByApiKey")] + public global::System.Collections.Generic.IList? ResultsByApiKey { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,15 +47,25 @@ public sealed partial class CreateOrganizationUsageResponse /// /// The list of models with usage during the queried time range. /// + /// + /// Reserved for future use. + /// + /// + /// Reserved for future use. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateOrganizationUsageResponse( global::System.Collections.Generic.IList results, - global::System.Collections.Generic.IList models) + global::System.Collections.Generic.IList models, + global::System.Collections.Generic.IList? apiKeys, + global::System.Collections.Generic.IList? resultsByApiKey) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); + this.ApiKeys = apiKeys; + this.ResultsByApiKey = resultsByApiKey; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.Json.g.cs new file mode 100644 index 0000000..5548b05 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateOrganizationUsageResponseResultsByApiKeyItem + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem), + jsonSerializerContext) as global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.g.cs new file mode 100644 index 0000000..384ee31 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItem.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateOrganizationUsageResponseResultsByApiKeyItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("date")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime Date { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usedCredits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList UsedCredits { 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 CreateOrganizationUsageResponseResultsByApiKeyItem( + global::System.DateTime date, + global::System.Collections.Generic.IList usedCredits) + { + this.Date = date; + this.UsedCredits = usedCredits ?? throw new global::System.ArgumentNullException(nameof(usedCredits)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationUsageResponseResultsByApiKeyItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.Json.g.cs new file mode 100644 index 0000000..dd6c74a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit), + jsonSerializerContext) as global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.g.cs new file mode 100644 index 0000000..56bc503 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("apiKeyId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ApiKeyId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("amount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Amount { 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 CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit( + global::System.Guid apiKeyId, + int amount) + { + this.ApiKeyId = apiKeyId; + this.Amount = amount; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/openapi.json b/src/libs/Runway/openapi.json index 9013f21..86a1311 100644 --- a/src/libs/Runway/openapi.json +++ b/src/libs/Runway/openapi.json @@ -11665,10 +11665,6 @@ "type": "string", "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, - "dryRun": { - "description": "When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced.", - "type": "boolean" - }, "input": { "title": "UniversalVideoInput", "description": "Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it.", @@ -12000,201 +11996,107 @@ }, "responses": { "200": { - "description": "The routing decision. Includes a task `id` for real requests; dry runs return the decision only.", + "description": "The created task and routing decision. Poll GET /v1/tasks/:id for the result.", "content": { "application/json": { "schema": { - "oneOf": [ - { - "title": "RoutedVideoTaskCreated", + "title": "RoutedVideoTaskCreated", + "type": "object", + "properties": { + "id": { + "description": "The ID of the created task. Poll GET /v1/tasks/:id for the result.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "routing": { + "description": "Metadata describing which model the router selected and why.", "type": "object", "properties": { - "dryRun": { "type": "boolean", "const": false }, - "id": { - "description": "The ID of the created task. Poll GET /v1/tasks/:id for the result.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "model": { + "description": "The public name of the model the router selected.", + "type": "string" + }, + "provider": { + "description": "The provider of the selected model.", + "type": "string" }, - "routing": { - "description": "Metadata describing which model the router selected and why.", + "configId": { + "description": "The slug of the router config that was applied to this request.", + "type": "string" + }, + "resolvedSettings": { + "description": "The resolved config settings the router used for this request.", "type": "object", "properties": { - "model": { - "description": "The public name of the model the router selected.", - "type": "string" - }, - "provider": { - "description": "The provider of the selected model.", - "type": "string" - }, - "configId": { - "description": "The slug of the router config that was applied to this request.", - "type": "string" - }, - "resolvedSettings": { - "description": "The resolved config settings the router used for this request.", - "type": "object", - "properties": { - "optimizeFor": { - "description": "The single optimization preference the config selected, used as the soft weighting when scoring eligible models.", - "type": "string", - "enum": ["cost", "latency", "quality"] - }, - "priceCeiling": { - "description": "The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling.", - "anyOf": [ - { "type": "number" }, - { "type": "null" } - ] - } - }, - "required": ["optimizeFor", "priceCeiling"], - "additionalProperties": false - }, - "resolvedInput": { - "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", - "type": "object", - "properties": { - "duration": { - "description": "Duration in seconds used for routing display (request value or router default).", - "type": "number" - }, - "ratio": { - "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", - "type": "string" - }, - "resolution": { - "description": "Resolution tier from the request, or the router default when omitted.", - "type": "string" - } - }, - "required": ["duration", "ratio", "resolution"], - "additionalProperties": false + "optimizeFor": { + "description": "The single optimization preference the config selected, used as the soft weighting when scoring eligible models.", + "type": "string", + "enum": ["cost", "latency", "quality"] }, - "estimatedCost": { - "description": "Estimated cost, computed against current pricing.", - "type": "object", - "properties": { - "credits": { - "description": "Estimated cost of the generation in credits.", - "type": "number" - } - }, - "required": ["credits"], - "additionalProperties": false + "priceCeiling": { + "description": "The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling.", + "anyOf": [ + { "type": "number" }, + { "type": "null" } + ] } }, - "required": [ - "model", - "provider", - "configId", - "resolvedSettings", - "resolvedInput", - "estimatedCost" - ], + "required": ["optimizeFor", "priceCeiling"], "additionalProperties": false - } - }, - "required": ["dryRun", "id", "routing"], - "additionalProperties": false - }, - { - "title": "RoutedVideoDryRun", - "type": "object", - "properties": { - "dryRun": { "type": "boolean", "const": true }, - "routing": { - "description": "Metadata describing which model the router selected and why.", + }, + "resolvedInput": { + "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", "type": "object", "properties": { - "model": { - "description": "The public name of the model the router selected.", - "type": "string" + "duration": { + "description": "Duration in seconds used for routing display (request value or router default).", + "type": "number" }, - "provider": { - "description": "The provider of the selected model.", + "ratio": { + "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", "type": "string" }, - "configId": { - "description": "The slug of the router config that was applied to this request.", + "resolution": { + "description": "Resolution tier from the request, or the router default when omitted.", "type": "string" - }, - "resolvedSettings": { - "description": "The resolved config settings the router used for this request.", - "type": "object", - "properties": { - "optimizeFor": { - "description": "The single optimization preference the config selected, used as the soft weighting when scoring eligible models.", - "type": "string", - "enum": ["cost", "latency", "quality"] - }, - "priceCeiling": { - "description": "The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling.", - "anyOf": [ - { "type": "number" }, - { "type": "null" } - ] - } - }, - "required": ["optimizeFor", "priceCeiling"], - "additionalProperties": false - }, - "resolvedInput": { - "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", - "type": "object", - "properties": { - "duration": { - "description": "Duration in seconds used for routing display (request value or router default).", - "type": "number" - }, - "ratio": { - "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", - "type": "string" - }, - "resolution": { - "description": "Resolution tier from the request, or the router default when omitted.", - "type": "string" - } - }, - "required": ["duration", "ratio", "resolution"], - "additionalProperties": false - }, - "estimatedCost": { - "description": "Estimated cost, computed against current pricing.", - "type": "object", - "properties": { - "credits": { - "description": "Estimated cost of the generation in credits.", - "type": "number" - } - }, - "required": ["credits"], - "additionalProperties": false } }, - "required": [ - "model", - "provider", - "configId", - "resolvedSettings", - "resolvedInput", - "estimatedCost" - ], + "required": ["duration", "ratio", "resolution"], + "additionalProperties": false + }, + "estimatedCost": { + "description": "Estimated cost, computed against current pricing.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], "additionalProperties": false } }, - "required": ["dryRun", "routing"], + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], "additionalProperties": false } - ], - "discriminator": { "propertyName": "dryRun" } + }, + "required": ["id", "routing"], + "additionalProperties": false } } } }, "400": { - "description": "No model satisfies the config and request together. Returned identically for real and dry-run requests.", + "description": "No model satisfies the config and request together.", "content": { "application/json": { "schema": { @@ -12697,6 +12599,51 @@ "ad_localization" ] } + }, + "apiKeys": { + "description": "Reserved for future use.", + "type": "array", + "items": { + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + } + }, + "resultsByApiKey": { + "description": "Reserved for future use.", + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" + }, + "usedCredits": { + "type": "array", + "items": { + "type": "object", + "properties": { + "apiKeyId": { + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + }, + "amount": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["apiKeyId", "amount"], + "additionalProperties": false + } + } + }, + "required": ["date", "usedCredits"], + "additionalProperties": false + } } }, "required": ["results", "models"],