Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#nullable enable
#pragma warning disable CS0618

using System.CommandLine;

namespace AI21.CLI.Commands;

internal static partial class AnalyticsAgentsTokenwiseAnalyticsV1AgentsGetCommandApiCommand
{


private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
{
string? text = null;
CustomizeResponseText(parseResult, value, ref text);
if (!string.IsNullOrWhiteSpace(text))
{
return text;
}

var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
{
};
CustomizeResponseFormatHints(hints);
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
}

static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


public static Command Create()
{
var command = new Command(@"analytics-agents-tokenwise-analytics-v1-agents-get", @"Analytics Agents");



command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
await CliRuntime.RunAsync(async () =>
{

using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.AnalyticsAgentsTokenwiseAnalyticsV1AgentsGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);


await CliRuntime.WriteResponseAsync(
parseResult,
response,
global::AI21.SourceGenerationContext.Default,
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class FnacV1DescriptionsSolutionsFnacV1DescriptionsPostCommandApiCommand
internal static partial class AnalyticsContextBashTokenwiseAnalyticsV1ContextBashGetCommandApiCommand
{


Expand All @@ -31,7 +31,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create()
{
var command = new Command(@"fnac-v1-descriptions-solutions-fnac-v1-descriptions-post", @"Fnac V1 Descriptions");
var command = new Command(@"analytics-context-bash-tokenwise-analytics-v1-context-bash-get", @"Analytics Context Bash");



Expand All @@ -42,7 +42,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostAsync(
var response = await client.AnalyticsContextBashTokenwiseAnalyticsV1ContextBashGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#nullable enable
#pragma warning disable CS0618

using System.CommandLine;

namespace AI21.CLI.Commands;

internal static partial class AnalyticsContextBlocksTokenwiseAnalyticsV1ContextBlocksGetCommandApiCommand
{


private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
{
string? text = null;
CustomizeResponseText(parseResult, value, ref text);
if (!string.IsNullOrWhiteSpace(text))
{
return text;
}

var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
{
};
CustomizeResponseFormatHints(hints);
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
}

static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


public static Command Create()
{
var command = new Command(@"analytics-context-blocks-tokenwise-analytics-v1-context-blocks-get", @"Analytics Context Blocks");



command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
await CliRuntime.RunAsync(async () =>
{

using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.AnalyticsContextBlocksTokenwiseAnalyticsV1ContextBlocksGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);


await CliRuntime.WriteResponseAsync(
parseResult,
response,
global::AI21.SourceGenerationContext.Default,
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
return command;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#nullable enable
#pragma warning disable CS0618

using System.CommandLine;

namespace AI21.CLI.Commands;

internal static partial class AnalyticsContextPrefixTokenwiseAnalyticsV1ContextPrefixGetCommandApiCommand
{


private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
{
string? text = null;
CustomizeResponseText(parseResult, value, ref text);
if (!string.IsNullOrWhiteSpace(text))
{
return text;
}

var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
{
};
CustomizeResponseFormatHints(hints);
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
}

static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


public static Command Create()
{
var command = new Command(@"analytics-context-prefix-tokenwise-analytics-v1-context-prefix-get", @"Analytics Context Prefix");



command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
await CliRuntime.RunAsync(async () =>
{

using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.AnalyticsContextPrefixTokenwiseAnalyticsV1ContextPrefixGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);


await CliRuntime.WriteResponseAsync(
parseResult,
response,
global::AI21.SourceGenerationContext.Default,
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetCommandApiCommand
internal static partial class AnalyticsContextToolsTokenwiseAnalyticsV1ContextToolsGetCommandApiCommand
{


Expand All @@ -31,7 +31,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create()
{
var command = new Command(@"vidaa-feed-items-preview-solutions-preview-vidaa-feed-items-get", @"Vidaa Feed Items Preview");
var command = new Command(@"analytics-context-tools-tokenwise-analytics-v1-context-tools-get", @"Analytics Context Tools");



Expand All @@ -42,7 +42,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetAsync(
var response = await client.AnalyticsContextToolsTokenwiseAnalyticsV1ContextToolsGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#nullable enable
#pragma warning disable CS0618

using System.CommandLine;

namespace AI21.CLI.Commands;

internal static partial class AnalyticsErrorsTokenwiseAnalyticsV1ErrorsGetCommandApiCommand
{


private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
{
string? text = null;
CustomizeResponseText(parseResult, value, ref text);
if (!string.IsNullOrWhiteSpace(text))
{
return text;
}

var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
{
};
CustomizeResponseFormatHints(hints);
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
}

static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);


public static Command Create()
{
var command = new Command(@"analytics-errors-tokenwise-analytics-v1-errors-get", @"Analytics Errors");



command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
await CliRuntime.RunAsync(async () =>
{

using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.AnalyticsErrorsTokenwiseAnalyticsV1ErrorsGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);


await CliRuntime.WriteResponseAsync(
parseResult,
response,
global::AI21.SourceGenerationContext.Default,
FormatResponse,
cancellationToken).ConfigureAwait(false);
}, cancellationToken).ConfigureAwait(false));
return command;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class VidaaActionItemsSolutionsVidaaActionItemsPostCommandApiCommand
internal static partial class AnalyticsFiltersTokenwiseAnalyticsV1FiltersGetCommandApiCommand
{


Expand All @@ -31,7 +31,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create()
{
var command = new Command(@"vidaa-action-items-solutions-vidaa-action-items-post", @"Vidaa Action Items");
var command = new Command(@"analytics-filters-tokenwise-analytics-v1-filters-get", @"Analytics Filters");



Expand All @@ -42,7 +42,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.VidaaActionItemsSolutionsVidaaActionItemsPostAsync(
var response = await client.AnalyticsFiltersTokenwiseAnalyticsV1FiltersGetAsync(

cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

namespace AI21.CLI.Commands;

internal static partial class DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDeleteCommandApiCommand
internal static partial class AnalyticsSessionDetailTokenwiseAnalyticsV1SessionsSessionIdGetCommandApiCommand
{
private static Argument<string> NameOption { get; } = new(
name: @"name")
private static Argument<string> SessionId { get; } = new(
name: @"session-id")
{
Description = @"",
};
Expand All @@ -35,19 +35,19 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create()
{
var command = new Command(@"delete-workspace-model-endpoint-studio-v1-settings-models-name-delete", @"Delete Workspace Model Endpoint");
command.Arguments.Add(NameOption);
var command = new Command(@"analytics-session-detail-tokenwise-analytics-v1-sessions-session-id-get", @"Analytics Session Detail");
command.Arguments.Add(SessionId);


command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
await CliRuntime.RunAsync(async () =>
{
var name = parseResult.GetRequiredValue(NameOption);
var sessionId = parseResult.GetRequiredValue(SessionId);
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDeleteAsync(
name: name,
var response = await client.AnalyticsSessionDetailTokenwiseAnalyticsV1SessionsSessionIdGetAsync(
sessionId: sessionId,
cancellationToken: cancellationToken).ConfigureAwait(false);


Expand Down
Loading