From cf0c069b231584df0f84ad11e2d07c94fb39deec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 18:48:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Neuphonic.CLI/Commands/AgentsApiGroupCommand.g.cs | 5 ++++- .../Commands/AgentsCreateAgentCommandApiCommand.g.cs | 3 +++ .../Commands/AgentsDeleteAgentCommandApiCommand.g.cs | 3 +++ .../Commands/AgentsGetAgentCommandApiCommand.g.cs | 3 +++ .../Commands/AgentsListAgentsCommandApiCommand.g.cs | 3 +++ src/cli/Neuphonic.CLI/Commands/ApiCommand.g.cs | 5 ++++- .../Neuphonic.CLI/Commands/TtsApiGroupCommand.g.cs | 5 ++++- .../TtsCreateSseJwtTokenCommandApiCommand.g.cs | 3 +++ .../Commands/TtsPingCommandApiCommand.g.cs | 3 +++ .../Commands/TtsSpeakWithSseCommandApiCommand.g.cs | 3 +++ .../Neuphonic.CLI/Commands/VoicesApiGroupCommand.g.cs | 5 ++++- .../Commands/VoicesCloneVoiceCommandApiCommand.g.cs | 3 +++ .../Commands/VoicesDeleteVoiceCommandApiCommand.g.cs | 3 +++ .../Commands/VoicesListVoicesCommandApiCommand.g.cs | 3 +++ .../Commands/VoicesUpdateVoiceCommandApiCommand.g.cs | 3 +++ src/cli/Neuphonic.CLI/Neuphonic.CLI.csproj | 4 ++-- src/cli/Neuphonic.CLI/README.md | 11 +++++++++-- 17 files changed, 60 insertions(+), 8 deletions(-) diff --git a/src/cli/Neuphonic.CLI/Commands/AgentsApiGroupCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/AgentsApiGroupCommand.g.cs index 260d017..8318eea 100644 --- a/src/cli/Neuphonic.CLI/Commands/AgentsApiGroupCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/AgentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Neuphonic.CLI.Commands; -internal static class AgentsApiGroupCommand +internal static partial class AgentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"agents", @"Agents endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(AgentsDeleteAgentCommandApiCommand.Create()); command.Subcommands.Add(AgentsGetAgentCommandApiCommand.Create()); command.Subcommands.Add(AgentsListAgentsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/AgentsCreateAgentCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/AgentsCreateAgentCommandApiCommand.g.cs index a8bc788..7a64965 100644 --- a/src/cli/Neuphonic.CLI/Commands/AgentsCreateAgentCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/AgentsCreateAgentCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent", @"Create agent @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/AgentsDeleteAgentCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/AgentsDeleteAgentCommandApiCommand.g.cs index 5f7da38..52bbe92 100644 --- a/src/cli/Neuphonic.CLI/Commands/AgentsDeleteAgentCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/AgentsDeleteAgentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-agent", @"Delete agent @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/AgentsGetAgentCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/AgentsGetAgentCommandApiCommand.g.cs index 2bf35f6..b6830f2 100644 --- a/src/cli/Neuphonic.CLI/Commands/AgentsGetAgentCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/AgentsGetAgentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-agent", @"Get agent @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/AgentsListAgentsCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/AgentsListAgentsCommandApiCommand.g.cs index a38cb5d..407b063 100644 --- a/src/cli/Neuphonic.CLI/Commands/AgentsListAgentsCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/AgentsListAgentsCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agents", @"List agents @@ -55,6 +57,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/ApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/ApiCommand.g.cs index 0b493ab..36d8cbd 100644 --- a/src/cli/Neuphonic.CLI/Commands/ApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/ApiCommand.g.cs @@ -4,8 +4,10 @@ namespace Neuphonic.CLI.Commands; -internal static class ApiCommand +internal static partial class ApiCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command("api", "Generated endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(AgentsApiGroupCommand.Create()); command.Subcommands.Add(TtsApiGroupCommand.Create()); command.Subcommands.Add(VoicesApiGroupCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/TtsApiGroupCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/TtsApiGroupCommand.g.cs index 33e243a..a762248 100644 --- a/src/cli/Neuphonic.CLI/Commands/TtsApiGroupCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/TtsApiGroupCommand.g.cs @@ -4,14 +4,17 @@ namespace Neuphonic.CLI.Commands; -internal static class TtsApiGroupCommand +internal static partial class TtsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"tts", @"Tts endpoint commands."); command.Subcommands.Add(TtsCreateSseJwtTokenCommandApiCommand.Create()); command.Subcommands.Add(TtsPingCommandApiCommand.Create()); command.Subcommands.Add(TtsSpeakWithSseCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/TtsCreateSseJwtTokenCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/TtsCreateSseJwtTokenCommandApiCommand.g.cs index 3950b44..95be8b9 100644 --- a/src/cli/Neuphonic.CLI/Commands/TtsCreateSseJwtTokenCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/TtsCreateSseJwtTokenCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-sse-jwt-token", @"Create SSE JWT token @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/TtsPingCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/TtsPingCommandApiCommand.g.cs index 137f2c2..85df0e7 100644 --- a/src/cli/Neuphonic.CLI/Commands/TtsPingCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/TtsPingCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"ping", @"Ping"); @@ -54,6 +56,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/TtsSpeakWithSseCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/TtsSpeakWithSseCommandApiCommand.g.cs index 0d54c50..6abf171 100644 --- a/src/cli/Neuphonic.CLI/Commands/TtsSpeakWithSseCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/TtsSpeakWithSseCommandApiCommand.g.cs @@ -90,6 +90,8 @@ internal static partial class TtsSpeakWithSseCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"speak-with-sse", @"Text to speech over SSE @@ -169,6 +171,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/VoicesApiGroupCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/VoicesApiGroupCommand.g.cs index 6132260..3b77a6b 100644 --- a/src/cli/Neuphonic.CLI/Commands/VoicesApiGroupCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/VoicesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace Neuphonic.CLI.Commands; -internal static class VoicesApiGroupCommand +internal static partial class VoicesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"voices", @"Voices endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(VoicesDeleteVoiceCommandApiCommand.Create()); command.Subcommands.Add(VoicesListVoicesCommandApiCommand.Create()); command.Subcommands.Add(VoicesUpdateVoiceCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/VoicesCloneVoiceCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/VoicesCloneVoiceCommandApiCommand.g.cs index 70dbc45..d2fac09 100644 --- a/src/cli/Neuphonic.CLI/Commands/VoicesCloneVoiceCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/VoicesCloneVoiceCommandApiCommand.g.cs @@ -60,6 +60,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"clone-voice", @"Clone voice @@ -98,6 +100,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs index 22f0b57..ddcab28 100644 --- a/src/cli/Neuphonic.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/VoicesDeleteVoiceCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-voice", @"Delete cloned voice @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs index 9343059..8a12e79 100644 --- a/src/cli/Neuphonic.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/VoicesListVoicesCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-voices", @"List voices @@ -55,6 +57,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs b/src/cli/Neuphonic.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs index 4de83aa..5edf8e0 100644 --- a/src/cli/Neuphonic.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs +++ b/src/cli/Neuphonic.CLI/Commands/VoicesUpdateVoiceCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::Neuphonic. static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-voice", @"Update cloned voice @@ -131,6 +133,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/Neuphonic.CLI.csproj b/src/cli/Neuphonic.CLI/Neuphonic.CLI.csproj index 57596d5..84bf4bc 100644 --- a/src/cli/Neuphonic.CLI/Neuphonic.CLI.csproj +++ b/src/cli/Neuphonic.CLI/Neuphonic.CLI.csproj @@ -19,11 +19,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file diff --git a/src/cli/Neuphonic.CLI/README.md b/src/cli/Neuphonic.CLI/README.md index 4927d55..716e704 100644 --- a/src/cli/Neuphonic.CLI/README.md +++ b/src/cli/Neuphonic.CLI/README.md @@ -12,5 +12,12 @@ dotnet tool install --global Neuphonic.CLI --prerelease ```bash neuphonic --help -neuphonic api --help -``` \ No newline at end of file +neuphonic agents --help +``` + +## Customization + +Generated operation, tag, and API group command classes are partial. Implement +`static partial void CustomizeCommand(ref Command command)` in a separate source +file to add aliases or validators, change the action, or replace a command. The +hook runs after the generated command has been configured. \ No newline at end of file