From 4bf15b8e2beeae23482541955b1140fb1ca2662e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 16 Jun 2026 18:51:08 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../FilesUploadFileCommandApiCommand.g.cs | 8 ++-- ...ostedToolPermissionsCommandApiCommand.g.cs | 40 +++++++++---------- .../RealtimeAcceptCallCommandApiCommand.g.cs | 10 ++--- .../RealtimeCreateCallCommandApiCommand.g.cs | 16 ++++---- ...ealtimeCreateSessionCommandApiCommand.g.cs | 10 ++--- ...lsCreateSkillVersionCommandApiCommand.g.cs | 2 +- ...ganizationSpendAlertCommandApiCommand.g.cs | 10 ++--- ...ateProjectSpendAlertCommandApiCommand.g.cs | 10 ++--- ...ganizationSpendAlertCommandApiCommand.g.cs | 10 ++--- ...ateProjectSpendAlertCommandApiCommand.g.cs | 10 ++--- .../UploadsCreateUploadCommandApiCommand.g.cs | 8 ++-- 11 files changed, 67 insertions(+), 67 deletions(-) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesUploadFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesUploadFileCommandApiCommand.g.cs index 1f331338..74fd8f1a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesUploadFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesUploadFileCommandApiCommand.g.cs @@ -135,18 +135,18 @@ await CliRuntime.RunAsync(async () => var filename = parseResult.GetRequiredValue(Filename); var purpose = parseResult.GetRequiredValue(Purpose); - var __expiresAfterBase = __requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default; var expiresAfterAnchor = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) ? parseResult.GetValue(ExpiresAfterOptions.Anchor) : (__expiresAfterBase is { } __ExpiresAfteranchorBaseValue ? __ExpiresAfteranchorBaseValue.Anchor : default); + var __ExpiresAfterBase = __requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default; var expiresAfterAnchor = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) ? parseResult.GetValue(ExpiresAfterOptions.Anchor) : (__ExpiresAfterBase is { } __ExpiresAfteranchorBaseValue ? __ExpiresAfteranchorBaseValue.Anchor : default); var expiresAfterSeconds = parseResult.GetValue(ExpiresAfterOptions.Seconds); - var __expiresAfterSpecified = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) || CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Seconds); + var __ExpiresAfterSpecified = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) || CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Seconds); var expiresAfter = - __expiresAfterSpecified || __expiresAfterBase is not null + __ExpiresAfterSpecified || __ExpiresAfterBase is not null ? new global::tryAGI.OpenAI.FileExpirationAfter { Anchor = expiresAfterAnchor, Seconds = expiresAfterSeconds!, } - : __expiresAfterBase; + : __ExpiresAfterBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsModifyProjectHostedToolPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsModifyProjectHostedToolPermissionsCommandApiCommand.g.cs index 0600fb73..587d3f85 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsModifyProjectHostedToolPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsModifyProjectHostedToolPermissionsCommandApiCommand.g.cs @@ -89,60 +89,60 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var projectId = parseResult.GetRequiredValue(ProjectId); - var __fileSearchBase = __requestBase is { } __FileSearchBaseValue ? __FileSearchBaseValue.FileSearch : default; var fileSearchEnabled = parseResult.GetValue(FileSearchOptions.Enabled); - var __fileSearchSpecified = CliRuntime.WasSpecified(parseResult, FileSearchOptions.Enabled); + var __FileSearchBase = __requestBase is { } __FileSearchBaseValue ? __FileSearchBaseValue.FileSearch : default; var fileSearchEnabled = parseResult.GetValue(FileSearchOptions.Enabled); + var __FileSearchSpecified = CliRuntime.WasSpecified(parseResult, FileSearchOptions.Enabled); var fileSearch = - __fileSearchSpecified || __fileSearchBase is not null + __FileSearchSpecified || __FileSearchBase is not null ? new global::tryAGI.OpenAI.HostedToolPermissionUpdate { Enabled = fileSearchEnabled!, } - : __fileSearchBase; + : __FileSearchBase; - var __webSearchBase = __requestBase is { } __WebSearchBaseValue ? __WebSearchBaseValue.WebSearch : default; var webSearchEnabled = parseResult.GetValue(WebSearchOptions.Enabled); - var __webSearchSpecified = CliRuntime.WasSpecified(parseResult, WebSearchOptions.Enabled); + var __WebSearchBase = __requestBase is { } __WebSearchBaseValue ? __WebSearchBaseValue.WebSearch : default; var webSearchEnabled = parseResult.GetValue(WebSearchOptions.Enabled); + var __WebSearchSpecified = CliRuntime.WasSpecified(parseResult, WebSearchOptions.Enabled); var webSearch = - __webSearchSpecified || __webSearchBase is not null + __WebSearchSpecified || __WebSearchBase is not null ? new global::tryAGI.OpenAI.HostedToolPermissionUpdate { Enabled = webSearchEnabled!, } - : __webSearchBase; + : __WebSearchBase; - var __imageGenerationBase = __requestBase is { } __ImageGenerationBaseValue ? __ImageGenerationBaseValue.ImageGeneration : default; var imageGenerationEnabled = parseResult.GetValue(ImageGenerationOptions.Enabled); - var __imageGenerationSpecified = CliRuntime.WasSpecified(parseResult, ImageGenerationOptions.Enabled); + var __ImageGenerationBase = __requestBase is { } __ImageGenerationBaseValue ? __ImageGenerationBaseValue.ImageGeneration : default; var imageGenerationEnabled = parseResult.GetValue(ImageGenerationOptions.Enabled); + var __ImageGenerationSpecified = CliRuntime.WasSpecified(parseResult, ImageGenerationOptions.Enabled); var imageGeneration = - __imageGenerationSpecified || __imageGenerationBase is not null + __ImageGenerationSpecified || __ImageGenerationBase is not null ? new global::tryAGI.OpenAI.HostedToolPermissionUpdate { Enabled = imageGenerationEnabled!, } - : __imageGenerationBase; + : __ImageGenerationBase; - var __mcpBase = __requestBase is { } __McpBaseValue ? __McpBaseValue.Mcp : default; var mcpEnabled = parseResult.GetValue(McpOptions.Enabled); - var __mcpSpecified = CliRuntime.WasSpecified(parseResult, McpOptions.Enabled); + var __McpBase = __requestBase is { } __McpBaseValue ? __McpBaseValue.Mcp : default; var mcpEnabled = parseResult.GetValue(McpOptions.Enabled); + var __McpSpecified = CliRuntime.WasSpecified(parseResult, McpOptions.Enabled); var mcp = - __mcpSpecified || __mcpBase is not null + __McpSpecified || __McpBase is not null ? new global::tryAGI.OpenAI.HostedToolPermissionUpdate { Enabled = mcpEnabled!, } - : __mcpBase; + : __McpBase; - var __codeInterpreterBase = __requestBase is { } __CodeInterpreterBaseValue ? __CodeInterpreterBaseValue.CodeInterpreter : default; var codeInterpreterEnabled = parseResult.GetValue(CodeInterpreterOptions.Enabled); - var __codeInterpreterSpecified = CliRuntime.WasSpecified(parseResult, CodeInterpreterOptions.Enabled); + var __CodeInterpreterBase = __requestBase is { } __CodeInterpreterBaseValue ? __CodeInterpreterBaseValue.CodeInterpreter : default; var codeInterpreterEnabled = parseResult.GetValue(CodeInterpreterOptions.Enabled); + var __CodeInterpreterSpecified = CliRuntime.WasSpecified(parseResult, CodeInterpreterOptions.Enabled); var codeInterpreter = - __codeInterpreterSpecified || __codeInterpreterBase is not null + __CodeInterpreterSpecified || __CodeInterpreterBase is not null ? new global::tryAGI.OpenAI.HostedToolPermissionUpdate { Enabled = codeInterpreterEnabled!, } - : __codeInterpreterBase; + : __CodeInterpreterBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptCallCommandApiCommand.g.cs index df512aa8..1d7d254e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptCallCommandApiCommand.g.cs @@ -160,18 +160,18 @@ await CliRuntime.RunAsync(async () => var include = CliRuntime.WasSpecified(parseResult, RealtimeSessionCreateRequestGAOptionSetOptions.Include) ? parseResult.GetValue(RealtimeSessionCreateRequestGAOptionSetOptions.Include) : (__requestBase is { } __IncludeBaseValue ? __IncludeBaseValue.Include : default); var parallelToolCalls = CliRuntime.WasSpecified(parseResult, RealtimeSessionCreateRequestGAOptionSetOptions.ParallelToolCalls) ? parseResult.GetValue(RealtimeSessionCreateRequestGAOptionSetOptions.ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); - var __promptBase = __requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default; var promptId = parseResult.GetValue(PromptOptions.Id); - var promptVersion = CliRuntime.WasSpecified(parseResult, PromptOptions.Version) ? parseResult.GetValue(PromptOptions.Version) : (__promptBase is { } __PromptversionBaseValue ? __PromptversionBaseValue.Version : default); - var __promptSpecified = CliRuntime.WasSpecified(parseResult, PromptOptions.Id) || CliRuntime.WasSpecified(parseResult, PromptOptions.Version); + var __PromptBase = __requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default; var promptId = parseResult.GetValue(PromptOptions.Id); + var promptVersion = CliRuntime.WasSpecified(parseResult, PromptOptions.Version) ? parseResult.GetValue(PromptOptions.Version) : (__PromptBase is { } __PromptversionBaseValue ? __PromptversionBaseValue.Version : default); + var __PromptSpecified = CliRuntime.WasSpecified(parseResult, PromptOptions.Id) || CliRuntime.WasSpecified(parseResult, PromptOptions.Version); var prompt = - __promptSpecified || __promptBase is not null + __PromptSpecified || __PromptBase is not null ? new global::tryAGI.OpenAI.PromptVariant1 { Id = promptId!, Version = promptVersion, } - : __promptBase; + : __PromptBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateCallCommandApiCommand.g.cs index 91ddde55..67b58573 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateCallCommandApiCommand.g.cs @@ -87,14 +87,14 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var sdp = parseResult.GetRequiredValue(Sdp); - var __sessionBase = __requestBase is { } __SessionBaseValue ? __SessionBaseValue.Session : default; var sessionType = CliRuntime.WasSpecified(parseResult, SessionOptions.Type) ? parseResult.GetValue(SessionOptions.Type) : (__sessionBase is { } __SessiontypeBaseValue ? __SessiontypeBaseValue.Type : default); - var sessionOutputModalities = CliRuntime.WasSpecified(parseResult, SessionOptions.OutputModalities) ? parseResult.GetValue(SessionOptions.OutputModalities) : (__sessionBase is { } __SessionoutputModalitiesBaseValue ? __SessionoutputModalitiesBaseValue.OutputModalities : default); - var sessionInstructions = CliRuntime.WasSpecified(parseResult, SessionOptions.Instructions) ? parseResult.GetValue(SessionOptions.Instructions) : (__sessionBase is { } __SessioninstructionsBaseValue ? __SessioninstructionsBaseValue.Instructions : default); - var sessionInclude = CliRuntime.WasSpecified(parseResult, SessionOptions.Include) ? parseResult.GetValue(SessionOptions.Include) : (__sessionBase is { } __SessionincludeBaseValue ? __SessionincludeBaseValue.Include : default); - var sessionParallelToolCalls = CliRuntime.WasSpecified(parseResult, SessionOptions.ParallelToolCalls) ? parseResult.GetValue(SessionOptions.ParallelToolCalls) : (__sessionBase is { } __SessionparallelToolCallsBaseValue ? __SessionparallelToolCallsBaseValue.ParallelToolCalls : default); - var __sessionSpecified = CliRuntime.WasSpecified(parseResult, SessionOptions.Type) || CliRuntime.WasSpecified(parseResult, SessionOptions.OutputModalities) || CliRuntime.WasSpecified(parseResult, SessionOptions.Instructions) || CliRuntime.WasSpecified(parseResult, SessionOptions.Include) || CliRuntime.WasSpecified(parseResult, SessionOptions.ParallelToolCalls); + var __SessionBase = __requestBase is { } __SessionBaseValue ? __SessionBaseValue.Session : default; var sessionType = CliRuntime.WasSpecified(parseResult, SessionOptions.Type) ? parseResult.GetValue(SessionOptions.Type) : (__SessionBase is { } __SessiontypeBaseValue ? __SessiontypeBaseValue.Type : default); + var sessionOutputModalities = CliRuntime.WasSpecified(parseResult, SessionOptions.OutputModalities) ? parseResult.GetValue(SessionOptions.OutputModalities) : (__SessionBase is { } __SessionoutputModalitiesBaseValue ? __SessionoutputModalitiesBaseValue.OutputModalities : default); + var sessionInstructions = CliRuntime.WasSpecified(parseResult, SessionOptions.Instructions) ? parseResult.GetValue(SessionOptions.Instructions) : (__SessionBase is { } __SessioninstructionsBaseValue ? __SessioninstructionsBaseValue.Instructions : default); + var sessionInclude = CliRuntime.WasSpecified(parseResult, SessionOptions.Include) ? parseResult.GetValue(SessionOptions.Include) : (__SessionBase is { } __SessionincludeBaseValue ? __SessionincludeBaseValue.Include : default); + var sessionParallelToolCalls = CliRuntime.WasSpecified(parseResult, SessionOptions.ParallelToolCalls) ? parseResult.GetValue(SessionOptions.ParallelToolCalls) : (__SessionBase is { } __SessionparallelToolCallsBaseValue ? __SessionparallelToolCallsBaseValue.ParallelToolCalls : default); + var __SessionSpecified = CliRuntime.WasSpecified(parseResult, SessionOptions.Type) || CliRuntime.WasSpecified(parseResult, SessionOptions.OutputModalities) || CliRuntime.WasSpecified(parseResult, SessionOptions.Instructions) || CliRuntime.WasSpecified(parseResult, SessionOptions.Include) || CliRuntime.WasSpecified(parseResult, SessionOptions.ParallelToolCalls); var session = - __sessionSpecified || __sessionBase is not null + __SessionSpecified || __SessionBase is not null ? new global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA { Type = sessionType, @@ -104,7 +104,7 @@ await CliRuntime.RunAsync(async () => ParallelToolCalls = sessionParallelToolCalls, } - : __sessionBase; + : __SessionBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateSessionCommandApiCommand.g.cs index 917934c1..10751e87 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateSessionCommandApiCommand.g.cs @@ -245,18 +245,18 @@ await CliRuntime.RunAsync(async () => var maxResponseOutputTokens = CliRuntime.WasSpecified(parseResult, MaxResponseOutputTokens) ? parseResult.GetValue(MaxResponseOutputTokens) : (__requestBase is { } __MaxResponseOutputTokensBaseValue ? __MaxResponseOutputTokensBaseValue.MaxResponseOutputTokens : default); var truncation = CliRuntime.WasSpecified(parseResult, Truncation) ? parseResult.GetValue(Truncation) : (__requestBase is { } __TruncationBaseValue ? __TruncationBaseValue.Truncation : default); - var __promptBase = __requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default; var promptId = parseResult.GetValue(PromptOptions.Id); - var promptVersion = CliRuntime.WasSpecified(parseResult, PromptOptions.Version) ? parseResult.GetValue(PromptOptions.Version) : (__promptBase is { } __PromptversionBaseValue ? __PromptversionBaseValue.Version : default); - var __promptSpecified = CliRuntime.WasSpecified(parseResult, PromptOptions.Id) || CliRuntime.WasSpecified(parseResult, PromptOptions.Version); + var __PromptBase = __requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default; var promptId = parseResult.GetValue(PromptOptions.Id); + var promptVersion = CliRuntime.WasSpecified(parseResult, PromptOptions.Version) ? parseResult.GetValue(PromptOptions.Version) : (__PromptBase is { } __PromptversionBaseValue ? __PromptversionBaseValue.Version : default); + var __PromptSpecified = CliRuntime.WasSpecified(parseResult, PromptOptions.Id) || CliRuntime.WasSpecified(parseResult, PromptOptions.Version); var prompt = - __promptSpecified || __promptBase is not null + __PromptSpecified || __PromptBase is not null ? new global::tryAGI.OpenAI.PromptVariant1 { Id = promptId!, Version = promptVersion, } - : __promptBase; + : __PromptBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs index 1d402761..7d0046bd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs @@ -93,7 +93,7 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var skillId = parseResult.GetRequiredValue(SkillId); var files = parseResult.GetRequiredValue(Files); - var @default = CliRuntime.WasSpecified(parseResult, Default) ? parseResult.GetValue(Default) : (__requestBase is { } __@defaultBaseValue ? __@defaultBaseValue.Default : default); + var @default = CliRuntime.WasSpecified(parseResult, Default) ? parseResult.GetValue(Default) : (__requestBase is { } __DefaultBaseValue ? __DefaultBaseValue.Default : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs index 0a4a57f9..306b8f66 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs @@ -83,12 +83,12 @@ await CliRuntime.RunAsync(async () => var currency = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Currency) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); var interval = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Interval) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); - var __notificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__notificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); + var __NotificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__NotificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); var notificationChannelRecipients = parseResult.GetValue(NotificationChannelOptions.Recipients); - var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__notificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); - var __notificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); + var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__NotificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); + var __NotificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); var notificationChannel = - __notificationChannelSpecified || __notificationChannelBase is not null + __NotificationChannelSpecified || __NotificationChannelBase is not null ? new global::tryAGI.OpenAI.SpendAlertNotificationChannel { Type = notificationChannelType, @@ -96,7 +96,7 @@ await CliRuntime.RunAsync(async () => SubjectPrefix = notificationChannelSubjectPrefix, } - : __notificationChannelBase; + : __NotificationChannelBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs index 941378b0..2e63a0d4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs @@ -89,12 +89,12 @@ await CliRuntime.RunAsync(async () => var currency = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Currency) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); var interval = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Interval) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); - var __notificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__notificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); + var __NotificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__NotificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); var notificationChannelRecipients = parseResult.GetValue(NotificationChannelOptions.Recipients); - var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__notificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); - var __notificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); + var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__NotificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); + var __NotificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); var notificationChannel = - __notificationChannelSpecified || __notificationChannelBase is not null + __NotificationChannelSpecified || __NotificationChannelBase is not null ? new global::tryAGI.OpenAI.SpendAlertNotificationChannel { Type = notificationChannelType, @@ -102,7 +102,7 @@ await CliRuntime.RunAsync(async () => SubjectPrefix = notificationChannelSubjectPrefix, } - : __notificationChannelBase; + : __NotificationChannelBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs index 1b7e7f5a..90f524f1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs @@ -89,12 +89,12 @@ await CliRuntime.RunAsync(async () => var currency = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Currency) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); var interval = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Interval) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); - var __notificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__notificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); + var __NotificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__NotificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); var notificationChannelRecipients = parseResult.GetValue(NotificationChannelOptions.Recipients); - var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__notificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); - var __notificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); + var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__NotificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); + var __NotificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); var notificationChannel = - __notificationChannelSpecified || __notificationChannelBase is not null + __NotificationChannelSpecified || __NotificationChannelBase is not null ? new global::tryAGI.OpenAI.SpendAlertNotificationChannel { Type = notificationChannelType, @@ -102,7 +102,7 @@ await CliRuntime.RunAsync(async () => SubjectPrefix = notificationChannelSubjectPrefix, } - : __notificationChannelBase; + : __NotificationChannelBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs index feb87d23..a83db7d2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs @@ -97,12 +97,12 @@ await CliRuntime.RunAsync(async () => var currency = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Currency) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Currency) : (__requestBase is { } __CurrencyBaseValue ? __CurrencyBaseValue.Currency : default); var interval = CliRuntime.WasSpecified(parseResult, CreateSpendAlertBodyOptionSetOptions.Interval) ? parseResult.GetValue(CreateSpendAlertBodyOptionSetOptions.Interval) : (__requestBase is { } __IntervalBaseValue ? __IntervalBaseValue.Interval : default); - var __notificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__notificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); + var __NotificationChannelBase = __requestBase is { } __NotificationChannelBaseValue ? __NotificationChannelBaseValue.NotificationChannel : default; var notificationChannelType = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) ? parseResult.GetValue(NotificationChannelOptions.Type) : (__NotificationChannelBase is { } __NotificationChanneltypeBaseValue ? __NotificationChanneltypeBaseValue.Type : default); var notificationChannelRecipients = parseResult.GetValue(NotificationChannelOptions.Recipients); - var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__notificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); - var __notificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); + var notificationChannelSubjectPrefix = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix) ? parseResult.GetValue(NotificationChannelOptions.SubjectPrefix) : (__NotificationChannelBase is { } __NotificationChannelsubjectPrefixBaseValue ? __NotificationChannelsubjectPrefixBaseValue.SubjectPrefix : default); + var __NotificationChannelSpecified = CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Type) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.Recipients) || CliRuntime.WasSpecified(parseResult, NotificationChannelOptions.SubjectPrefix); var notificationChannel = - __notificationChannelSpecified || __notificationChannelBase is not null + __NotificationChannelSpecified || __NotificationChannelBase is not null ? new global::tryAGI.OpenAI.SpendAlertNotificationChannel { Type = notificationChannelType, @@ -110,7 +110,7 @@ await CliRuntime.RunAsync(async () => SubjectPrefix = notificationChannelSubjectPrefix, } - : __notificationChannelBase; + : __NotificationChannelBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs index da12cdf2..c747ee39 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs @@ -140,18 +140,18 @@ await CliRuntime.RunAsync(async () => var bytes = parseResult.GetRequiredValue(Bytes); var mimeType = parseResult.GetRequiredValue(MimeType); - var __expiresAfterBase = __requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default; var expiresAfterAnchor = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) ? parseResult.GetValue(ExpiresAfterOptions.Anchor) : (__expiresAfterBase is { } __ExpiresAfteranchorBaseValue ? __ExpiresAfteranchorBaseValue.Anchor : default); + var __ExpiresAfterBase = __requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default; var expiresAfterAnchor = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) ? parseResult.GetValue(ExpiresAfterOptions.Anchor) : (__ExpiresAfterBase is { } __ExpiresAfteranchorBaseValue ? __ExpiresAfteranchorBaseValue.Anchor : default); var expiresAfterSeconds = parseResult.GetValue(ExpiresAfterOptions.Seconds); - var __expiresAfterSpecified = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) || CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Seconds); + var __ExpiresAfterSpecified = CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Anchor) || CliRuntime.WasSpecified(parseResult, ExpiresAfterOptions.Seconds); var expiresAfter = - __expiresAfterSpecified || __expiresAfterBase is not null + __ExpiresAfterSpecified || __ExpiresAfterBase is not null ? new global::tryAGI.OpenAI.FileExpirationAfter { Anchor = expiresAfterAnchor, Seconds = expiresAfterSeconds!, } - : __expiresAfterBase; + : __ExpiresAfterBase; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);