From 623be67bee683f2da5f8832f4fa4f3b355b8f5f6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 15 Jun 2026 19:02:54 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/cli/Descript.CLI/CliRuntime.cs | 58 +++++++++---------- ...ndpointsAgentEditJobCommandApiCommand.g.cs | 14 ++--- ...intsExportTranscriptCommandApiCommand.g.cs | 8 +-- ...tsImportProjectMediaCommandApiCommand.g.cs | 14 ++--- ...iEndpointsPublishJobCommandApiCommand.g.cs | 10 ++-- 5 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/cli/Descript.CLI/CliRuntime.cs b/src/cli/Descript.CLI/CliRuntime.cs index 9e4d2d2..cacde2e 100644 --- a/src/cli/Descript.CLI/CliRuntime.cs +++ b/src/cli/Descript.CLI/CliRuntime.cs @@ -17,7 +17,7 @@ internal static class CliRuntime private static readonly string[] ApiKeyEnvironmentVariables = [@"DESCRIPT_API_KEY"]; private const string CredentialFileDirectoryName = ".descript"; - 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::Descript.ApiException exception) + private static async global::System.Threading.Tasks.Task WriteApiExceptionAsync(global::Descript.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/Descript.CLI/Commands/ApiEndpointsAgentEditJobCommandApiCommand.g.cs b/src/cli/Descript.CLI/Commands/ApiEndpointsAgentEditJobCommandApiCommand.g.cs index 2bc0773..144cdfd 100644 --- a/src/cli/Descript.CLI/Commands/ApiEndpointsAgentEditJobCommandApiCommand.g.cs +++ b/src/cli/Descript.CLI/Commands/ApiEndpointsAgentEditJobCommandApiCommand.g.cs @@ -173,14 +173,14 @@ await CliRuntime.RunAsync(async () => RequestFile, global::Descript.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var projectId = CliRuntime.WasSpecified(parseResult, ProjectId) ? parseResult.GetValue(ProjectId) : __requestBase is not null ? __requestBase.ProjectId : default; - var projectName = CliRuntime.WasSpecified(parseResult, ProjectName) ? parseResult.GetValue(ProjectName) : __requestBase is not null ? __requestBase.ProjectName : default; - var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : __requestBase is not null ? __requestBase.CompositionId : default; - var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : __requestBase is not null ? __requestBase.Model : default; + var projectId = CliRuntime.WasSpecified(parseResult, ProjectId) ? parseResult.GetValue(ProjectId) : (__requestBase is { } __ProjectIdBaseValue ? __ProjectIdBaseValue.ProjectId : default); + var projectName = CliRuntime.WasSpecified(parseResult, ProjectName) ? parseResult.GetValue(ProjectName) : (__requestBase is { } __ProjectNameBaseValue ? __ProjectNameBaseValue.ProjectName : default); + var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : (__requestBase is { } __CompositionIdBaseValue ? __CompositionIdBaseValue.CompositionId : default); + var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : (__requestBase is { } __ModelBaseValue ? __ModelBaseValue.Model : default); var prompt = parseResult.GetRequiredValue(Prompt); - var teamAccess = CliRuntime.WasSpecified(parseResult, TeamAccess) ? parseResult.GetValue(TeamAccess) : __requestBase is not null ? __requestBase.TeamAccess : default; - var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : __requestBase is not null ? __requestBase.CallbackUrl : default; - var conversationId = CliRuntime.WasSpecified(parseResult, ConversationId) ? parseResult.GetValue(ConversationId) : __requestBase is not null ? __requestBase.ConversationId : default; + var teamAccess = CliRuntime.WasSpecified(parseResult, TeamAccess) ? parseResult.GetValue(TeamAccess) : (__requestBase is { } __TeamAccessBaseValue ? __TeamAccessBaseValue.TeamAccess : default); + var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : (__requestBase is { } __CallbackUrlBaseValue ? __CallbackUrlBaseValue.CallbackUrl : default); + var conversationId = CliRuntime.WasSpecified(parseResult, ConversationId) ? parseResult.GetValue(ConversationId) : (__requestBase is { } __ConversationIdBaseValue ? __ConversationIdBaseValue.ConversationId : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Descript.CLI/Commands/ApiEndpointsExportTranscriptCommandApiCommand.g.cs b/src/cli/Descript.CLI/Commands/ApiEndpointsExportTranscriptCommandApiCommand.g.cs index b4cdb1b..7f2633a 100644 --- a/src/cli/Descript.CLI/Commands/ApiEndpointsExportTranscriptCommandApiCommand.g.cs +++ b/src/cli/Descript.CLI/Commands/ApiEndpointsExportTranscriptCommandApiCommand.g.cs @@ -131,11 +131,11 @@ await CliRuntime.RunAsync(async () => global::Descript.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var projectId = parseResult.GetRequiredValue(ProjectId); - var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : __requestBase is not null ? __requestBase.CompositionId : default; + var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : (__requestBase is { } __CompositionIdBaseValue ? __CompositionIdBaseValue.CompositionId : default); var format = parseResult.GetRequiredValue(Format); - var includeSpeakerLabels = CliRuntime.WasSpecified(parseResult, IncludeSpeakerLabels) ? parseResult.GetValue(IncludeSpeakerLabels) : __requestBase is not null ? __requestBase.IncludeSpeakerLabels : default; - var includeMarkers = CliRuntime.WasSpecified(parseResult, IncludeMarkers) ? parseResult.GetValue(IncludeMarkers) : __requestBase is not null ? __requestBase.IncludeMarkers : default; - var timecodes = CliRuntime.WasSpecified(parseResult, Timecodes) ? parseResult.GetValue(Timecodes) : __requestBase is not null ? __requestBase.Timecodes : default; + var includeSpeakerLabels = CliRuntime.WasSpecified(parseResult, IncludeSpeakerLabels) ? parseResult.GetValue(IncludeSpeakerLabels) : (__requestBase is { } __IncludeSpeakerLabelsBaseValue ? __IncludeSpeakerLabelsBaseValue.IncludeSpeakerLabels : default); + var includeMarkers = CliRuntime.WasSpecified(parseResult, IncludeMarkers) ? parseResult.GetValue(IncludeMarkers) : (__requestBase is { } __IncludeMarkersBaseValue ? __IncludeMarkersBaseValue.IncludeMarkers : default); + var timecodes = CliRuntime.WasSpecified(parseResult, Timecodes) ? parseResult.GetValue(Timecodes) : (__requestBase is { } __TimecodesBaseValue ? __TimecodesBaseValue.Timecodes : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Descript.CLI/Commands/ApiEndpointsImportProjectMediaCommandApiCommand.g.cs b/src/cli/Descript.CLI/Commands/ApiEndpointsImportProjectMediaCommandApiCommand.g.cs index b10bee3..90e8ec2 100644 --- a/src/cli/Descript.CLI/Commands/ApiEndpointsImportProjectMediaCommandApiCommand.g.cs +++ b/src/cli/Descript.CLI/Commands/ApiEndpointsImportProjectMediaCommandApiCommand.g.cs @@ -166,13 +166,13 @@ await CliRuntime.RunAsync(async () => RequestFile, global::Descript.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var projectId = CliRuntime.WasSpecified(parseResult, ProjectId) ? parseResult.GetValue(ProjectId) : __requestBase is not null ? __requestBase.ProjectId : default; - var projectName = CliRuntime.WasSpecified(parseResult, ProjectName) ? parseResult.GetValue(ProjectName) : __requestBase is not null ? __requestBase.ProjectName : default; - var teamAccess = CliRuntime.WasSpecified(parseResult, TeamAccess) ? parseResult.GetValue(TeamAccess) : __requestBase is not null ? __requestBase.TeamAccess : default; - var folderName = CliRuntime.WasSpecified(parseResult, FolderName) ? parseResult.GetValue(FolderName) : __requestBase is not null ? __requestBase.FolderName : default; - var addMedia = CliRuntime.WasSpecified(parseResult, AddMedia) ? parseResult.GetValue(AddMedia) : __requestBase is not null ? __requestBase.AddMedia : default; - var addCompositions = CliRuntime.WasSpecified(parseResult, AddCompositions) ? parseResult.GetValue(AddCompositions) : __requestBase is not null ? __requestBase.AddCompositions : default; - var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : __requestBase is not null ? __requestBase.CallbackUrl : default; + var projectId = CliRuntime.WasSpecified(parseResult, ProjectId) ? parseResult.GetValue(ProjectId) : (__requestBase is { } __ProjectIdBaseValue ? __ProjectIdBaseValue.ProjectId : default); + var projectName = CliRuntime.WasSpecified(parseResult, ProjectName) ? parseResult.GetValue(ProjectName) : (__requestBase is { } __ProjectNameBaseValue ? __ProjectNameBaseValue.ProjectName : default); + var teamAccess = CliRuntime.WasSpecified(parseResult, TeamAccess) ? parseResult.GetValue(TeamAccess) : (__requestBase is { } __TeamAccessBaseValue ? __TeamAccessBaseValue.TeamAccess : default); + var folderName = CliRuntime.WasSpecified(parseResult, FolderName) ? parseResult.GetValue(FolderName) : (__requestBase is { } __FolderNameBaseValue ? __FolderNameBaseValue.FolderName : default); + var addMedia = CliRuntime.WasSpecified(parseResult, AddMedia) ? parseResult.GetValue(AddMedia) : (__requestBase is { } __AddMediaBaseValue ? __AddMediaBaseValue.AddMedia : default); + var addCompositions = CliRuntime.WasSpecified(parseResult, AddCompositions) ? parseResult.GetValue(AddCompositions) : (__requestBase is { } __AddCompositionsBaseValue ? __AddCompositionsBaseValue.AddCompositions : default); + var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : (__requestBase is { } __CallbackUrlBaseValue ? __CallbackUrlBaseValue.CallbackUrl : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Descript.CLI/Commands/ApiEndpointsPublishJobCommandApiCommand.g.cs b/src/cli/Descript.CLI/Commands/ApiEndpointsPublishJobCommandApiCommand.g.cs index be91db7..fb50e0f 100644 --- a/src/cli/Descript.CLI/Commands/ApiEndpointsPublishJobCommandApiCommand.g.cs +++ b/src/cli/Descript.CLI/Commands/ApiEndpointsPublishJobCommandApiCommand.g.cs @@ -147,11 +147,11 @@ await CliRuntime.RunAsync(async () => global::Descript.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var projectId = parseResult.GetRequiredValue(ProjectId); - var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : __requestBase is not null ? __requestBase.CompositionId : default; - var mediaType = CliRuntime.WasSpecified(parseResult, MediaType) ? parseResult.GetValue(MediaType) : __requestBase is not null ? __requestBase.MediaType : default; - var resolution = CliRuntime.WasSpecified(parseResult, Resolution) ? parseResult.GetValue(Resolution) : __requestBase is not null ? __requestBase.Resolution : default; - var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : __requestBase is not null ? __requestBase.CallbackUrl : default; - var accessLevel = CliRuntime.WasSpecified(parseResult, AccessLevel) ? parseResult.GetValue(AccessLevel) : __requestBase is not null ? __requestBase.AccessLevel : default; + var compositionId = CliRuntime.WasSpecified(parseResult, CompositionId) ? parseResult.GetValue(CompositionId) : (__requestBase is { } __CompositionIdBaseValue ? __CompositionIdBaseValue.CompositionId : default); + var mediaType = CliRuntime.WasSpecified(parseResult, MediaType) ? parseResult.GetValue(MediaType) : (__requestBase is { } __MediaTypeBaseValue ? __MediaTypeBaseValue.MediaType : default); + var resolution = CliRuntime.WasSpecified(parseResult, Resolution) ? parseResult.GetValue(Resolution) : (__requestBase is { } __ResolutionBaseValue ? __ResolutionBaseValue.Resolution : default); + var callbackUrl = CliRuntime.WasSpecified(parseResult, CallbackUrl) ? parseResult.GetValue(CallbackUrl) : (__requestBase is { } __CallbackUrlBaseValue ? __CallbackUrlBaseValue.CallbackUrl : default); + var accessLevel = CliRuntime.WasSpecified(parseResult, AccessLevel) ? parseResult.GetValue(AccessLevel) : (__requestBase is { } __AccessLevelBaseValue ? __AccessLevelBaseValue.AccessLevel : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);