Skip to content

Commit 36f9e87

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent c165eb4 commit 36f9e87

1,551 files changed

Lines changed: 133854 additions & 36507 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsAgentsTokenwiseAnalyticsV1AgentsGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-agents-tokenwise-analytics-v1-agents-get", @"Analytics Agents");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsAgentsTokenwiseAnalyticsV1AgentsGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsContextBashTokenwiseAnalyticsV1ContextBashGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-context-bash-tokenwise-analytics-v1-context-bash-get", @"Analytics Context Bash");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsContextBashTokenwiseAnalyticsV1ContextBashGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsContextBlocksTokenwiseAnalyticsV1ContextBlocksGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-context-blocks-tokenwise-analytics-v1-context-blocks-get", @"Analytics Context Blocks");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsContextBlocksTokenwiseAnalyticsV1ContextBlocksGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsContextPrefixTokenwiseAnalyticsV1ContextPrefixGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-context-prefix-tokenwise-analytics-v1-context-prefix-get", @"Analytics Context Prefix");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsContextPrefixTokenwiseAnalyticsV1ContextPrefixGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsContextToolsTokenwiseAnalyticsV1ContextToolsGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-context-tools-tokenwise-analytics-v1-context-tools-get", @"Analytics Context Tools");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsContextToolsTokenwiseAnalyticsV1ContextToolsGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#nullable enable
2+
#pragma warning disable CS0618
3+
4+
using System.CommandLine;
5+
6+
namespace AI21.CLI.Commands;
7+
8+
internal static partial class AnalyticsFiltersTokenwiseAnalyticsV1FiltersGetCommandApiCommand
9+
{
10+
11+
12+
private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings)
13+
{
14+
string? text = null;
15+
CustomizeResponseText(parseResult, value, ref text);
16+
if (!string.IsNullOrWhiteSpace(text))
17+
{
18+
return text;
19+
}
20+
21+
var hints = new Dictionary<string, CliFormatHint>(StringComparer.OrdinalIgnoreCase)
22+
{
23+
};
24+
CustomizeResponseFormatHints(hints);
25+
return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints);
26+
}
27+
28+
static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text);
29+
static partial void CustomizeResponseFormatHints(Dictionary<string, CliFormatHint> hints);
30+
31+
32+
public static Command Create()
33+
{
34+
var command = new Command(@"analytics-filters-tokenwise-analytics-v1-filters-get", @"Analytics Filters");
35+
36+
37+
38+
command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) =>
39+
await CliRuntime.RunAsync(async () =>
40+
{
41+
42+
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);
43+
44+
45+
var response = await client.AnalyticsFiltersTokenwiseAnalyticsV1FiltersGetAsync(
46+
47+
cancellationToken: cancellationToken).ConfigureAwait(false);
48+
49+
50+
await CliRuntime.WriteResponseAsync(
51+
parseResult,
52+
response,
53+
global::AI21.SourceGenerationContext.Default,
54+
FormatResponse,
55+
cancellationToken).ConfigureAwait(false);
56+
}, cancellationToken).ConfigureAwait(false));
57+
return command;
58+
}
59+
}

0 commit comments

Comments
 (0)