From 5f61f4acbe8ee60baf690aaf3ebabd18061cbbb9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 15 Jun 2026 20:48:04 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/cli/Runway.Cli/GeneratedApi/CliRuntime.cs | 58 +++++++++---------- ...AvatarsCreateAvatarsCommandApiCommand.g.cs | 6 +- ...atarsEditAvatarsByIdCommandApiCommand.g.cs | 14 ++--- ...dgeEditDocumentsByIdCommandApiCommand.g.cs | 4 +- ...ateOrganizationUsageCommandApiCommand.g.cs | 4 +- ...eateRealtimeSessionsCommandApiCommand.g.cs | 8 +-- ...UploadsCreateUploadsCommandApiCommand.g.cs | 2 +- .../VoicesCreateVoicesCommandApiCommand.g.cs | 2 +- ...VoicesEditVoicesByIdCommandApiCommand.g.cs | 4 +- ...sCreateWorkflowsByIdCommandApiCommand.g.cs | 2 +- 10 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/cli/Runway.Cli/GeneratedApi/CliRuntime.cs b/src/cli/Runway.Cli/GeneratedApi/CliRuntime.cs index ccbf6a8..a5d582c 100644 --- a/src/cli/Runway.Cli/GeneratedApi/CliRuntime.cs +++ b/src/cli/Runway.Cli/GeneratedApi/CliRuntime.cs @@ -17,7 +17,7 @@ internal static class CliRuntime private static readonly string[] ApiKeyEnvironmentVariables = [@"RUNWAY_API_KEY", @"RUNWAYML_API_SECRET"]; private const string CredentialFileDirectoryName = ""; - public static async Task CreateClientAsync(ParseResult parseResult, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task CreateClientAsync(ParseResult parseResult, CancellationToken cancellationToken = default) { var apiKey = await TryResolveApiKeyAsync(parseResult, cancellationToken).ConfigureAwait(false); var authorizations = string.IsNullOrWhiteSpace(apiKey) @@ -46,7 +46,7 @@ internal static class CliRuntime "Design", "CA1031:Do not catch general exception types", Justification = "Generated CLI commands map unexpected failures to a stable exit code.")] - public static async Task RunAsync(Func action, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task RunAsync(Func action, CancellationToken cancellationToken = default) { try { @@ -75,13 +75,13 @@ public static async Task RunAsync(Func action, CancellationToken canc } } - public static async Task TryResolveApiKeyAsync(ParseResult parseResult, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task TryResolveApiKeyAsync(ParseResult parseResult, CancellationToken cancellationToken = default) { var probe = await ProbeAuthAsync(parseResult, cancellationToken).ConfigureAwait(false); return probe.Active?.RawValue; } - public static async Task GetAuthStatusAsync(ParseResult parseResult, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task GetAuthStatusAsync(ParseResult parseResult, CancellationToken cancellationToken = default) { var probe = await ProbeAuthAsync(parseResult, cancellationToken).ConfigureAwait(false); return new AuthStatusInfo( @@ -98,7 +98,7 @@ public static async Task GetAuthStatusAsync(ParseResult parseRes .ToArray()); } - public static async Task WriteUserSecretAsync(string name, string value, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteUserSecretAsync(string name, string value, CancellationToken cancellationToken = default) { var path = GetUserSecretsPath(); var directory = Path.GetDirectoryName(path); @@ -113,7 +113,7 @@ public static async Task WriteUserSecretAsync(string name, string value, Cancell await File.WriteAllTextAsync(path, json, cancellationToken).ConfigureAwait(false); } - public static async Task ClearUserSecretAsync(string name, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task ClearUserSecretAsync(string name, CancellationToken cancellationToken = default) { var path = GetUserSecretsPath(); if (!File.Exists(path)) @@ -241,7 +241,7 @@ public static TimeSpan ParseDuration(string value, string optionName) - public static async Task ReadInputAsync( + public static async global::System.Threading.Tasks.Task ReadInputAsync( ParseResult parseResult, Option inputOption, Option requestJsonOption, @@ -284,7 +284,7 @@ public static TimeSpan ParseDuration(string value, string optionName) return await ReadFlexibleInputAsync(parseResult.GetValue(inputOption)!, cancellationToken).ConfigureAwait(false); } - public static async Task ReadRequestAsync( + public static async global::System.Threading.Tasks.Task ReadRequestAsync( ParseResult parseResult, Option inputOption, Option requestJsonOption, @@ -306,7 +306,7 @@ public static async Task ReadRequestAsync( : throw new CliException($"Unable to deserialize request JSON as {typeof(T).Name}."); } - public static async Task ReadRequestOrDefaultAsync( + public static async global::System.Threading.Tasks.Task ReadRequestOrDefaultAsync( ParseResult parseResult, Option inputOption, Option requestJsonOption, @@ -367,19 +367,19 @@ public static string SerializeStringArray(IEnumerable values) return JsonSerializer.Serialize(values.ToArray()); } - public static async Task WriteJsonAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteJsonAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) { var json = JsonSerializer.Serialize(value, typeof(T), context); await WriteTextAsync(parseResult, PrettyJson(json), cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async Task WriteJsonLineAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteJsonLineAsync(ParseResult parseResult, T value, JsonSerializerContext context, CancellationToken cancellationToken = default) { var json = JsonSerializer.Serialize(value, typeof(T), context); await WriteTextAsync(parseResult, json + Environment.NewLine, append: true, cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async Task WriteResponseAsync( + public static async global::System.Threading.Tasks.Task WriteResponseAsync( ParseResult parseResult, T value, JsonSerializerContext context, @@ -399,7 +399,7 @@ public static async Task WriteResponseAsync( await WriteTextAsync(parseResult, text, cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async Task WriteResponseLineAsync( + public static async global::System.Threading.Tasks.Task WriteResponseLineAsync( ParseResult parseResult, T value, JsonSerializerContext context, @@ -419,7 +419,7 @@ public static async Task WriteResponseLineAsync( await WriteTextAsync(parseResult, text + Environment.NewLine, append: true, cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async Task TryWriteOutputDirectoryAsync( + public static async global::System.Threading.Tasks.Task TryWriteOutputDirectoryAsync( ParseResult parseResult, T value, JsonSerializerContext context, @@ -445,7 +445,7 @@ public static async Task TryWriteOutputDirectoryAsync( return true; } - public static async Task WriteSuccessAsync(ParseResult parseResult, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteSuccessAsync(ParseResult parseResult, CancellationToken cancellationToken = default) { if (parseResult.GetValue(CliOptions.Json)) { @@ -456,7 +456,7 @@ public static async Task WriteSuccessAsync(ParseResult parseResult, Cancellation await WriteTextAsync(parseResult, "success: true", cancellationToken: cancellationToken).ConfigureAwait(false); } - public static async Task WriteBinaryAsync(ParseResult parseResult, byte[] bytes, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteBinaryAsync(ParseResult parseResult, byte[] bytes, CancellationToken cancellationToken = default) { var outputPath = parseResult.GetValue(CliOptions.Output); if (string.IsNullOrWhiteSpace(outputPath)) @@ -467,7 +467,7 @@ public static async Task WriteBinaryAsync(ParseResult parseResult, byte[] bytes, await WriteBytesAsync(outputPath, bytes, cancellationToken).ConfigureAwait(false); } - public static async Task WriteStreamAsync(ParseResult parseResult, Stream stream, CancellationToken cancellationToken = default) + public static async global::System.Threading.Tasks.Task WriteStreamAsync(ParseResult parseResult, Stream stream, CancellationToken cancellationToken = default) { var outputPath = parseResult.GetValue(CliOptions.Output); if (string.IsNullOrWhiteSpace(outputPath)) @@ -504,13 +504,13 @@ public static string MaskSecret(string secret) return string.IsNullOrWhiteSpace(baseUrl) ? null : new Uri(baseUrl, UriKind.Absolute); } - private static async Task ReadUserSecretAsync(string name, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task ReadUserSecretAsync(string name, CancellationToken cancellationToken = default) { var values = await ReadUserSecretsAsync(cancellationToken).ConfigureAwait(false); return values.TryGetValue(name, out var value) && !string.IsNullOrWhiteSpace(value) ? value : null; } - private static async Task ReadCredentialFileAsync(CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task ReadCredentialFileAsync(CancellationToken cancellationToken = default) { var path = GetCredentialFilePath(); if (string.IsNullOrWhiteSpace(path) || !File.Exists(path)) @@ -522,7 +522,7 @@ public static string MaskSecret(string secret) return string.IsNullOrWhiteSpace(value) ? null : value.Trim(); } - private static async Task> ReadUserSecretsAsync(CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task> ReadUserSecretsAsync(CancellationToken cancellationToken = default) { var path = GetUserSecretsPath(); if (!File.Exists(path)) @@ -540,7 +540,7 @@ private static async Task> ReadUserSecretsAsync(Cance new Dictionary(StringComparer.Ordinal); } - private static async Task WriteTextAsync(ParseResult parseResult, string text, bool append = false, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task WriteTextAsync(ParseResult parseResult, string text, bool append = false, CancellationToken cancellationToken = default) { var outputPath = parseResult.GetValue(CliOptions.Output); if (string.IsNullOrWhiteSpace(outputPath)) @@ -570,7 +570,7 @@ private static async Task WriteTextAsync(ParseResult parseResult, string text, b } } - private static async Task WriteBytesAsync(string outputPath, byte[] bytes, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task WriteBytesAsync(string outputPath, byte[] bytes, CancellationToken cancellationToken = default) { var directory = Path.GetDirectoryName(outputPath); if (!string.IsNullOrWhiteSpace(directory)) @@ -586,12 +586,12 @@ private static bool EndsWithUnit(string value, char unit) return value.Length > 1 && value[^1] == unit; } - private static async Task WriteDeprecatedOptionWarningAsync(string oldOption, string replacement) + private static async global::System.Threading.Tasks.Task WriteDeprecatedOptionWarningAsync(string oldOption, string replacement) { await Console.Error.WriteLineAsync($"Warning: {oldOption} is deprecated; use {replacement}.").ConfigureAwait(false); } - private static async Task ReadFlexibleInputAsync(string input, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task ReadFlexibleInputAsync(string input, CancellationToken cancellationToken = default) { if (string.IsNullOrWhiteSpace(input)) { @@ -612,7 +612,7 @@ private static async Task ReadFlexibleInputAsync(string input, Cancellat return await ReadFileOrStdinAsync(input, cancellationToken).ConfigureAwait(false); } - private static async Task ReadFileOrStdinAsync(string pathOrDash, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task ReadFileOrStdinAsync(string pathOrDash, CancellationToken cancellationToken = default) { if (pathOrDash == "-") { @@ -830,7 +830,7 @@ private static void AppendLine(StringBuilder builder, int indent, string value) builder.AppendLine(value); } - private static async Task WriteItemFilesAsync(string outputDirectory, JsonArray items, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task WriteItemFilesAsync(string outputDirectory, JsonArray items, CancellationToken cancellationToken = default) { Directory.CreateDirectory(outputDirectory); @@ -880,7 +880,7 @@ await File.WriteAllTextAsync( } } - private static async Task TryWriteTextPropertyAsync( + private static async global::System.Threading.Tasks.Task TryWriteTextPropertyAsync( JsonObject item, string outputDirectory, string baseName, @@ -946,7 +946,7 @@ private static string SanitizeFileName(string value) return normalized; } - private static async Task WriteApiExceptionAsync(global::Runway.ApiException exception) + private static async global::System.Threading.Tasks.Task WriteApiExceptionAsync(global::Runway.ApiException exception) { var builder = new StringBuilder(); builder.Append("API error "); @@ -974,7 +974,7 @@ private static string PrettyJson(string json) return Encoding.UTF8.GetString(stream.ToArray()); } - private static async Task ProbeAuthAsync(ParseResult parseResult, CancellationToken cancellationToken = default) + private static async global::System.Threading.Tasks.Task ProbeAuthAsync(ParseResult parseResult, CancellationToken cancellationToken = default) { var optionSource = new AuthSourceProbe( Source: "option", diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs index b63bda8..4b3326b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsCreateAvatarsCommandApiCommand.g.cs @@ -136,10 +136,10 @@ await CliRuntime.RunAsync(async () => var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var referenceImage = parseResult.GetRequiredValue(ReferenceImage); var personality = parseResult.GetRequiredValue(Personality); - var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : (__requestBase is { } __StartScriptBaseValue ? __StartScriptBaseValue.StartScript : default); var voice = parseResult.GetRequiredValue(Voice); - var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : __requestBase is not null ? __requestBase.DocumentIds : default; - var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : __requestBase is not null ? __requestBase.ImageProcessing : default; + var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : (__requestBase is { } __DocumentIdsBaseValue ? __DocumentIdsBaseValue.DocumentIds : default); + var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : (__requestBase is { } __ImageProcessingBaseValue ? __ImageProcessingBaseValue.ImageProcessing : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs index d0f5535..3a6ea9d 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/AvatarsEditAvatarsByIdCommandApiCommand.g.cs @@ -138,13 +138,13 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; - var referenceImage = CliRuntime.WasSpecified(parseResult, ReferenceImage) ? parseResult.GetValue(ReferenceImage) : __requestBase is not null ? __requestBase.ReferenceImage : default; - var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : __requestBase is not null ? __requestBase.Personality : default; - var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; - var voice = CliRuntime.WasSpecified(parseResult, Voice) ? parseResult.GetValue(Voice) : __requestBase is not null ? __requestBase.Voice : default; - var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : __requestBase is not null ? __requestBase.DocumentIds : default; - var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : __requestBase is not null ? __requestBase.ImageProcessing : default; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var referenceImage = CliRuntime.WasSpecified(parseResult, ReferenceImage) ? parseResult.GetValue(ReferenceImage) : (__requestBase is { } __ReferenceImageBaseValue ? __ReferenceImageBaseValue.ReferenceImage : default); + var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : (__requestBase is { } __PersonalityBaseValue ? __PersonalityBaseValue.Personality : default); + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : (__requestBase is { } __StartScriptBaseValue ? __StartScriptBaseValue.StartScript : default); + var voice = CliRuntime.WasSpecified(parseResult, Voice) ? parseResult.GetValue(Voice) : (__requestBase is { } __VoiceBaseValue ? __VoiceBaseValue.Voice : default); + var documentIds = CliRuntime.WasSpecified(parseResult, DocumentIds) ? parseResult.GetValue(DocumentIds) : (__requestBase is { } __DocumentIdsBaseValue ? __DocumentIdsBaseValue.DocumentIds : default); + var imageProcessing = CliRuntime.WasSpecified(parseResult, ImageProcessing) ? parseResult.GetValue(ImageProcessing) : (__requestBase is { } __ImageProcessingBaseValue ? __ImageProcessingBaseValue.ImageProcessing : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs index e7dafcf..fa4986b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/KnowledgeEditDocumentsByIdCommandApiCommand.g.cs @@ -83,8 +83,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; - var content = CliRuntime.WasSpecified(parseResult, Content) ? parseResult.GetValue(Content) : __requestBase is not null ? __requestBase.Content : default; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var content = CliRuntime.WasSpecified(parseResult, Content) ? parseResult.GetValue(Content) : (__requestBase is { } __ContentBaseValue ? __ContentBaseValue.Content : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs index 0b43dda..3460dbc 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationCreateOrganizationUsageCommandApiCommand.g.cs @@ -95,8 +95,8 @@ await CliRuntime.RunAsync(async () => global::Runway.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var startDate = CliRuntime.WasSpecified(parseResult, StartDate) ? parseResult.GetValue(StartDate) : __requestBase is not null ? __requestBase.StartDate : default; - var beforeDate = CliRuntime.WasSpecified(parseResult, BeforeDate) ? parseResult.GetValue(BeforeDate) : __requestBase is not null ? __requestBase.BeforeDate : default; + var startDate = CliRuntime.WasSpecified(parseResult, StartDate) ? parseResult.GetValue(StartDate) : (__requestBase is { } __StartDateBaseValue ? __StartDateBaseValue.StartDate : default); + var beforeDate = CliRuntime.WasSpecified(parseResult, BeforeDate) ? parseResult.GetValue(BeforeDate) : (__requestBase is { } __BeforeDateBaseValue ? __BeforeDateBaseValue.BeforeDate : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs index b7d74f2..c651397 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RealtimeSessionsCreateRealtimeSessionsCommandApiCommand.g.cs @@ -127,10 +127,10 @@ await CliRuntime.RunAsync(async () => var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var model = parseResult.GetRequiredValue(Model); var avatar = parseResult.GetRequiredValue(Avatar); - var maxDuration = CliRuntime.WasSpecified(parseResult, MaxDuration) ? parseResult.GetValue(MaxDuration) : __requestBase is not null ? __requestBase.MaxDuration : default; - var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : __requestBase is not null ? __requestBase.Personality : default; - var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : __requestBase is not null ? __requestBase.StartScript : default; - var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : __requestBase is not null ? __requestBase.Tools : default; + var maxDuration = CliRuntime.WasSpecified(parseResult, MaxDuration) ? parseResult.GetValue(MaxDuration) : (__requestBase is { } __MaxDurationBaseValue ? __MaxDurationBaseValue.MaxDuration : default); + var personality = CliRuntime.WasSpecified(parseResult, Personality) ? parseResult.GetValue(Personality) : (__requestBase is { } __PersonalityBaseValue ? __PersonalityBaseValue.Personality : default); + var startScript = CliRuntime.WasSpecified(parseResult, StartScript) ? parseResult.GetValue(StartScript) : (__requestBase is { } __StartScriptBaseValue ? __StartScriptBaseValue.StartScript : default); + var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : (__requestBase is { } __ToolsBaseValue ? __ToolsBaseValue.Tools : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs index 2f7d721..4d431d1 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/UploadsCreateUploadsCommandApiCommand.g.cs @@ -97,7 +97,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); var filename = parseResult.GetRequiredValue(Filename); - var type = CliRuntime.WasSpecified(parseResult, Type) ? parseResult.GetValue(Type) : __requestBase is not null ? __requestBase.Type : default; + var type = CliRuntime.WasSpecified(parseResult, Type) ? parseResult.GetValue(Type) : (__requestBase is { } __TypeBaseValue ? __TypeBaseValue.Type : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs index a79440e..78c2f48 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesCreateVoicesCommandApiCommand.g.cs @@ -104,7 +104,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var name = parseResult.GetRequiredValue(NameOption); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : __requestBase is not null ? __requestBase.Description : default; + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); var from = parseResult.GetRequiredValue(From); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs index dc87e2b..cd31e1b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/VoicesEditVoicesByIdCommandApiCommand.g.cs @@ -103,8 +103,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : __requestBase is not null ? __requestBase.Name : default; - var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : __requestBase is not null ? __requestBase.Description : default; + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs index 25087f0..75c4358 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/WorkflowsCreateWorkflowsByIdCommandApiCommand.g.cs @@ -96,7 +96,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var id = parseResult.GetRequiredValue(Id); var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); - var nodeOutputs = CliRuntime.WasSpecified(parseResult, NodeOutputs) ? parseResult.GetValue(NodeOutputs) : __requestBase is not null ? __requestBase.NodeOutputs : default; + var nodeOutputs = CliRuntime.WasSpecified(parseResult, NodeOutputs) ? parseResult.GetValue(NodeOutputs) : (__requestBase is { } __NodeOutputsBaseValue ? __NodeOutputsBaseValue.NodeOutputs : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);